[issue41905] add update_abstractmethods function to update an ABC's abstract methods
Raymond Hettinger
report at bugs.python.org
Sat Oct 3 21:16:20 EDT 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
> you're effectively proposing to compute (or update)
> __abstractmethods__ lazily.
Would it be possible to do the update whenever the class dictionary is modified, in PyType_Modified() perhaps (using logic similar to __mro__ updates__)?
I not pushing for this; am just asking whether it is possible to make sure that __abstractmethods__ is always in sync with reality.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41905>
_______________________________________
More information about the Python-bugs-list
mailing list