mirror of
https://github.com/python/cpython.git
synced 2026-05-24 05:13:44 -04:00
7e30548285
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.