from future import pass_function
Ulrich Eckhardt
ulrich.eckhardt at dominolaser.com
Wed Jul 25 04:40:45 EDT 2012
Hi!
I just had an idea, it occurred to me that the pass statement is pretty
similar to the print statement, and similarly to the print() function,
there could be a pass() function that does and returns nothing.
Example:
def pass():
return
try:
do_something()
except:
pass()
One thing I don't like about this is the syntax
class foo(object):
pass()
What do you think?
Uli
More information about the Python-list
mailing list