Classes derived from dict and eval

Jeremy Sanders jeremy+python at jeremysanders.net
Thu Sep 22 15:29:05 EDT 2005


On Tue, 20 Sep 2005 13:59:50 -0700, Robert Kern wrote:

> globals needs to be a real dictionary. The implementation uses the C
> API, it doesn't use the overridden __getitem__. The locals argument,
> apparently can be some other kind of mapping.

It seems that on Python 2.3 then neither globals or locals accessing by
eval calls the __getitem__ member of the dicts.

Jeremy




More information about the Python-list mailing list