Daniel Stutzbach <stutzb...@google.com> added the comment:

I misread the original request.  I'm +1 on making the following work, if it 
doesn't work already:

class MySubClass(MyAbstractClass):
    SOME_LIMIT = 5  # Implements abstract property with fixed value

We should be able to check that at instance creation time.

I think abstract methods and properties are to force the class to define 
methods/properties.  I don't think we should be checking if the instance adds 
things that are not defined at the class level (i.e., don't try to detect 
"self.SOME_LIMT = 5").

----------

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

Reply via email to