]> granicus.if.org Git - python/commit
Now that file objects are subclassable, you can get at the file constructor
authorTim Peters <tim.peters@gmail.com>
Thu, 13 Sep 2001 21:01:29 +0000 (21:01 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 13 Sep 2001 21:01:29 +0000 (21:01 +0000)
commit8fa45677c1833cc0d4ddaa57417c01ee8297eba8
treee33c30313a1f60475f2e7b1e5db33901398398ab
parent561f899d198c74516f0911a415f2914af3890576
Now that file objects are subclassable, you can get at the file constructor
just by doing type(f) where f is any file object.  This left a hole in
restricted execution mode that rexec.py can't plug by itself (although it
can plug part of it; the rest is plugged in fileobject.c now).
Lib/rexec.py
Lib/test/test_descr.py
Objects/fileobject.c