Metaclass with name overloading.

Alex Martelli aleaxit at yahoo.com
Tue Sep 28 08:33:32 EDT 2004


Jacek Generowicz <jacek.generowicz at cern.ch> wrote:
   ...
> > No, you can't, and it's not just a parser issue. Python uses direct
> > C calls to the native dict type. It's hard coded,
> 
> I feared this would be the case.

It's not (not in 2.4 at least) -- the STORE_NAME is quite ready to find
a non-dict as the frame's f_locals.  The problem is getting your object
to be used as the frame's f_locals in the first place -- hard but that
only affects a few spots in ceval.c.


Alex



More information about the Python-list mailing list