On 4/17/06, Greg Ewing <[EMAIL PROTECTED]> wrote:
> Guido van Rossum wrote:

> > Inlining code obviously addresses this, but that's often
> > killing code structure.

> Would automated inlining be a legitimate use for
> ast-hacking?

To keep the same semantics, you need some notification that the (real
version of the) inlined code just got modified.

Which again calls for namespaces as slightly different from
dictionaries.  (Perahps with warnings even now if a module is modified
after the initialization is "completed".)  Making this change at
strictly the python level is a bit of a pain, because modules and
classes are evaluated in a standard dictionary (from PyDictNew),
before calling the metaclass.

I don't see any reason it would need to wait for python 3.

-jJ
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to