On 02/07/2020 01:40 PM, Greg Ewing wrote:
On 8/02/20 5:59 am, Soni L. wrote:
Traits are an alternative to Multiple Inheritance. They solve the problem of
name conflicts by making them an ambiguity error and requiring you to
disambiguate (at call site).
This sounds like something that would work better in a statically
typed language, where the compiler can figure it all out. Doing
it in Python would require run-time wrappers and incur overhead.
Or a metaclass.
--
~Ethan~
_______________________________________________
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/53BRYRPQQUZDZE6IV4QK243TMH4K4KUR/
Code of Conduct: http://python.org/psf/codeofconduct/