On 4/30/07, Barry Warsaw <[EMAIL PROTECTED]> wrote:
> On Apr 27, 2007, at 2:17 PM, Tony Lownds wrote:
> > +0 on abstract attributes. Methods seem to dominate most APIs that
> > make use of interfaces, but there are always a few exceptions.
>
> One of the reasons to be able to specify attributes in an ABC or
> interface is so that you can use something more Pythonic than getters
> and setters.

Even if support for abstract attributes is not provided by default in
py3k, it shouldn't be hard to add as a pure-python 3rd party add-on,
using a custom metaclass or a class decorator.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to