Is it possible to get the erroneous variable when getting a NameError exception?
Stephen Hansen
apt.shansen at gmail.com
Sat Dec 26 18:29:25 EST 2009
On Sat, Dec 26, 2009 at 4:34 AM, Michael Fötsch <foetsch at yahoo.com> wrote:
> To explain, "().__class__.__base__.__subclasses__()" gives you a list of
> all object-derived classes, i.e., of *all* classes that exist in the
> surrounding program. If you can find just one class that allows you to do
> something subtle or dangerous, you're done.
>
>
Aiee, I forgot about that. I stand corrected. :)
Okay, I'll go back to the 'eval is almost never what you wanna do' camp
again :)
--S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091226/0187ae61/attachment-0001.html>
More information about the Python-list
mailing list