Fix markup

This commit is contained in:
Andrew M. Kuchling 2008-01-04 18:24:41 +00:00
parent a47b75b0a0
commit 73835bd5e9
1 changed files with 7 additions and 5 deletions

View File

@ -503,10 +503,12 @@ assert isinstance([], AppendableSequence)
@abstractmethod decorator -- you can't instantiate classes w/ @abstractmethod decorator -- you can't instantiate classes w/
an abstract method. an abstract method.
@abstractproperty decorator ::
@abstractproperty
def readonly(self): @abstractproperty decorator
return self._x @abstractproperty
def readonly(self):
return self._x
.. seealso:: .. seealso::
@ -1163,7 +1165,7 @@ This section lists previously described changes, and a few
esoteric bugfixes, that may require changes to your esoteric bugfixes, that may require changes to your
code: code:
* The :method:`__init__` method of :class:`collections.deque` * The :meth:`__init__` method of :class:`collections.deque`
now clears any existing contents of the deque now clears any existing contents of the deque
before adding elements from the iterable. This change makes the before adding elements from the iterable. This change makes the
behavior match that of ``list.__init__()``. behavior match that of ``list.__init__()``.