Oh no, my code is being published ... help!

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Fri Nov 30 06:34:37 EST 2007


Tim Roberts a écrit :
> rm <rmcorrespond at gmail.com> wrote:
(snip)
> You also have a couple of instances of:
>     print("Error Squeezing %s...")
> 
> The parentheses serve no purpose here, and are unidiomatic.

And FWIW, error messages should go to sys.stderr, not to sys.stdout 
which is for normal program ouputs.

=>
   # assert you imported sys before, of course
   print >> sys.stderr, "Error yadda yadda %s " % anything



More information about the Python-list mailing list