Message414238
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. |
|
Date |
User |
Action |
Args |
2022-03-01 05:46:58 | gvanrossum | set | recipients:
+ gvanrossum, lukasz.langa, JelleZijlstra, uriyyo, kj, adriangb |
2022-03-01 05:46:58 | gvanrossum | set | messageid: <1646113618.12.0.944745543083.issue44807@roundup.psfhosted.org> |
2022-03-01 05:46:58 | gvanrossum | link | issue44807 messages |
2022-03-01 05:46:57 | gvanrossum | create | |
|