除了因為忙,還因為這本書的程度比較高。既然我不會向學生做推介,也就不會在學期中花時間來寫文章了。
已經
This week, we:
Connection volume is majorly up from last week ; other numbers are up slightly,except the highwater (which is down). The per day table:
| Day |
已經
As a followup to what I wrote yesterday about prompt signal handlingin programs , it's worthwhile to pointout a little problem in Python with signal handling.
As I've noted before , Python normally turnsmany signals into exceptions. It turns out that this has an importantconsequence: it delays processing of signals , because Python onlyprocesses signal exceptions in the interpreter, ie when you're runningPython bytecodes.
(Contrary to the documentation, sys.setcheckinterval does not appearto control how often signal handlers are
我希望就算有天我真的重逾
There is a certain class of program that decides it knows better thanyou about when you should be able to stop its operation. The mostirritating way to do this is to catch ^C (and even ^\); such programswin a modest prize from me, usually awarded with 'kill -9'.
Yes, some operations are dangerous if interrupted half-way through andprograms need to protect themselves against them. Short operations. Itis very rare that a program needs to block signals for very long