From cb3ff4468a4dc9c5758c521f407daad81bca6c89 Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Sat, 15 Feb 2014 17:05:26 -0500 Subject: #16728: Mention collections.abc.Sequence in 'sequence' glossary entry --- Doc/glossary.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 2347828..b48eb1e 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -763,6 +763,14 @@ Glossary mapping rather than a sequence because the lookups use arbitrary :term:`immutable` keys rather than integers. + The :class:`collections.abc.Sequence` abstract base class + defines a much richer interface that goes beyond just + :meth:`__getitem__` and :meth:`__len__`, adding :meth:`count`, + :meth:`index`, :meth:`__contains__`, and + :meth:`__reversed__`. Types that implement this expanded + interface can be registered explicitly using + :func:`~abc.register`. + slice An object usually containing a portion of a :term:`sequence`. A slice is created using the subscript notation, ``[]`` with colons between numbers -- cgit v0.12 From e5235f162449f5faf63381197f243ef8d51acd19 Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Sat, 15 Feb 2014 17:11:06 -0500 Subject: #20241: use correct RFC number --- Doc/library/ipaddress.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/ipaddress.rst b/Doc/library/ipaddress.rst index 3a567fc..8eac92f 100644 --- a/Doc/library/ipaddress.rst +++ b/Doc/library/ipaddress.rst @@ -165,7 +165,7 @@ write code that handles both IP versions correctly. .. attribute:: is_unspecified - ``True`` if the address is unspecified. See :RFC:`5375` (for IPv4) + ``True`` if the address is unspecified. See :RFC:`5735` (for IPv4) or :RFC:`2373` (for IPv6). .. attribute:: is_reserved -- cgit v0.12