Bar Harel <bzvi7...@gmail.com> added the comment:

> When instantiation fails, recheck to see the missing abstract methods had 
> been defined?

I've written about it in the python-ideas discussion as well, and completely 
agree.

There is no other approach that would guarantee correctness across all APIs, 
both internal and 3rd party. Adding a function to recalculate will require 
everyone to use it, and worse, know that it even exists.

The overhead should be quite low as this case is probably rare and the 
recalculation can happen only on failure.

I'm not sure however, what are the implications of changing 
Py_TPFLAGS_IS_ABSTRACT during type creation.

----------
nosy: +bar.harel

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41905>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to