SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 95 Python

closes bpo-36188: Clean up 'unbound' method left-overs. (GH-12169)

Methods are always bound, and `__self__` can no longer be `NULL`
(`method_new()` and `PyMethod_New()` both explicitly check for this).

Moreover, once a bound method is bound, it *stays* bound and won't be re-bound
to something else, so the section in the datamodel that talks about accessing
an methods in a different descriptor-binding context doesn't apply any more in
Python 3.
M
Martijn Pieters committed
b727239575894b060db37792e86aab818c00817a
Parent: 0983fcd
Committed by Benjamin Peterson <benjamin@python.org> on 3/5/2019, 5:19:34 AM