• Guido van Rossum's avatar
    Fix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfault · 09f21877
    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'll apply this to 2.3 too.
    09f21877
funcobject.c 16 KB