> In theory you could hack Python's internal locals or globals
> dictionary so that it did something unusual while looking up your
> object. But in practice this doesn't work, because the returned
> objects (when you call globals() or locals()) attributes are readonly.
> Probably because those internal lookup dicts are implemented in
> optimized C not Python, and the C implementation doesn't let you
> redefine it's internals via the Python interface.
>
> David.

I'll settle for implementing the __call__() method to return the value as I 
have
no intention to mess around with Python's internal mechanisms.

Thanks a lot for your deep insight. 


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to