> def getjlistrenderer(opname): > def listrender(): > # use opname, eg ops=getlist(opname) > # or set local fn variable > return renderer; > return listrender; > #?or f=listrender(); return f; > > Is it really as simple as this?
Assuming your indentation is actually OK then yes, it is as easy as that. > books too, but thought I'd get some more pointers as well. Web searching > so far only shows lambda, which is one-liner, and that won't do. Lambda is actually a single *expression* which may cross several lines. But with nested functions available lambda is the wrong way to go for higher order programming in Python. Alan g. _______________________________________________ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor