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

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.

----------
resolution: third party -> 
stage: resolved -> test needed
status: closed -> open

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

Reply via email to