甜瓜 wrote:

>     I wonder why below does not work.
> 
> a = object()
> a.b = 1        # dynamic bind attribute failed...

The implementation of slots depends on that behaviour:

http://docs.python.org/ref/slots.html

> Does this strange behavior break the LSP (Liskov substitution principle)?

Can you expand on that?

Peter
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to