Éric Araujo <mer...@netwok.org> added the comment:

> there's nothing an ABC can do to stop someone (for example) overriding
> an abstract method or descriptor "foo" with "foo = 1".

I’ve find it useful to use an abstractproperty to specify an attribute that 
concrete subclasses have to define.  Was that wrong?  From a technical 
viewpoint, I replaced a method with a data attribute, but from a doc/human 
viewpoint, replacing a property with a regular attribute did not seem wrong to 
me.

So, if there are guidelines about “almost certainly wrong” uses of the ABC 
machinery, they should IMO be documented.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11610>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to