• Tim Peters's avatar
    The end of [#460467] file objects should be subclassable. · 4441001b
    Tim Peters yazdı
    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).
    4441001b
fileobject.c 37.5 KB