[Python-checkins] [python/cpython] bd583e: bpo-29581: Make ABCMeta.__new__ pass **kwargs to t...
GitHub
noreply at github.com
Wed Mar 15 14:39:24 EDT 2017
Branch: refs/heads/master
Home: https://github.com/python/cpython
Commit: bd583ef9857d99f9145ad0bb2c4424cc0baa63fc
https://github.com/python/cpython/commit/bd583ef9857d99f9145ad0bb2c4424cc0baa63fc
Author: Nate <nate at so8r.es>
Date: 2017-03-15 (Wed, 15 Mar 2017)
Changed paths:
M Lib/abc.py
M Lib/test/test_abc.py
M Misc/NEWS
Log Message:
-----------
bpo-29581: Make ABCMeta.__new__ pass **kwargs to type.__new__ (#527)
Many metaclasses in the standard library don't play nice with
__init_subclass__. This bug makes ABCMeta in particular with
__init_subclass__, which is an 80/20 solution for me personally.
AFAICT, a general solution to this problem requires updating all
metaclasses in the standard library to make sure they pass **kwargs to
type.__new__, whereas this PR only fixes ABCMeta. For context, see
https://bugs.python.org/issue29581.
* added a test combining ABCMeta and __init_subclass__
* Added NEWS item
More information about the Python-checkins
mailing list