Creating anonymous functions using eval

Steven D'Aprano steve at REMOVETHIScyber.com.au
Tue Jul 12 12:03:08 EDT 2005


On Tue, 12 Jul 2005 08:28:45 -0700, Devan L wrote:

> How is this different from a nested function?

Well, "this" is a newsgroup posting written by you. Nested functions in
Python are callable objects that exist as attributes of other callable
objects, so the two are very different.

Alternatively, if you expect a sensible answer, how about asking a
sensible question? You can start by telling us just what it is that you
are comparing to nested functions.

-- 
Steven.




More information about the Python-list mailing list