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
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to