]> granicus.if.org Git - python/commit
The end of [#460467] file objects should be subclassable.
authorTim Peters <tim.peters@gmail.com>
Fri, 14 Sep 2001 03:26:08 +0000 (03:26 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 14 Sep 2001 03:26:08 +0000 (03:26 +0000)
commit4441001b56d6179cc3bfa540493a7eb6e0324172
treef025f77a8951f333b4878422230f8eef8ce09888
parent0ab085c4cba79c1743288a300425b3c9050250ba
The end of [#460467] file objects should be subclassable.
A surprising number of changes to split tp_new into tp_new and tp_init.
Turned out the older PyFile_FromFile() didn't initialize the memory it
allocated in all (error) cases, which caused new sanity asserts
elsewhere to fail left & right (and could have, e.g., caused file_dealloc
to try decrefing random addresses).
Objects/fileobject.c