Wrapping classes

Jeremy Sanders jeremy+complangpython at jeremysanders.net
Fri Sep 23 06:57:07 EDT 2005


bruno modulix wrote:

> Could it work with a UserDict subclass ?

Unfortunately not:

Traceback (most recent call last):
  File "test.py", line 17, in ?
    print eval("10 * a + b", globals(), l)
TypeError: eval() argument 3 must be dict, not instance

Thanks

Jeremy

-- 
Jeremy Sanders
http://www.jeremysanders.net/



More information about the Python-list mailing list