On 7/26/2012 4:48 PM, John Ladasky wrote:
I had very similar thoughts about eight months ago, and posted them
here:
https://groups.google.com/forum/?fromgroups#!topic/comp.lang.python/CB_5fek2b8A
I'm no computer science guru, but the idea that pass should be a
function rather than a statement continues to appeal to me.
A do nothing statement is standard in statement based languages. It is
not going away.
can see, I actually wrote just such a function so that I could use it
as an argument in my code.
For one time use: lambda:None
For multiple use: def none: pass # same as return None in this context
A function needs a lot more meat than that to be added as a builtin.
---
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list