[Python-Dev] [Python-checkins] cpython: improve abstract property support (closes #11610) (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Fri Dec 16 00🔞16 CET 2011
- Previous message: [Python-Dev] [Python-checkins] cpython: input() in this sense is gone
- Next message: [Python-Dev] generators and ceval
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Dec 16, 2011 at 6:34 AM, benjamin.peterson <python-checkins at python.org> wrote:
+abc +--- + +Improved support for abstract base classes containing descriptors composed with +abstract methods. The recommended approach to declaring abstract descriptors is +now to provide :attr:
_isabstractmethod_
as a dynamically updated +property. The built-in descriptors have been updated accordingly. + + Â * :class:abc.abstractproperty
has been deprecated, use :class:property
+ Â Â with :func:abc.abstractmethod
instead. + Â * :class:abc.abstractclassmethod
has been deprecated, use + Â Â :class:classmethod
with :func:abc.abstractmethod
instead. + Â * :class:abc.abstractstaticmethod
has been deprecated, use + Â Â :class:property
with :func:abc.abstractmethod
instead. + +(Contributed by Darren Dale in :issue:11610
)
s/property/staticmethod/ in the final bullet point here.
Cheers, Nick.
Nick Coghlan  |  ncoghlan at gmail.com  |  Brisbane, Australia
- Previous message: [Python-Dev] [Python-checkins] cpython: input() in this sense is gone
- Next message: [Python-Dev] generators and ceval
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]