minimum install & pickling

greg greg at cosc.canterbury.ac.nz
Wed Sep 17 19:06:32 EDT 2008


Aaron "Castironpi" Brady wrote:

> Even a function created from raw bytecode string can't do anything
> without __import__ or 'open'.

Not true:

   for cls in (1).__class__.__bases__[0].__subclasses__():
     if cls.__name__ == "file":
       F = cls

   F(my_naughty_path, "w").write(my_naughty_data)

-- 
Greg



More information about the Python-list mailing list