sending a function on the fly?
Paul Winkler
slinkp23 at yahoo.com
Thu Nov 15 12:54:40 EST 2001
More information about the Python-list mailing list
Thu Nov 15 12:54:40 EST 2001
- Previous message (by thread): sending a function on the fly?
- Next message (by thread): open DOS window and start application
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 15 Nov 2001 11:08:50 +0100, Max M <maxm at normik.dk> wrote: >"Peter Bismuti" <peterb at cortland.com> wrote in message >news:3bf2a06f$1 at 207.229.64.20... > >> In ECMAscript you can send a function as an argument that is defined on >the >> fly such as: >> >> callMyFunction( new Function(){ blah blah }) >> >> Something like that. Here the function has not been named and was not >> defined outside of the call. Can this be done in Python? You can't put a def statement inside a function call. But you could use lambda. --PW
- Previous message (by thread): sending a function on the fly?
- Next message (by thread): open DOS window and start application
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list