<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Doc/reference, branch v3.8.9</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-27646: Say that 'yield from' expression can be any iterable (GH-24595)</title>
<updated>2021-02-21T02:42:24+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-02-21T02:42:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=089a21f7429a3fd3cf78e3779df724757d346d19'/>
<id>089a21f7429a3fd3cf78e3779df724757d346d19</id>
<content type='text'>
Previously, the doc at least strongly implied that it had to be an iterator.
(cherry picked from commit 2f9ef514fb24b6a95bd3272885f197752810c107)

Co-authored-by: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, the doc at least strongly implied that it had to be an iterator.
(cherry picked from commit 2f9ef514fb24b6a95bd3272885f197752810c107)

Co-authored-by: Terry Jan Reedy &lt;tjreedy@udel.edu&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.8] [doc] Fix a few margins due to bad markup (GH-23619). (GH-23860)</title>
<updated>2020-12-22T02:55:19+00:00</updated>
<author>
<name>Andre Delfino</name>
<email>adelfino@gmail.com</email>
</author>
<published>2020-12-22T02:55:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d3ab4c82a9b594d3cd98062eece19672fe42bce2'/>
<id>d3ab4c82a9b594d3cd98062eece19672fe42bce2</id>
<content type='text'>
(cherry picked from commit 96a09df64483b70c4215c7025a19b9d2f1636c55)

Co-authored-by: Andre Delfino &lt;adelfino@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 96a09df64483b70c4215c7025a19b9d2f1636c55)

Co-authored-by: Andre Delfino &lt;adelfino@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-42669: Document that `except` rejects nested tuples (GH-23822) (GH-23871)</title>
<updated>2020-12-20T21:18:40+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-12-20T21:18:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=81f706d2db0f57c4fdd747df6e0a4cffcbc54704'/>
<id>81f706d2db0f57c4fdd747df6e0a4cffcbc54704</id>
<content type='text'>
In Python 2, it was possible to use `except` with a nested tuple, and occasionally natural.  For example, `zope.formlib.interfaces.InputErrors` is a tuple of several exception classes, and one might reasonably think to do something like this:

    try:
        self.getInputValue()
        return True
    except (InputErrors, SomethingElse):
        return False

As of Python 3.0, this raises `TypeError: catching classes that do not inherit from BaseException is not allowed` instead: one must instead either break it up into multiple `except` clauses or flatten the tuple.  However, the reference documentation was never updated to match this new restriction.  Make it clear that the definition is no longer recursive.

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit c95f8bc2700b42f4568886505a819816c9b0ba28)

Co-authored-by: Colin Watson &lt;cjwatson@debian.org&gt;

Co-authored-by: Colin Watson &lt;cjwatson@debian.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Python 2, it was possible to use `except` with a nested tuple, and occasionally natural.  For example, `zope.formlib.interfaces.InputErrors` is a tuple of several exception classes, and one might reasonably think to do something like this:

    try:
        self.getInputValue()
        return True
    except (InputErrors, SomethingElse):
        return False

As of Python 3.0, this raises `TypeError: catching classes that do not inherit from BaseException is not allowed` instead: one must instead either break it up into multiple `except` clauses or flatten the tuple.  However, the reference documentation was never updated to match this new restriction.  Make it clear that the definition is no longer recursive.

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit c95f8bc2700b42f4568886505a819816c9b0ba28)

Co-authored-by: Colin Watson &lt;cjwatson@debian.org&gt;

Co-authored-by: Colin Watson &lt;cjwatson@debian.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.8] bpo-39416: change word case to not imply ABC (GH-22867) (GH-22869)</title>
<updated>2020-12-16T03:18:17+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-12-16T03:18:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=aedc94b8e9d0f7700c665d8d1ba9c93df33e63a8'/>
<id>aedc94b8e9d0f7700c665d8d1ba9c93df33e63a8</id>
<content type='text'>
follow-up to bpo-39416

Co-authored-by: kpinc &lt;kop@karlpinc.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
follow-up to bpo-39416

Co-authored-by: kpinc &lt;kop@karlpinc.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-6761: Enhance __call__ documentation (GH-7987)</title>
<updated>2020-10-27T16:28:00+00:00</updated>
<author>
<name>Miss Skeleton (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-10-27T16:28:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b1ce0440bfe87e092ca5e2e57875fb7fc1129137'/>
<id>b1ce0440bfe87e092ca5e2e57875fb7fc1129137</id>
<content type='text'>
(cherry picked from commit 95f710c55714153f0c8cce48f8215bb3d866ac1d)

Co-authored-by: Andre Delfino &lt;adelfino@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 95f710c55714153f0c8cce48f8215bb3d866ac1d)

