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. -- Greg _______________________________________________ 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/E5BJR6R6BBF5IHLWV7OHNDBOEQKSXZAR/ Code of Conduct: http://python.org/psf/codeofconduct/