[Python-checkins] [python/cpython] fcfe80: bpo-29822: Make inspect.isabstract() work during _...

GitHub noreply at github.com
Mon Apr 24 13:06:18 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: fcfe80ec2592fed8b3941c79056a8737abef7d3b
      https://github.com/python/cpython/commit/fcfe80ec2592fed8b3941c79056a8737abef7d3b
  Author: Nate <nate at so8r.es>
  Date:   2017-04-24 (Mon, 24 Apr 2017)

  Changed paths:
    M Lib/inspect.py
    M Lib/test/test_inspect.py
    M Misc/NEWS

  Log Message:
  -----------
  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.




More information about the Python-checkins mailing list