[Python-ideas] Access to function objects

Nick Coghlan ncoghlan at gmail.com
Mon Aug 8 09:20:50 CEST 2011

On Mon, Aug 8, 2011 at 3:27 PM, 海韵 <lyricconch at gmail.com> wrote:
> when function body access function name, it requires "name lookup",
> that is a "runtime" behavior.
> i would like that python offer some "compile time" behavior just like
> this proposal - things(here, it's function) declare by the "as clause"
> is always "runtime independent" and only visible on it's own
> suite(which means you can not use the "as declared" NAME outside its
> indent block).

While a language could certainly be defined around such behaviour,
that language isn't Python (Py3k except clauses notwithstanding).


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

More information about the Python-ideas mailing list