[Python-3000] PEP 3119 - Introducing Abstract Base Classes

Guido van Rossum guido at python.org
Tue May 1 01:13:44 CEST 2007


On 4/30/07, Barry Warsaw <barry at python.org> 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/)


More information about the Python-3000 mailing list