D
David Murmann
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.
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.