eval and dict

Seo Sanghyeon unendliche at hanmail.net
Sat May 24 11:15:26 EDT 2003


> [Using instance instaed of dict in eval]
> "TypeError: eval() argument 2 must be dict, not instance"
> [Using instance of class derived from dict]
> [Doesn't work either]

Take a look at:
http://groups.google.com/groups?th=a319a98144d6def7
for possible workarounds. It's the result of CPython's optimization.

-- Seo Sanghyeon




More information about the Python-list mailing list