diff options
author | Nate <nate@so8r.es> | 2017-04-24 17:06:15 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-04-24 17:06:15 (GMT) |
commit | fcfe80ec2592fed8b3941c79056a8737abef7d3b (patch) | |
tree | 5dc4a68452313e95e2e9bcecac7b9821d14c3a15 /Misc/NEWS | |
parent | 2e576f5aec1f8f23f07001e2eb3db9276851a4fc (diff) | |
download | cpython-fcfe80ec2592fed8b3941c79056a8737abef7d3b.zip cpython-fcfe80ec2592fed8b3941c79056a8737abef7d3b.tar.gz cpython-fcfe80ec2592fed8b3941c79056a8737abef7d3b.tar.bz2 |
bpo-29822: Make inspect.isabstract() work during __init_subclass__. (#678)
At the time when an abstract base class' __init_subclass__ runs,
ABCMeta.__new__ has not yet finished running, so in the presence of
__init_subclass__, inspect.isabstract() can no longer depend only on
TPFLAGS_IS_ABSTRACT.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -317,6 +317,9 @@ Extension Modules Library ------- +- bpo-29822: inspect.isabstract() now works during __init_subclass__. Patch + by Nate Soares. + - bpo-29960: Preserve generator state when _random.Random.setstate() raises an exception. Patch by Bryan Olson. |