diff options
author | Martijn Pieters <github.com@zopatista.com> | 2019-03-05 05:19:34 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2019-03-04 21:19:34 -0800 |
commit | b727239575894b060db37792e86aab818c00817a (patch) | |
tree | 2da2cd225bbae5d92ccb9dee48afbb842dc9640d /Python/sysmodule.c | |
parent | 0983fcd0d5bd00c6b0dd3040760226f67aa831cd (diff) | |
download | cpython-git-b727239575894b060db37792e86aab818c00817a.tar.gz |
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.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions