
Aug. 8, 2011
7:20 a.m.
On Mon, Aug 8, 2011 at 3:27 PM, 海韵 <lyricconch@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). Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia