[Python-ideas] Tweaking closures and lexical scoping to include the function being defined

Nick Coghlan ncoghlan at gmail.com
Wed Sep 28 12:05:26 CEST 2011


On Wed, Sep 28, 2011 at 5:59 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> As far as the 'hidden state' problem goes, I'd prefer to address that
> by providing better utilities in functools for accessing closure state
> (and perhaps even the current internal state of suspended generators).

Oops, s/functools/inspect/.

(The original version of that sentence suggested read/write access to
the closure state, so functools made more sense, but inspect is a
better choice for read-only access)

Regards,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list