getting rid of pass
David Murmann
david.murmann at rwth-aachen.de
Fri May 12 21:40:27 EDT 2006
Hi all!
i just had this crazy idea:
instead of
while cond():
pass
write
while cond().
or
try:
import xyz
except ImportError:
pass
compared to
try:
import xyz
except ImportError.
i don't know whether this is syntactically unambiguous or replaces all
uses of pass, but i find it quite nice to read.
also if something like this has been proposed before and rejected, i
apologize for this late-in-the-night idea.
what do you people think?
have a nice day, David.
More information about the Python-list
mailing list