How to write Smart Python programs?

Theerasak Photha hanumizzle at gmail.com
Wed Oct 11 05:21:17 EDT 2006


On 10/11/06, Fredrik Lundh <fredrik at pythonware.com> wrote:
> Theerasak Photha wrote:
>
>   >> 2/ functions that returns a status code and modify their arguments.
> >
> > Argument modification for lists with one item is *sometimes* used to
> > emulate full lexical closure. (or at least that's what the folks on
> > freenode #python told me)
>
> sounds like they (or you) are confusing "arguments" with "free
> variables", though.  here's an example of the latter:

This is (kind of) what we were talking about:

http://www.c2.com/cgi/wiki?ClosuresThatWorkAroundFinalLimitation

-- Theerasak



More information about the Python-list mailing list