Code Feedback

mwt michaeltaft at gmail.com
Tue Feb 7 01:09:11 EST 2006


Thanks for all the feedback.
Interestingly, I can't seem to get Dan M's code:
[code]
try:
          while 1:
                pass
      except KeyboardInterrupt:
          break
[/code]
to work, no matter how many variations I try (including adding in
"time.sleep(0.1)" as Peter Hansen suggested. The program just continues
to execute, ignoring the command to stop. I'm guessing that this has
something to do with the fact that the Reader threads are still
running?

A further question: Can anyone point me to a good description of the
best way to write/use doc strings in Python?




More information about the Python-list mailing list