On Mon, Apr 28, 2014 at 1:25 PM, Paul Sokolovsky <pmis...@gmail.com> wrote: > > Thanks for quick response! I see that list.__repr__ exists, and test > using it works "as expected". Hopefully, such stuff can be treated as > implementation-specific details...
The language defines method lookups and the MRO and such, and then the class chooses what to define. If your classes aren't specifically designed with inheritance in mind, multiple inheritance will always get messy (no matter what language you're in!); even single inheritance can get messy very quickly if the classes aren't designed to coexist (there's no safe way to refactor a superclass method without knowing what subclasses might be overriding). ChrisA _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com