Re: [Python-Dev] subclassing builtin data structures

2015年2月13日 16:21:07 -0800

Isaac Schwabacher wrote:
IIUC, the argument is that the Liskov Substitution Principle is a statement
about how objects of a subtype behave relative to objects of a supertype, and
it doesn't apply to constructors because they aren't behaviors of existing
objects.
Another way to say that is that constructors are class
methods, not instance methods.
--
Greg
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to