On 3/26/2022 12:57 PM, malmiteria wrote:
what i propose is a solution that would follow those rules:
The mro alternative, which i called explicit method resolution aka EMR (which
is probably not a good name since i apply it, as mro, to all class attributes),
follow those rules :
...
4) Multiple parent : the method / attribute can't be resolved in the class
itself, and can be resolved by at least 2 of it's parents, then an
ExplicitResolutionRequired error should be raised
Since this is a breaking change, there's basically no chance this
proposal will be accepted.
Eric
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/2MMECKO334DEKRUIZTKZSB3GHORSNFFS/
Code of Conduct: http://python.org/psf/codeofconduct/