[Python-Dev] Challenge: Please break this! (was: Reviving restricted mode) (original) (raw)

Victor Stinner victor.stinner at haypocalc.com
Tue Feb 24 01:06:54 CET 2009


Le Tuesday 24 February 2009 00:51:25 Farshid Lashkari, vous avez écrit :

It seems like some code in safelite passes a file object to isinstance. By overriding the builtin isinstance function I can get access to the original file object and create a new one.

Wow, excellent idea!

-- Victor Stinner aka haypo http://www.haypocalc.com/blog/



More information about the Python-Dev mailing list