This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients gvanrossum, rhettinger, serhiy.storchaka
Date 2021-11-12.15:47:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636732061.61.0.732771237207.issue45791@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2021-11-12 15:47:41gvanrossumsetrecipients: + gvanrossum, rhettinger, serhiy.storchaka
2021-11-12 15:47:41gvanrossumsetmessageid: <1636732061.61.0.732771237207.issue45791@roundup.psfhosted.org>
2021-11-12 15:47:41gvanrossumlinkissue45791 messages
2021-11-12 15:47:41gvanrossumcreate