osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

printing to stdout


richard lucassen <mailinglists at lucassen.org>:
> As I'm new to Python, just this question: are there any unPythony
> things in this code?

Your code looks neat.

>       except IOError:
>         print ("[ALERT] I/O problem device 0x%x" % list_pcf[i])

Just double check that simply printing the alert is the correct recovery
from the exception. Should there be additional logic instead of the
fallthrough?


Marko