diff options
author | Martijn Pieters <github.com@zopatista.com> | 2019-03-05 05:19:34 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2019-03-05 05:19:34 (GMT) |
commit | b727239575894b060db37792e86aab818c00817a (patch) | |
tree | 2da2cd225bbae5d92ccb9dee48afbb842dc9640d /Lib/test/test_tempfile.py | |
parent | 0983fcd0d5bd00c6b0dd3040760226f67aa831cd (diff) | |
download | cpython-b727239575894b060db37792e86aab818c00817a.zip cpython-b727239575894b060db37792e86aab818c00817a.tar.gz cpython-b727239575894b060db37792e86aab818c00817a.tar.bz2 |
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 'Lib/test/test_tempfile.py')
0 files changed, 0 insertions, 0 deletions