limited python virtual machine

Skip Montanaro skip at pobox.com
Sat Jan 29 15:53:45 CET 2005


    >> One thing my company has done is written a ``safe_eval()`` that uses
    >> a regex to disable double-underscore access.

    Alex> will the regex catch getattr(object,
    Alex> 'subclasses'.join(['_'*2]*2)...?-)

Now he has two problems. ;-)

Skip



More information about the Python-list mailing list