Guido van Rossum <gu...@python.org> added the comment:

I'm torn. It's been like this for a very long time and Serhiy's reasoning makes 
some sense.

OTOH it *does* make more sense as it's written in the PEP. The basic idea is 
"the class has control over what is considered an instance of it" and it would 
be nice if this didn't require writing a metaclass. (Metaclasses are often 
problematic.)

As an experiment, could you implement the proposed behavior and see what fails 
in e.g. the stdlib or the test suites of the 100 most popular packages?

----------

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

Reply via email to