[issue42775] __init_subclass__ should be called in __init__

2020-12-28 Thread Ethan Furman
New submission from Ethan Furman : PEP 487 introduced __init_subclass__ and __set_name__, and both of those were wins for the common cases of metaclass usage. Unfortunately, the implementation of PEP 487 with regards to __init_subclass__ has made the writing of correct metaclasses significant

[issue42775] __init_subclass__ should be called in __init__

2020-12-28 Thread Ethan Furman
Ethan Furman added the comment: My understanding of using keywords in class headers class MyClass(SomeBaseClass, setting='maybe'): ... is that the keywords would get passed into the super classes `__init_subclass__` (`SomeBaseClass` and `setting`). However, in the cases of - test_d

[issue42775] __init_subclass__ should be called in __init__

2020-12-28 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue42775] __init_subclass__ should be called in __init__

2020-12-28 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +22829 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23986 ___ Python tracker

[issue42775] __init_subclass__ should be called in __init__

2020-12-28 Thread Guido van Rossum
Guido van Rossum added the comment: Whoa, you start a discussion on python-dev and another on bpo? That sounds a bit hasty. -- nosy: +gvanrossum ___ Python tracker ___ __

[issue42775] __init_subclass__ should be called in __init__

2020-12-28 Thread Ethan Furman
Ethan Furman added the comment: Guido, I just wanted to get it all in place while it was fresh in my mind. Actual code tends to make a discussion easier. I'll make sure and transcribe any relevant discussion from python-dev to here. -- ___ Pytho

[issue42775] __init_subclass__ should be called in __init__

2020-12-29 Thread Guido van Rossum
Guido van Rossum added the comment: I see this as a backwards incompatible change and it's not worth doing for what seems to me a very minor benefit. -- ___ Python tracker __

[issue42775] __init_subclass__ should be called in __init__

2021-01-11 Thread Ethan Furman
Ethan Furman added the comment: Nick Coghlan made the observation that `__set_name__` should be doing what is currently the after-new work. Tracking in #42901. -- keywords: -patch resolution: -> rejected stage: patch review -> resolved status: open -> closed superseder: -> [Enum]

[issue42775] __init_subclass__ should be called in __init__

2021-01-11 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, that's great! And thanks, Nick! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42775] __init_subclass__ should be called in __init__

2021-01-26 Thread Carlton Gibson
Change by Carlton Gibson : -- nosy: +carltongibson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma