[Python-projects] Flag missing else: clauses?
skip at pobox.com
skip at pobox.com
Fri Mar 14 23:56:20 CET 2008
Amaury> Well, there are many places where an else: clause is not needed
Amaury> at all.
Amaury> if isinstance(message, unicode):
Amaury> message = message.encode('utf-8')
Amaury> Do you want a pylint warning in every case?
No, I'd like to be able to turn it on when I want though. And of course, it
should be suppressable in the usual ways.
Amaury> BTW, os.fork() and other posix functions never return negative
Amaury> values in Python. They raise exceptions...
Hmm... I pasted that code right out of the daemonize code, which, if I
understood the speaker correctly, is actually busy daemonizing Python
daemons today. I'll pass that along to the author though.
Skip
More information about the Python-Projects
mailing list