commit | b727239575894b060db37792e86aab818c00817a | [log] [tgz] |
---|---|---|
author | Martijn Pieters <github.com@zopatista.com> | Tue Mar 05 05:19:34 2019 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Mon Mar 04 21:19:34 2019 -0800 |
tree | 2da2cd225bbae5d92ccb9dee48afbb842dc9640d | |
parent | 0983fcd0d5bd00c6b0dd3040760226f67aa831cd [diff] |
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.