• Guido van Rossum's avatar
    Fix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfault · 7e305482
    Guido van Rossum yazdı
    The proper fix is not quite what was submitted; it's really better to
    take the class of the object passed rather than calling PyMethod_New
    with NULL pointer args, because that can then cause other core dumps
    later.
    
    I also added a testcase for the fix to classmethods() in test_descr.py.
    
    I've already applied this to the 2.2 branch.
    7e305482
funcobject.c 16 KB