Python equivalent for C module
Ville M. Vainio
user at asus-190829777.TeleWell.gateway
Mon Oct 20 22:08:38 CEST 2008
Bruno Desthuilliers <bdesth.quelquechose at free.quelquepart.fr> writes:
> STDOUT is for *normal* program outputs. Debug informations,
> warnings, and all verbosity should go to STDERR.
Actually, stderr is for errors, by convention. It's rather impolite to
dump trivial debug info to stderr, which often "alerts" the user more
> Also and FWIW, Python has a logging module in it's stdlib. Please
> use it instead of any half-backed squared-wheel homegrown solution.
Unfortunately these square-wheeled homegrown solutions are easier to
grok than the standard logging module. It seems to target more
"serious" applications at the cost of feeling a bit too clunky for
quick hack jobs.
More information about the Python-list