Co-authored-by: Andre Delfino &lt;adelfino@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-29981: Add examples and update index for set, dict, and generator comprehensions'(GH-20272)</title>
<updated>2020-10-25T02:53:18+00:00</updated>
<author>
<name>Miss Skeleton (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-10-25T02:53:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=60bef61f717dde915058b03159b2c2e97d765858'/>
<id>60bef61f717dde915058b03159b2c2e97d765858</id>
<content type='text'>
Co-authored-by: Rémi Lapeyre &lt;remi.lapeyre@henki.fr&gt;
(cherry picked from commit 2d55aa9e37c9c84f4f6a8135d0326da0bcd8f38b)

Co-authored-by: Florian Dahlitz &lt;f2dahlitz@freenet.de&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Rémi Lapeyre &lt;remi.lapeyre@henki.fr&gt;
(cherry picked from commit 2d55aa9e37c9c84f4f6a8135d0326da0bcd8f38b)

Co-authored-by: Florian Dahlitz &lt;f2dahlitz@freenet.de&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41910: specify the default implementations of object.__eq__ and object.__ne__ (GH-22874) (#22877)</title>
<updated>2020-10-22T00:07:59+00:00</updated>
<author>
<name>Miss Skeleton (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-10-22T00:07:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b2b3803081f07600710273b4f902b5be6e5596e7'/>
<id>b2b3803081f07600710273b4f902b5be6e5596e7</id>
<content type='text'>
See Objects/typeobject.c:object_richcompare() for the implementation of this in CPython.

Co-authored-by: Brett Cannon &lt;brett@python.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See Objects/typeobject.c:object_richcompare() for the implementation of this in CPython.

Co-authored-by: Brett Cannon &lt;brett@python.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35181: Correct importlib documentation for some module attributes (GH-15190)</title>
<updated>2020-10-21T21:27:10+00:00</updated>
<author>
<name>Miss Skeleton (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-10-21T21:27:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=916ac9520108831d2099b13992a45884b112b193'/>
<id>916ac9520108831d2099b13992a45884b112b193</id>
<content type='text'>
@ericsnowcurrently This PR will change the following:

In the library documentation importlib.rst:

- `module.__package__` can be `module.__name__` for packages;
- `spec.parent` can be `spec.__name__` for packages;
- `spec.loader` is not `None` for namespaces packages.

In the language documentation import.rst:

- `spec.loader` is not `None` for namespace packages.

Automerge-Triggered-By: GH:warsaw
(cherry picked from commit 27f1bd8787d24ac53cc3dc6ea5eb00b8a3499839)

Co-authored-by: Géry Ogam &lt;gery.ogam@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
@ericsnowcurrently This PR will change the following:

In the library documentation importlib.rst:

- `module.__package__` can be `module.__name__` for packages;
- `spec.parent` can be `spec.__name__` for packages;
- `spec.loader` is not `None` for namespaces packages.

In the language documentation import.rst:

- `spec.loader` is not `None` for namespace packages.

Automerge-Triggered-By: GH:warsaw
(cherry picked from commit 27f1bd8787d24ac53cc3dc6ea5eb00b8a3499839)

Co-authored-by: Géry Ogam &lt;gery.ogam@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.8] bpo-39416: Document some restrictions on the default string representations of numeric classes (GH-18111) (GH-22861)</title>
<updated>2020-10-21T18:56:20+00:00</updated>
<author>
<name>Miss Skeleton (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-10-21T18:56:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=89fac4c3748aa7eb23d09922331e90a62ce782fd'/>
<id>89fac4c3748aa7eb23d09922331e90a62ce782fd</id>
<content type='text'>
[[bpo-39416]()](): Document string representations of the Numeric classes

This is a change to the specification of the Python language.

The idea here is to put sane minimal limits on the Python language's default
representations of its Numeric classes.  That way "Marty's Robotic Massage Parlor
and Python Interpreter" implementation of Python won't do anything too
crazy.

Some discussion in the email thread:
Subject: Documenting Python's float.__str__()
https://mail.python.org/archives/list/python-dev@python.org/thread/FV22TKT3S2Q3P7PNN6MCXI6IX3HRRNAL/
(cherry picked from commit c60394c7fc9cc09b16e9675a3eeb5844b6d8523f)


Co-authored-by: kpinc &lt;kop@karlpinc.com&gt;

Automerge-Triggered-By: GH:merwok</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[[bpo-39416]()](): Document string representations of the Numeric classes

This is a change to the specification of the Python language.

The idea here is to put sane minimal limits on the Python language's default
representations of its Numeric classes.  That way "Marty's Robotic Massage Parlor
and Python Interpreter" implementation of Python won't do anything too
crazy.

Some discussion in the email thread:
Subject: Documenting Python's float.__str__()
https://mail.python.org/archives/list/python-dev@python.org/thread/FV22TKT3S2Q3P7PNN6MCXI6IX3HRRNAL/
(cherry picked from commit c60394c7fc9cc09b16e9675a3eeb5844b6d8523f)


Co-authored-by: kpinc &lt;kop@karlpinc.com&gt;

Automerge-Triggered-By: GH:merwok</pre>
</div>
</content>
</entry>
<entry>
<title>Doc: Fix a typo/error in the docs for cached bytecode (GH-22445)</title>
<updated>2020-10-21T08:46:22+00:00</updated>
<author>
<name>Miss Skeleton (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-10-21T08:46:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a8e6af798e6bfc0d9479a4d16e2bc8cc1a4ad283'/>
<id>a8e6af798e6bfc0d9479a4d16e2bc8cc1a4ad283</id>
<content type='text'>
(cherry picked from commit cb115e36e1aba04b90b0ecac6f043e60064ac65b)

Co-authored-by: Zackery Spytz &lt;zspytz@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit cb115e36e1aba04b90b0ecac6f043e60064ac65b)

Co-authored-by: Zackery Spytz &lt;zspytz@gmail.com&gt;</pre>
</div>
</content>
</entry>
</feed>
