from future import pass_function
Terry Reedy
tjreedy at udel.edu
Fri Jul 27 00:21:56 EDT 2012
More information about the Python-list mailing list
Fri Jul 27 00:21:56 EDT 2012
- Previous message (by thread): from future import pass_function
- Next message (by thread): catch UnicodeDecodeError
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): from future import pass_function
- Next message (by thread): catch UnicodeDecodeError
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list