Securing a future for anonymous functions in Python

Paul Rubin http
Fri Dec 31 01:28:40 EST 2004


bokr at oz.net (Bengt Richter) writes:
> print either(A == B, (def "A equals B"), (def "A does not equal B"))
> either(thefile, (def thefile.close()), (def 0))

I'd really rather have some reasonable macro facility, than to resort
to using anonymous functions and deferred evaluation for common things
like that.




More information about the Python-list mailing list