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 JelleZijlstra, adriangb, gvanrossum, kj, lukasz.langa, uriyyo
Date 2022-03-01.05:46:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646113618.12.0.944745543083.issue44807@roundup.psfhosted.org>
In-reply-to
Content
Oops.

So this is an intentional feature -- Protocol replaces __init__ so that you can't (accidentally) instantiate a protocol. And the code to do this has changed a couple of times recently to deal with some edge cases. At least one of the PRs was by Yurii, who created this issue. I didn't read through all that when I closed the issue, so I'm reopening it.

Maybe Yurii can devise a solution? (Although apparently their first attempt, https://github.com/python/cpython/pull/27543 was closed without merging.) Yurii and Lukasz should probably figure this out.
History
Date User Action Args
2022-03-01 05:46:58gvanrossumsetrecipients: + gvanrossum, lukasz.langa, JelleZijlstra, uriyyo, kj, adriangb
2022-03-01 05:46:58gvanrossumsetmessageid: <1646113618.12.0.944745543083.issue44807@roundup.psfhosted.org>
2022-03-01 05:46:58gvanrossumlinkissue44807 messages
2022-03-01 05:46:57gvanrossumcreate