tag:blogger.com,1999:blog-39415539074308991632025-06-04T21:49:56.988-04:00Python InsiderPython core development news and information.Doug Hellmannhttp://www.blogger.com/profile/01892352754222143463[email protected]Blogger283125tag:blogger.com,1999:blog-3941553907430899163.post-89113930609386873402025-06-03T17:04:00.002-04:002025-06-03T17:04:41.964-04:00Python 3.13.4, 3.12.11, 3.11.13, 3.10.18 and 3.9.23 are now available<p>&nbsp;</p><h1 style="text-align: left;">Python Release Party</h1> <p>It was only meant to be release day for 3.13.4 today, but poor number 13 looked so lonely… And hey, we had a couple of tarfile CVEs that we had to fix. So most of the Release Managers and all the Developers-in-Residence (including Security Developer-in-Residence Seth Michael Larson) came together to make it a full release party.</p> <h1 style="text-align: left;">Security content in these releases</h1> <ul><li><a href="https://github.com/python/cpython/issues/135034">gh-135034</a>: Fixes multiple issues that allowed <code>tarfile</code> extraction filters (<code>filter="data"</code> and <code>filter="tar"</code>) to be bypassed using crafted symlinks and hard links.Addresses <a href="https://www.cve.org/CVERecord?id=CVE-2024-12718"><b>CVE 2024-12718</b></a>, <a href="https://www.cve.org/CVERecord?id=CVE-2025-4138"><b>CVE 2025-4138</b></a>, <a href="https://www.cve.org/CVERecord?id=CVE-2025-4330"><b>CVE 2025-4330</b></a>, and <a href="https://www.cve.org/CVERecord?id=CVE-2025-4517"><b>CVE 2025-4517</b></a>.</li><li><a href="https://github.com/python/cpython/issues/133767">gh-133767</a>: Fix use-after-free in the “unicode-escape” decoder with a non-“strict” error handler.</li><li><a href="https://github.com/python/cpython/issues/128840">gh-128840</a>: Short-circuit the processing of long IPv6 addresses early in <a href="https://docs.python.org/release/3.13.4/library/ipaddress.html#module-ipaddress"><code>ipaddress</code></a> to prevent excessive memory consumption and a minor denial-of-service.</li></ul> <p>In addition to the security fixed mentioned above, a few additional changes to the <code>ipaddress</code> were backported to make the security fixes feasible. (See the full changelogs for each release for more details.)</p> <h1 style="text-align: left;">Python 3.13.4</h1> <p>In addition to the security fixes, the fourth maintenance release of Python 3.13 contains more than 300 bugfixes, build improvements and documentation changes.</p><p><a href="https://www.python.org/downloads/release/python-3134/">https://www.python.org/downloads/release/python-3134/</a></p> <h1 style="text-align: left;">Python 3.12.11</h1><p><a href="https://www.python.org/downloads/release/python-31211/">https://www.python.org/downloads/release/python-31211/</a></p><h1 style="text-align: left;">Python 3.11.13</h1><p>&nbsp;<a href="https://www.python.org/downloads/release/python-31113/">https://www.python.org/downloads/release/python-31113/</a></p><h1 style="text-align: left;">Python 3.10.18</h1> <aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-31018/"><br /></aside><aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-31018/"><a href="https://www.python.org/downloads/release/python-31018/">https://www.python.org/downloads/release/python-31018/</a></aside><aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-31018/">&nbsp;</aside> <h1 style="text-align: left;">Python 3.9.23</h1> <p>Additional security content in this release (already fixed in older releases for the other versions):</p> <ul><li><a href="https://github.com/python/cpython/issues/80222">gh-80222</a>: Fix bug in the folding of quoted strings when flattening an email message using a modern email policy. Previously when a quoted string was folded so that it spanned more than one line, the surrounding quotes and internal escapes would be omitted. This could theoretically be used to spoof header lines using a carefully constructed quoted string if the resulting rendered email was transmitted or re-parsed.</li></ul> <aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-3923/"><a href="https://www.python.org/downloads/release/python-3923">https://www.python.org/downloads/release/python-3923</a><div class="onebox-metadata"> </div> <br /></aside> <h1 style="text-align: left;">Stay safe and upgrade!</h1> <p>As always, upgrading is highly recommended to all users of affected versions.</p> <h1 style="text-align: left;">Enjoy the new releases</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p> <p>Regards from your very <s>tired</s> tireless release team,<br /> Thomas Wouters <br /> Pablo Galindo Salgado <br /> Łukasz Langa <br /> Ned Deily <br /> Steve Dower <br /></p>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-89710551255077019012025-05-26T15:35:00.002-04:002025-05-26T15:40:46.319-04:00Python 3.14.0 beta 2 is here!<p>Here’s the second 3.14 beta.</p> <p><a href="https://www.python.org/downloads/release/python-3140b2/" class="uri">https://www.python.org/downloads/release/python-3140b2/</a></p> <p><strong>This is a beta preview of Python 3.14</strong></p> <p>Python 3.14 is still in development. This release, 3.14.0b2, is the second of four planned beta releases.</p> <p>Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support the new feature release.</p> <p>We <strong><em>strongly encourage</em></strong> maintainers of third-party Python projects to <strong><em>test with 3.14</em></strong> during the beta phase and report issues found to <a href="https://github.com/python/cpython/issues">the Python bug tracker</a> as soon as possible. While the release is planned to be feature-complete entering the beta phase, it is possible that features may be modified or, in rare cases, deleted up until the start of the release candidate phase (Tuesday 2025-07-22). Our goal is to have <strong><em>no ABI changes</em></strong> after beta 4 and as few code changes as possible after the first release candidate. To achieve that, it will be <strong><em>extremely important</em></strong> to get as much exposure for 3.14 as possible during the beta phase.</p> <p>This includes creating pre-release wheels for 3.14, as it helps other projects to do their own testing. However, we recommend that your regular production releases wait until 3.14.0rc1, to avoid the risk of ABI breaks.</p> <p>Please keep in mind that this is a preview release and its use is <strong><em>not</em></strong> recommended for production environments.</p> <h1 id="major-new-features-of-the-3.14-series-compared-to-3.13">Major new features of the 3.14 series, compared to 3.13</h1> <p>Some of the major new features and changes in Python 3.14 are:</p> <h2 id="new-features">New features</h2> <ul> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep649">PEP 649</a>: The evaluation of type annotations is now deferred, improving the semantics of using annotations.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep750">PEP 750</a>: Template string literals (t-strings) for custom string processing, using the familiar syntax of f-strings.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep784">PEP 784</a>: A new module <code>compression.zstd</code> providing support for the Zstandard compression algorithm.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep758">PEP 758</a>: <code>except</code> and <code>except*</code> expressions may now omit the brackets.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pyrepl-highlighting">Syntax highlighting in PyREPL</a>, and support for color in <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-color-unittest">unittest</a>, <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-color-argparse">argparse</a>, <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-color-json">json</a> and <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-color-calendar">calendar</a> CLIs.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep768">PEP 768</a>: A zero-overhead external debugger interface for CPython.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#uuid">UUID versions 6-8</a> are now supported by the <code>uuid</code> module, and generation of versions 3-5 and 8 are up to 40% faster.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep765">PEP 765</a>: Disallow <code>return</code>/<code>break</code>/<code>continue</code> that exit a <code>finally</code> block.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep741">PEP 741</a>: An improved C API for configuring Python.</li> <li>A <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-tail-call">new type of interpreter</a>. For certain newer compilers, this interpreter provides significantly better performance. Opt-in for now, requires building from source.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#improved-error-messages">Improved error messages.</a></li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#hmac">Builtin implementation of HMAC</a> with formally verified code from the HACL* project.</li> <li>A <a href="https://docs.python.org/3.14/whatsnew/3.14.html#asyncio-introspection-capabilities">new command-line interface</a> to inspect running Python processes using asynchronous tasks.</li> <li>The pdb module now supports <a href="https://docs.python.org/3.14/whatsnew/3.14.html#remote-attaching-to-a-running-python-process-with-pdb">remote attaching to a running Python process</a>.</li> </ul> <p><small>(Hey, <strong>fellow core developer,</strong> if a feature you find important is missing from this list, let Hugo know.)</small></p> <p>For more details on the changes to Python 3.14, see <a href="https://docs.python.org/3.14/whatsnew/3.14.html">What’s new in Python 3.14</a>. The next pre-release of Python 3.14 will be 3.14.0b3, scheduled for 2025-06-17.</p> <h2 id="build-changes">Build changes</h2> <ul> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep761">PEP 761</a>: Python 3.14 and onwards no longer provides PGP signatures for release artifacts. Instead, Sigstore is recommended for verifiers.</li> <li>Official macOS and Windows release binaries include an <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-jit-compiler"><em>experimental</em> JIT compiler</a>.</li> </ul> <h2 id="incompatible-changes-removals-and-new-deprecations">Incompatible changes, removals and new deprecations</h2> <ul> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#incompatible-changes">Incompatible changes</a></li> <li>Python <a href="https://docs.python.org/3.14/whatsnew/3.14.html#removed">removals</a> and <a href="https://docs.python.org/3.14/whatsnew/3.14.html#deprecated">deprecations</a></li> <li>C API <a href="https://docs.python.org/3.14/whatsnew/3.14.html#c-api-removed">removals</a> and <a href="https://docs.python.org/3.14/whatsnew/3.14.html#c-api-deprecated">deprecations</a></li> <li>Overview of all <a href="https://docs.python.org/3.14/deprecations/index.html">pending deprecations</a></li> </ul> <h1 id="python-install-manager">Python install manager</h1> <p>The installer we offer for Windows is being replaced by our new install manager, which can be installed from <a href="https://apps.microsoft.com/detail/9NQ7512CXL7T">the Windows Store</a> or <a href="https://www.python.org/ftp/python/pymanager/">our FTP page</a>. See <a href="https://docs.python.org/3.14/using/windows.html">our documentation</a> for more information. The JSON file available for download below contains the list of all the installable packages available as part of this release, including file URLs and hashes, but is not required to install the latest release. The traditional installer will remain available throughout the 3.14 and 3.15 releases.</p> <h1 id="more-resources">More resources</h1> <ul> <li><a href="https://docs.python.org/3.14/">Online documentation</a></li> <li><a href="https://peps.python.org/pep-0745/">PEP 745</a>, 3.14 Release Schedule</li> <li>Report bugs at <a href="https://github.com/python/cpython/issues">github.com/python/cpython/issues</a></li> <li><a href="https://www.python.org/psf/donations/">Help fund Python and its community</a></li> </ul> <h1 id="and-now-for-something-completely-different">And now for something completely different</h1> <p>In 1897, the State of Indiana almost passed a bill defining <em>π</em> as 3.2.</p> <p>Of course, it’s not that simple.</p> <p>Edwin J. Goodwin, M.D., claimed to have come up with a solution to an ancient geometrical problem called squaring the circle, first proposed in Greek mathematics. It involves trying to draw a circle and a square with the same area, using only a compass and a straight edge. It turns out to be impossible because <em>π</em> is transcendental (and this had been proved just 13 years earlier by Ferdinand von Lindemann), but Goodwin fudged things so the value of <em>π</em> was 3.2 (his writings have included at least nine different values of <em>π</em>: including 4, 3.236, 3.232, 3.2325… and even 9.2376…).</p> <p>Goodwin had copyrighted his proof and offered it to the State of Indiana to use in their educational textbooks without paying royalties, provided they endorsed it. And so Indiana Bill No. 246 was introduced to the House on 18th January 1897. It was not understood and initially referred to the House Committee on Canals, also called the Committee on Swamp Lands. They then referred it to the Committee on Education, who duly recommended on 2nd February that “said bill do pass”. It passed its second reading on the 5th and the education chair moved that they suspend the constitutional rule that required bills to be read on three separate days. This passed 72-0, and the bill itself passed 67-0.</p> <p>The bill was referred to the Senate on 10th February, had its first reading on the 11th, and was referred to the Committee on Temperance, whose chair on the 12th recommended “that said bill do pass”.</p> <p>A mathematics professor, <a href="https://www.biodiversitylibrary.org/page/14641808#page/455/mode/1up">Clarence Abiathar Waldo</a>, happened to be in the State Capitol on the day the House passed the bill and walked in during the debate to hear an ex-teacher argue:</p> <blockquote> <p>The case is perfectly simple. If we pass this bill which establishes a new and correct value for pi , the author offers to our state without cost the use of his discovery and its free publication in our school text books, while everyone else must pay him a royalty.</p> </blockquote> <p>Waldo ensured the senators were “properly coached”; and on the 12th, during the second reading, after an unsuccessful attempt to amend the bill it was postponed indefinitely. But not before the senators had some fun.</p> <p>The Indiana News reported on the 13th:</p> <blockquote> <p>…the bill was brought up and made fun of. The Senators made bad puns about it, ridiculed it and laughed over it. The fun lasted half an hour. Senator Hubbell said that it was not meet for the Senate, which was costing the State $250 a day, to waste its time in such frivolity. He said that in reading the leading newspapers of Chicago and the East, he found that the Indiana State Legislature had laid itself open to ridicule by the action already taken on the bill. He thought consideration of such a proposition was not dignified or worthy of the Senate. He moved the indefinite postponement of the bill, and the motion carried.</p> </blockquote> <h1 id="enjoy-the-new-release">Enjoy the new release</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organisation contributions to the <a href="https://www.python.org/psf-landing/">Python Software Foundation</a>.</p> <p>Regards from Helsinki, still light at 10pm,</p> <p>Your release team, <br>Hugo van Kemenade<br>Ned Deily<br>Steve Dower<br>Łukasz Langa</p> Hugohttp://www.blogger.com/profile/02811718172961252565[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-78658096907786710942025-05-07T13:34:00.003-04:002025-05-09T05:08:04.844-04:00Python 3.14.0 beta 1 is here!<p>Only one day late, welcome to the first beta!</p> <p><a href="https://www.python.org/downloads/release/python-3140b1/" class="uri">https://www.python.org/downloads/release/python-3140b1/</a></p> <p><strong>This is a beta preview of Python 3.14</strong></p> <p>Python 3.14 is still in development. This release, 3.14.0b1, is the first of four planned beta releases.</p> <p>Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support the new feature release.</p> <p>We <strong><em>strongly encourage</em></strong> maintainers of third-party Python projects to <strong><em>test with 3.14</em></strong> during the beta phase and report issues found to <a href="https://github.com/python/cpython/issues">the Python bug tracker</a> as soon as possible. While the release is planned to be feature-complete entering the beta phase, it is possible that features may be modified or, in rare cases, deleted up until the start of the release candidate phase (Tuesday 2025-07-22). Our goal is to have <strong><em>no ABI changes</em></strong> after beta 4 and as few code changes as possible after the first release candidate. To achieve that, it will be <strong><em>extremely important</em></strong> to get as much exposure for 3.14 as possible during the beta phase.</p> <p>Please keep in mind that this is a preview release and its use is <strong><em>not</em></strong> recommended for production environments.</p> <h1 id="major-new-features-of-the-3.14-series-compared-to-3.13">Major new features of the 3.14 series, compared to 3.13</h1> <p>Some of the major new features and changes in Python 3.14 are:</p> <h2 id="new-features">New features</h2> <ul> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep649">PEP 649</a>: The evaluation of type annotations is now deferred, improving the semantics of using annotations.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep750">PEP 750</a>: Template string literals (t-strings) for custom string processing, using the familiar syntax of f-strings.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep784">PEP 784</a>: A new module <code>compression.zstd</code> providing support for the Zstandard compression algorithm.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep758">PEP 758</a>: <code>except</code> and <code>except*</code> expressions may now omit the brackets.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pyrepl-highlighting">Syntax highlighting in PyREPL</a>, and support for color in <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-color-unittest">unittest</a>, <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-color-argparse">argparse</a>, <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-color-json">json</a> and <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-color-calendar">calendar</a> CLIs.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep768">PEP 768</a>: A zero-overhead external debugger interface for CPython.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#uuid">UUID versions 6-8</a> are now supported by the <code>uuid</code> module, and generation of versions 3-5 and 8 are up to 40% faster.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep765">PEP 765</a>: Disallow <code>return</code>/<code>break</code>/<code>continue</code> that exit a <code>finally</code> block.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep741">PEP 741</a>: An improved C API for configuring Python.</li> <li>A <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-tail-call">new type of interpreter</a>. For certain newer compilers, this interpreter provides significantly better performance. Opt-in for now, requires building from source.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#improved-error-messages">Improved error messages.</a></li> <li>Builtin implementation of HMAC with formally verified code from the HACL* project.</li> </ul> <p><small>(Hey, <strong>fellow core developer,</strong> if a feature you find important is missing from this list, let Hugo know.)</small></p> <p>For more details on the changes to Python 3.14, see <a href="https://docs.python.org/3.14/whatsnew/3.14.html">What’s new in Python 3.14</a>. The next pre-release of Python 3.14 will be 3.14.0b2, scheduled for 2025-05-27.</p> <h2 id="build-changes">Build changes</h2> <ul> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep761">PEP 761</a>: Python 3.14 and onwards no longer provides PGP signatures for release artifacts. Instead, Sigstore is recommended for verifiers.</li> <li>Official macOS and Windows release binaries include an <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-jit-compiler"><em>experimental</em> JIT compiler</a>.</li> </ul> <h2 id="incompatible-changes-removals-and-new-deprecations">Incompatible changes, removals and new deprecations</h2> <ul> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#incompatible-changes">Incompatible changes</a></li> <li>Python <a href="https://docs.python.org/3.14/whatsnew/3.14.html#removed">removals</a> and <a href="https://docs.python.org/3.14/whatsnew/3.14.html#deprecated">deprecations</a></li> <li>C API <a href="https://docs.python.org/3.14/whatsnew/3.14.html#c-api-removed">removals</a> and <a href="https://docs.python.org/3.14/whatsnew/3.14.html#c-api-deprecated">deprecations</a></li> <li>Overview of all <a href="https://docs.python.org/3.14/deprecations/index.html">pending deprecations</a></li> </ul> <h1 id="python-install-manager">Python install manager</h1> <p>The installer we offer for Windows is being replaced by our new install manager, which can be installed from <a href="https://apps.microsoft.com/detail/9NQ7512CXL7T">the Windows Store</a> or <a href="https://www.python.org/ftp/python/pymanager/">our FTP page</a>. See <a href="https://docs.python.org/3.14/using/windows.html">our documentation</a> for more information. The <a href="https://www.python.org/ftp/python/3.14.0/windows-3.14.0b1.json">JSON file available for download</a> contains the list of all the installable packages available as part of this release, including file URLs and hashes, but is not required to install the latest release. The traditional installer will remain available throughout the 3.14 and 3.15 releases.</p> <h1 id="more-resources">More resources</h1> <ul> <li><a href="https://docs.python.org/3.14/">Online documentation</a></li> <li><a href="https://peps.python.org/pep-0745/">PEP 745</a>, 3.14 Release Schedule</li> <li>Report bugs at <a href="https://github.com/python/cpython/issues">github.com/python/cpython/issues</a></li> <li><a href="https://www.python.org/psf/donations/">Help fund Python and its community</a></li> </ul> <h1 id="note">Note</h1> <p>During the release process, we discovered a test that only failed when run sequentially and only when run after a certain number of other tests. This appears to be a problem with the test itself, and we will make it more robust for beta 2. For details, see <a href="https://github.com/python/cpython/issues/133532">python/cpython#133532</a>.</p> <h1 id="and-now-for-something-completely-different">And now for something completely different</h1> <p>The mathematical constant pi is represented by the Greek letter <em>π</em> and represents the ratio of a circle’s circumference to its diameter. The first person to use <em>π</em> as a symbol for this ratio was Welsh self-taught mathematician William Jones in 1706. He was a farmer’s son born in Llanfihangel Tre’r Beirdd on Angelsy (Ynys Môn) in 1675 and only received a basic education at a local charity school. However, the owner of his parents’ farm noticed his mathematical ability and arranged for him to move to London to work in a bank.</p> <p>By age 20, he served at sea in the Royal Navy, teaching sailors mathematics and helping with the ship’s navigation. On return to London seven years later, he became a maths teacher in coffee houses and a private tutor. In 1706, Jones published <em>Synopsis Palmariorum Matheseos</em> which used the symbol <em>π</em> for the ratio of a circle’s circumference to diameter (hunt for it on pages <a href="https://archive.org/details/SynopsisPalmariorumMatheseosOrANewIntroductionToTheMathematics/page/n261/mode/1up?view=theater">243</a> and <a href="https://archive.org/details/SynopsisPalmariorumMatheseosOrANewIntroductionToTheMathematics/page/n283/mode/1up?view=theater">263</a> or <a href="https://commons.wikimedia.org/wiki/File:Synopsis_Palmariorum_Matheseos_pi.jpg">here</a>). Jones was also the first person to realise <em>π</em> is an irrational number, meaning it can be written as decimal number that goes on forever, but cannot be written as a fraction of two integers.</p> <p>But why <em>π</em>? It’s thought Jones used the Greek letter <em>π</em> because it’s the first letter in <em>perimetron</em> or perimeter. Jones was the first to use <em>π</em> as our familiar ratio but wasn’t the first to use it in as part of the ratio. William Oughtred, in his 1631 <em>Clavis Mathematicae</em> (<em>The Key of Mathematics</em>), used <em>π/δ</em> to represent what we now call pi. His <em>π</em> was the circumference, not the ratio of circumference to diameter. James Gregory, in his 1668 <em>Geometriae Pars Universalis</em> (<em>The Universal Part of Geometry</em>) used <em>π/ρ</em> instead, where <em>ρ</em> is the radius, making the ratio 6.28… or <a href="https://www.tauday.com/"><em>τ</em></a>. After Jones, Leonhard Euler had used <em>π</em> for 6.28…, and also <em>p</em> for 3.14…, before settling on and popularising <em>π</em> for the famous ratio.</p> <h1 id="enjoy-the-new-release">Enjoy the new release</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organisation contributions to the <a href="https://www.python.org/psf-landing/">Python Software Foundation</a>.</p> <p>Regards from Helsinki as the leaves begin to appear on the trees,</p> <p>Your release team, <br> <br> Hugo van Kemenade <br> Ned Deily <br> Steve Dower <br> Łukasz Langa</p> Hugohttp://www.blogger.com/profile/02811718172961252565[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-18949023195496520102025-04-08T15:15:00.002-04:002025-04-08T15:27:21.777-04:00Python 3.14.0a7, 3.13.3, 3.12.10, 3.11.12, 3.10.17 and 3.9.22 are now available<p>Not one, not two, not three, not four, not five, but six releases! Is this the most in a single day?</p> <p>3.12-3.14 were regularly scheduled, and we had some security fixes to release in 3.9-3.11 so let’s make a big day of it. This also marks the last bugfix release of 3.12 as it enters the security-only phase. See <a href="https://devguide.python.org/versions/">devguide.python.org/versions/</a> for a chart.</p> <h1 id="python-3.14.0a7">Python 3.14.0a7</h1> <p>Here comes the final alpha! This means we have just four weeks until the first beta to get those last features into 3.14 before the feature freeze on 2025-05-06!</p> <p><a href="https://www.python.org/downloads/release/python-3140a7/">https://www.python.org/downloads/release/python-3140a7/</a></p> <p><strong>This is an early developer preview of Python 3.14</strong></p> <h2 id="major-new-features-of-the-3.14-series-compared-to-3.13">Major new features of the 3.14 series, compared to 3.13</h2> <p>Python 3.14 is still in development. This release, 3.14.0a7, is the last of seven planned alpha releases.</p> <p>Alpha releases are intended to make it easier to test the current state of new features and bug fixes and to test the release process.</p> <p>During the alpha phase, features may be added up until the start of the beta phase (2025-05-06) and, if necessary, may be modified or deleted up until the release candidate phase (2025-07-22). Please keep in mind that this is a preview release and its use is <strong>not</strong> recommended for production environments.</p> <p>Many new features for Python 3.14 are still being planned and written. Among the new major new features and changes so far:</p> <ul> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep649">PEP 649</a>: deferred evaluation of annotations</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep741">PEP 741</a>: Python configuration C API</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep758">PEP 758</a>: Allow except and except* expressions without parentheses</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep761">PEP 761</a>: Python 3.14 and onwards no longer provides PGP signatures for release artifacts. Instead, Sigstore is recommended for verifiers.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep765">PEP 765</a>: disallow <code>return</code>/<code>break</code>/<code>continue</code> that exit a <code>finally</code> block</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-pep768">PEP 768</a>: Safe external debugger interface for CPython</li> <li>A <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-tail-call">new type of interpreter</a>. For certain newer compilers, this interpreter provides significantly better performance. Opt-in for now, requires building from source.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#uuid">UUID versions 6-8</a> are now supported by the <code>uuid</code> module, and generation of versions 3-5 and 8 are up to 40% faster.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#improved-error-messages">Improved error messages</a></li> <li>Python <a href="https://docs.python.org/3.14/whatsnew/3.14.html#removed">removals</a> and <a href="https://docs.python.org/3.14/whatsnew/3.14.html#deprecated">deprecations</a></li> <li>C API <a href="https://docs.python.org/3.14/whatsnew/3.14.html#c-api-removed">removals</a> and <a href="https://docs.python.org/3.14/whatsnew/3.14.html#c-api-deprecated">deprecations</a></li> <li><small>(Hey, <strong>fellow core developer,</strong> if a feature you find important is missing from this list, let Hugo know.)</small></li> </ul> <p>The next pre-release of Python 3.14 will be the first beta, 3.14.0b1, currently scheduled for 2025-05-06. After this, no new features can be added but bug fixes and docs improvements are allowed – and encouraged!</p> <h1 id="python-3.13.3">Python 3.13.3</h1> <p>This is the third maintenance release of Python 3.13.</p> <p>Python 3.13 is the newest major release of the Python programming language, and it contains many new features and optimizations compared to Python 3.12. 3.13.3 is the latest maintenance release, containing almost 320 bugfixes, build improvements and documentation changes since 3.13.2.</p> <p><a href="https://www.python.org/downloads/release/python-3133/">https://www.python.org/downloads/release/python-3133/</a></p> <h1 id="python-3.12.10">Python 3.12.10</h1> <p>This is the tenth maintenance release of Python 3.12.</p> <p>Python 3.12.10 is the latest maintenance release of Python 3.12, and the last full maintenance release. Subsequent releases of 3.12 will be security-fixes only. This last maintenance release contains about 230 bug fixes, build improvements and documentation changes since 3.12.9.</p> <p><a href="https://www.python.org/downloads/release/python-31210/">https://www.python.org/downloads/release/python-31210/</a></p> <h1 id="python-3.11.12">Python 3.11.12</h1> <p>This is a security release of Python 3.11:</p> <ul> <li><a href="https://github.com/python/cpython/issues/106883">gh-106883</a>: Fix deadlock in threaded application when using sys._current_frames</li> <li><a href="https://github.com/python/cpython/issues/131809">gh-131809</a>: Upgrade vendored expat to 2.7.1</li> <li><a href="https://github.com/python/cpython/issues/80222">gh-80222</a>: Folding of quoted string in display_name violates RFC</li> <li><a href="https://github.com/python/cpython/issues/121284">gh-121284</a>: Invalid RFC 2047 address header after refolding with email.policy.default</li> <li><a href="https://github.com/python/cpython/issues/131261">gh-131261</a>: Update libexpat to 2.7.0</li> <li><a href="https://github.com/python/cpython/issues/105704">gh-105704</a>: [CVE-2025-0938] urlparse does not flag hostname <em>containing</em> [ or ] as incorrect</li> <li><a href="https://github.com/python/cpython/issues/119511">gh-119511</a>: OOM vulnerability in the imaplib module</li> </ul> <p><a href="https://www.python.org/downloads/release/python-31112/">https://www.python.org/downloads/release/python-31112/</a></p> <h1 id="python-3.10.17">Python 3.10.17</h1> <p>This is a security release of Python 3.10:</p> <ul> <li><a href="https://github.com/python/cpython/issues/131809">gh-131809</a>: Upgrade vendored expat to 2.7.1</li> <li><a href="https://github.com/python/cpython/issues/80222">gh-80222</a>: Folding of quoted string in display_name violates RFC</li> <li><a href="https://github.com/python/cpython/issues/121284">gh-121284</a>: Invalid RFC 2047 address header after refolding with email.policy.default</li> <li><a href="https://github.com/python/cpython/issues/131261">gh-131261</a>: Update libexpat to 2.7.0</li> <li><a href="https://github.com/python/cpython/issues/105704">gh-105704</a>: <a href="https://nvd.nist.gov/vuln/detail/CVE-2025-0938">CVE-2025-0938</a> urlparse does not flag hostname <em>containing</em> [ or ] as incorrect</li> <li><a href="https://github.com/python/cpython/issues/119511">gh-119511</a>: OOM vulnerability in the imaplib module</li> </ul> <p><a href="https://www.python.org/downloads/release/python-31017/">https://www.python.org/downloads/release/python-31017/</a></p> <h1 id="python-3.9.22">Python 3.9.22</h1> <p>This is a security release of Python 3.9:</p> <ul> <li><a href="https://github.com/python/cpython/issues/131809">gh-131809</a> and <a href="https://github.com/python/cpython/issues/131261">gh-131261</a>: Upgrade vendored expat to 2.7.1</li> <li><a href="https://github.com/python/cpython/issues/121284">gh-121284</a>: Invalid RFC 2047 address header after refolding with email.policy.default</li> <li><a href="https://github.com/python/cpython/issues/105704">gh-105704</a>: <a href="https://nvd.nist.gov/vuln/detail/CVE-2025-0938">CVE-2025-0938</a> urlparse does not flag hostname <em>containing</em> [ or ] as incorrect</li> <li><a href="https://github.com/python/cpython/issues/119511">gh-119511</a>: OOM vulnerability in the imaplib module</li> </ul> <p><a href="https://www.python.org/downloads/release/python-3922/">https://www.python.org/downloads/release/python-3922/</a></p> <h1 id="please-upgrade-please-test">Please upgrade! Please test!</h1> <p>We highly recommend upgrading 3.9-3.13 and we encourage you to test 3.14.</p> <h1 id="and-now-for-something-completely-different">And now for something completely different</h1> <p>On Saturday, 5th April, 3.141592653589793 months of the year had elapsed.</p> <h1 id="enjoy-the-new-releases">Enjoy the new releases</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organisation contributions to the <a href="https://www.python.org/psf-landing/">Python Software Foundation</a>.</p> <p>Regards from a sunny and cold Helsinki springtime,</p> <p>Your full release team,</p> <p>Hugo van Kemenade<br>Thomas Wouters<br>Pablo Galindo Salgado<br>Łukasz Langa <br>Ned Deily<br>Steve Dower</p> Hugohttp://www.blogger.com/profile/02811718172961252565[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-50826172271906019442025-03-14T13:27:00.001-04:002025-04-08T15:28:09.160-04:00Python 3.14.0 alpha 6 is out<p>Here comes the penultimate alpha.</p> <p><a href="https://www.python.org/downloads/release/python-3140a6/" class="uri">https://www.python.org/downloads/release/python-3140a6/</a></p> <p><strong>This is an early developer preview of Python 3.14</strong></p> <h1 id="major-new-features-of-the-3.14-series-compared-to-3.13">Major new features of the 3.14 series, compared to 3.13</h1> <p>Python 3.14 is still in development. This release, 3.14.0a6, is the sixth of seven planned alpha releases.</p> <p>Alpha releases are intended to make it easier to test the current state of new features and bug fixes and to test the release process.</p> <p>During the alpha phase, features may be added up until the start of the beta phase (2025-05-06) and, if necessary, may be modified or deleted up until the release candidate phase (2025-07-22). Please keep in mind that this is a preview release and its use is <strong>not</strong> recommended for production environments.</p> <p>Many new features for Python 3.14 are still being planned and written. Among the new major new features and changes so far:</p> <ul> <li><a href="https://peps.python.org/pep-0649/">PEP 649</a>: <a href="https://docs.python.org/3.14/whatsnew/3.14.html#pep-649-deferred-evaluation-of-annotations">deferred evaluation of annotations</a></li> <li><a href="https://peps.python.org/pep-0741/">PEP 741</a>: Python configuration C API</li> <li><a href="https://peps.python.org/pep-0761/">PEP 761</a>: Python 3.14 and onwards no longer provides PGP signatures for release artifacts. Instead, Sigstore is recommended for verifiers.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#improved-error-messages">Improved error messages</a></li> <li>A <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-tail-call">new type of interpreter</a>. For certain newer compilers, this interpreter provides significantly better performance. Opt-in for now, requires building from source.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#uuid">UUID versions 6-8</a> are now supported by the <code>uuid</code> module, and generation of versions 3-5 and 8 are up to 40% faster.</li> <li>Python <a href="https://docs.python.org/3.14/whatsnew/3.14.html#removed">removals</a> and <a href="https://docs.python.org/3.14/whatsnew/3.14.html#deprecated">deprecations</a></li> <li>C API <a href="https://docs.python.org/3.14/whatsnew/3.14.html#c-api-removed">removals</a> and <a href="https://docs.python.org/3.14/whatsnew/3.14.html#c-api-deprecated">deprecations</a></li> <li><small>(Hey, <strong>fellow core developer,</strong> if a feature you find important is missing from this list, let Hugo know.)</small></li> </ul> <p>The next pre-release of Python 3.14 will be the final alpha, 3.14.0a7, currently scheduled for 2025-04-08.</p> <h1 id="more-resources">More resources</h1> <ul> <li><a href="https://docs.python.org/3.14/">Online documentation</a></li> <li><a href="https://peps.python.org/pep-0745/">PEP 745</a>, 3.14 Release Schedule</li> <li>Report bugs at <a href="https://github.com/python/cpython/issues">github.com/python/cpython/issues</a></li> <li><a href="https://www.python.org/psf/donations/">Help fund Python and its community</a></li> </ul> <h1 id="and-now-for-something-completely-different">And now for something completely different</h1> <p>March 14 is celebrated as <a href="https://www.exploratorium.edu/pi">pi day</a>, because 3.14 is an approximation of π. The day is observed by eating pies (savoury and/or sweet) and celebrating π. The first pi day was organised by physicist and tinkerer Larry Shaw of the San Francisco <a href="https://annex.exploratorium.edu/learning_studio/pi/">Exploratorium</a> in 1988. It is also the <a href="https://www.idm314.org/">International Day of Mathematics</a> and Albert Einstein’s birthday. Let’s all eat some pie, recite some π, install and test some py, and wish a happy birthday to Albert, Loren and all the other pi day children!</p> <h1 id="enjoy-the-new-release">Enjoy the new release</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organisation contributions to the <a href="https://www.python.org/psf-landing/">Python Software Foundation</a>.</p> <p>Regards from Helsinki as fresh snow falls,</p> <p>Your release team, <br>Hugo van Kemenade<br>Ned Deily<br>Steve Dower<br>Łukasz Langa</p> Hugohttp://www.blogger.com/profile/02811718172961252565[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-31567901039606102372025-02-11T14:41:00.004-05:002025-02-11T16:25:58.012-05:00Python 3.14.0 alpha 5 is out<p>Here comes the antepenultimate alpha.</p> <p><a href="https://www.python.org/downloads/release/python-3140a5/" class="uri">https://www.python.org/downloads/release/python-3140a5/</a></p> <p><strong>This is an early developer preview of Python 3.14</strong></p> <h1 id="major-new-features-of-the-3.14-series-compared-to-3.13">Major new features of the 3.14 series, compared to 3.13</h1> <p>Python 3.14 is still in development. This release, 3.14.0a5, is the fifth of seven planned alpha releases.</p> <p>Alpha releases are intended to make it easier to test the current state of new features and bug fixes and to test the release process.</p> <p>During the alpha phase, features may be added up until the start of the beta phase (2025-05-06) and, if necessary, may be modified or deleted up until the release candidate phase (2025-07-22). Please keep in mind that this is a preview release and its use is <strong>not</strong> recommended for production environments.</p> <p>Many new features for Python 3.14 are still being planned and written. Among the new major new features and changes so far:</p> <ul> <li><a href="https://peps.python.org/pep-0649/">PEP 649</a>: <a href="https://docs.python.org/3.14/whatsnew/3.14.html#pep-649-deferred-evaluation-of-annotations">deferred evaluation of annotations</a></li> <li><a href="https://peps.python.org/pep-0741/">PEP 741</a>: Python configuration C API</li> <li><a href="https://peps.python.org/pep-0761/">PEP 761</a>: Python 3.14 and onwards no longer provides PGP signatures for release artifacts. Instead, Sigstore is recommended for verifiers.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#improved-error-messages">Improved error messages</a></li> <li>A <a href="https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-tail-call">new type of interpreter</a>. For certain newer compilers, this interpreter provides significantly better performance. Opt-in for now, requires building from source.</li> <li>Python <a href="https://docs.python.org/3.14/whatsnew/3.14.html#removed">removals</a> and <a href="https://docs.python.org/3.14/whatsnew/3.14.html#deprecated">deprecations</a></li> <li>C API <a href="https://docs.python.org/3.14/whatsnew/3.14.html#c-api-removed">removals</a> and <a href="https://docs.python.org/3.14/whatsnew/3.14.html#c-api-deprecated">deprecations</a></li> <li><small>(Hey, <strong>fellow core developer,</strong> if a feature you find important is missing from this list, let Hugo know.)</small></li> </ul> <p>The next pre-release of Python 3.14 will be the penultimate alpha, 3.14.0a6, currently scheduled for 2025-03-14.</p> <h1 id="more-resources">More resources</h1> <ul> <li><a href="https://docs.python.org/3.14/">Online documentation</a></li> <li><a href="https://peps.python.org/pep-0745/">PEP 745</a>, 3.14 Release Schedule</li> <li>Report bugs at <a href="https://github.com/python/cpython/issues">github.com/python/cpython/issues</a></li> <li><a href="https://www.python.org/psf/donations/">Help fund Python and its community</a></li> </ul> <h1 id="and-now-for-something-completely-different">And now for something completely different</h1> <p>2025-01-29 marked the start of a new lunar year, the Year of the Snake 🐍 (and the Year of Python?).</p> <p>For centuries, π was often approximated as 3 in China. Some time between the years 1 and 5 CE, astronomer, librarian, mathematician and politician Liu Xin (劉歆) calculated π as 3.154.</p> <p>Around 130 CE, mathematician, astronomer, and geographer Zhang Heng (張衡, 78–139) compared the celestial circle with the diameter of the earth as 736:232 to get 3.1724. He also came up with a formula for the ratio between a cube and inscribed sphere as 8:5, implying the ratio of a square’s area to an inscribed circle is √8:√5. From this, he calculated π as √10 (~3.162).</p> <p>Third century mathematician Liu Hui (刘徽) came up with an algorithm for calculating π iteratively: calculate the area of a polygon inscribed in a circle, then as the number of sides of the polygon is increased, the area becomes closer to that of the circle, from which you can approximate π.</p> <p>This algorithm is similar to the method used by Archimedes in the 3rd century BCE and Ludolph van Ceulen in the 16th century CE (see <a href="https://blog.python.org/2024/11/python-3140-alpha-2-released.html">3.14.0a2 release notes</a>), but Archimedes only went up to a 96-sided polygon (96-gon). Liu Hui went up to a 192-gon to approximate π as 157/50 (3.14) and later a 3072-gon for 3.14159.</p> <p>Liu Hu wrote a commentary on the book The Nine Chapters on the Mathematical Art which included his π approximations.</p> <p>In the fifth century, astronomer, inventor, mathematician, politician, and writer Zu Chongzhi (祖沖之, 429–500) used Liu Hui’s algorithm to inscribe a 12,288-gon to compute π between 3.1415926 and 3.1415927, correct to seven decimal places. This was more accurate than Hellenistic calculations and wouldn’t be improved upon for 900 years.</p> <p>Happy Year of the Snake!</p> <h1 id="enjoy-the-new-release">Enjoy the new release</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organisation contributions to the <a href="https://www.python.org/psf-landing/">Python Software Foundation</a>.</p> <p>Regards from a remarkably snowless Helsinki,</p> <p>Your release team, <br>Hugo van Kemenade<br>Ned Deily<br>Steve Dower<br>Łukasz Langa</p> Hugohttp://www.blogger.com/profile/02811718172961252565[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-45872220472354512622025-02-04T14:58:00.000-05:002025-02-04T14:58:14.631-05:00Python 3.13.2 and 3.12.9 now available!<p>&nbsp;</p><p>A small release day today! That is to say the releases are relatively small; the day itself was of average size, as most days are.</p><div class="cooked"> <h1 style="text-align: left;">Python 3.13.2</h1> <p>Python 3.13’s second maintenance release. About 250 changes went into this update, and can be yours for free if you just upgrade now.</p><p><a href="https://www.python.org/downloads/release/python-3132/">https://www.python.org/downloads/release/python-3132/</a></p><h1 style="text-align: left;">Python 3.12.9</h1> <p>Python 3.12’s <em>ninth</em> maintenance release already. Just 180 changes for 3.12, but it’s still worth upgrading.</p><p></p> <aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-3128/"><a href="https://www.python.org/downloads/release/python-3129/">https://www.python.org/downloads/release/python-3129/</a></aside><aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-3128/"><br /><div class="onebox-metadata"> </div> <div style="clear: both;"></div> </aside> <h1 style="text-align: left;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-1-3-12-8-3-11-11-3-10-16-and-3-9-21-are-now-available/73214#p-211771-enjoy-the-new-releases-7" name="p-211771-enjoy-the-new-releases-7"></a>Enjoy the new releases</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p> <p>Regards from your tireless, tireless release team,<br /> Thomas Wouters <br /> Ned Deily <br /> Steve Dower <br /> Łukasz Langa <br /></p></div>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-22979268851725155812025-01-14T11:46:00.001-05:002025-02-25T06:50:29.859-05:00Python 3.14.0 alpha 4 is out<p>Hello, three dot fourteen dot zero alpha four!</p> <p><a href="https://www.python.org/downloads/release/python-3140a4/" class="uri">https://www.python.org/downloads/release/python-3140a4/</a></p> <p><strong>This is an early developer preview of Python 3.14</strong></p> <h1 id="major-new-features-of-the-3.14-series-compared-to-3.13">Major new features of the 3.14 series, compared to 3.13</h1> <p>Python 3.14 is still in development. This release, 3.14.0a4, is the fourth of seven planned alpha releases.</p> <p>Alpha releases are intended to make it easier to test the current state of new features and bug fixes and to test the release process.</p> <p>During the alpha phase, features may be added up until the start of the beta phase (2025-05-06) and, if necessary, may be modified or deleted up until the release candidate phase (2025-07-22). Please keep in mind that this is a preview release and its use is <strong>not</strong> recommended for production environments.</p> <p>Many new features for Python 3.14 are still being planned and written. Among the new major new features and changes so far:</p> <ul> <li><a href="https://peps.python.org/pep-0649/">PEP 649</a>: <a href="https://docs.python.org/3.14/whatsnew/3.14.html#pep-649-deferred-evaluation-of-annotations">deferred evaluation of annotations</a></li> <li><a href="https://peps.python.org/pep-0741/">PEP 741</a>: Python configuration C API</li> <li><a href="https://peps.python.org/pep-0761/">PEP 761</a>: Python 3.14 and onwards no longer provides PGP signatures for release artifacts. Instead, Sigstore is recommended for verifiers.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#improved-error-messages">Improved error messages</a></li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#removed">Many removals</a> of deprecated classes, functions, methods and parameters in various standard library modules.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#deprecated">New deprecations</a>, many of which are scheduled for removal from Python 3.16</li> <li>C API <a href="https://docs.python.org/3.14/whatsnew/3.14.html#id13">removals</a> and <a href="https://docs.python.org/3.14/whatsnew/3.14.html#id10">deprecations</a></li> <li><small>(Hey, <strong>fellow core developer,</strong> if a feature you find important is missing from this list, let Hugo know.)</small></li> </ul> <p>The next pre-release of Python 3.14 will be 3.14.0a5, currently scheduled for 2025-02-11.</p> <h1 id="more-resources">More resources</h1> <ul> <li><a href="https://docs.python.org/3.14/">Online documentation</a></li> <li><a href="https://peps.python.org/pep-0745/">PEP 745</a>, 3.14 Release Schedule</li> <li>Report bugs at <a href="https://github.com/python/cpython/issues">https://github.com/python/cpython/issues</a></li> <li><a href="https://www.python.org/psf/donations/">Help fund Python and its community</a></li> </ul> <h1 id="and-now-for-something-completely-different">And now for something completely different</h1> <p>In Python, you can use Greek letters as constants. For example:</p> <div class="sourceCode" id="cb1"><pre class="sourceCode python"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> math <span class="im">import</span> pi <span class="im">as</span> π</span> <span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a></span> <span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="kw">def</span> circumference(radius: <span class="bu">float</span>) <span class="op">-&gt;</span> <span class="bu">float</span>:</span> <span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> <span class="dv">2</span> <span class="op">*</span> π <span class="op">*</span> radius</span> <span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a></span> <span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(circumference(<span class="fl">6378.137</span>)) <span class="co"># 40075.016685578485</span></span></code></pre></div> <h1 id="enjoy-the-new-release">Enjoy the new release</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organisation contributions to the <a href="https://www.python.org/psf-landing/">Python Software Foundation</a>.</p> <p>Regards from a slushy, slippery Helsinki,</p> <p>Your release team,<br> Hugo van Kemenade<br> Ned Deily<br> Steve Dower<br> Łukasz Langa </p> Hugohttp://www.blogger.com/profile/02811718172961252565[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-26988281261930700802024-12-17T11:20:00.001-05:002024-12-17T11:30:16.880-05:00Python 3.14.0 alpha 3 is out<p>O Alpha 3, O Alpha 3, how lovely are your branches!</p> <p><a href="https://www.python.org/downloads/release/python-3140a3/" class="uri">https://www.python.org/downloads/release/python-3140a3/</a></p> <p><strong>This is an early developer preview of Python 3.14</strong></p> <h1 id="major-new-features-of-the-3.14-series-compared-to-3.13">Major new features of the 3.14 series, compared to 3.13</h1> <p>Python 3.14 is still in development. This release, 3.14.0a3, is the third of seven planned alpha releases.</p> <p>Alpha releases are intended to make it easier to test the current state of new features and bug fixes and to test the release process.</p> <p>During the alpha phase, features may be added up until the start of the beta phase (2025-05-06) and, if necessary, may be modified or deleted up until the release candidate phase (2025-07-22). Please keep in mind that this is a preview release and its use is <strong>not</strong> recommended for production environments.</p> <p>Many new features for Python 3.14 are still being planned and written. Among the new major new features and changes so far:</p> <ul> <li><a href="https://peps.python.org/pep-0649/">PEP 649</a>: <a href="https://docs.python.org/3.14/whatsnew/3.14.html#pep-649-deferred-evaluation-of-annotations">deferred evaluation of annotations</a></li> <li><a href="https://peps.python.org/pep-0741/">PEP 741</a>: Python configuration C API</li> <li><a href="https://peps.python.org/pep-0761/">PEP 761</a>: Python 3.14 and onwards no longer provides PGP signatures for release artifacts. Instead, Sigstore is recommended for verifiers.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#improved-error-messages">Improved error messages</a></li> <li><small>(Hey, <strong>fellow core developer,</strong> if a feature you find important is missing from this list, let Hugo know.)</small></li> </ul> <p>The next pre-release of Python 3.14 will be 3.14.0a4, currently scheduled for 2025-01-14.</p> <h1 id="more-resources">More resources</h1> <ul> <li><a href="https://docs.python.org/3.14/">Online documentation</a></li> <li><a href="https://peps.python.org/pep-0745/">PEP 745</a>, 3.14 Release Schedule</li> <li>Report bugs at <a href="https://github.com/python/cpython/issues">https://github.com/python/cpython/issues</a></li> <li><a href="https://www.python.org/psf/donations/">Help fund Python and its community</a></li> </ul> <h1 id="and-now-for-something-completely-different">And now for something completely different</h1> <p>A mince pie is a small, round covered tart filled with “mincemeat”, usually eaten during the Christmas season – the UK consumes some 800 million each Christmas. Mincemeat is a mixture of things like apple, dried fruits, candied peel and spices, and originally would have contained meat chopped small, but rarely nowadays. They are often served warm with brandy butter.</p> <p>According to the Oxford English Dictionary, the earliest mention of Christmas mince pies is by Thomas Dekker, writing in the aftermath of the <a href="https://en.wikipedia.org/wiki/1603_London_plague">1603 London plague</a>, in <a href="https://archive.org/details/bim_early-english-books-1475-1640_newes-from-graues-end-s_gravesend_1604/page/n10/mode/1up?q=mince+pyes"><em>Newes from Graues-end: Sent to Nobody</em></a> (1604):</p> <blockquote> <p>Ten thousand in London swore to feast their neighbors with nothing but plum-porredge, and mince-pyes all Christmas.</p> </blockquote> <p>Here’s a meaty recipe from <a href="https://www.google.com/books/edition/Rare_and_Excellent_Receipts/PZfbqUrHykwC?hl=en&amp;gbpv=1&amp;dq=%22mince+pies%22&amp;pg=PA9&amp;printsec=frontcover"><em>Rare and Excellent Receipts, Experienc’d and Taught by Mrs Mary Tillinghast and now Printed for the Use of her Scholars Only</em></a> (1678):</p> <blockquote> <ol start="15" type="I"> <li><em>How to make Mince-pies.</em></li> </ol> <p>To every pound of Meat, take two pound of beef Suet, a pound of Corrants, and a quarter of an Ounce of Cinnamon, one Nutmeg, a little beaten Mace, some beaten Colves, a little Sack &amp; Rose-water, two large Pippins, some Orange and Lemon peel cut very thin, and shred very small, a few beaten Carraway-seeds, if you love them the Juyce of half a Lemon squez’d into this quantity of meat; for Sugar, sweeten it to your relish; then mix all these together and fill your Pie. The best meat for Pies is Neats-Tongues, or a leg of Veal; you may make them of a leg of Mutton if you please; the meat must be parboyl’d if you do not spend it presently; but if it be for present use, you may do it raw, and the Pies will be the better.</p> </blockquote> <h1 id="enjoy-the-new-release">Enjoy the new release</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organisation contributions to the <a href="https://www.python.org/psf-landing/">Python Software Foundation</a>.</p> <p>Regards from a snowy and slippery Helsinki,</p> <p>Your release team, <br>Hugo van Kemenade <br>Ned Deily <br>Steve Dower <br>Łukasz Langa </p> Hugohttp://www.blogger.com/profile/02811718172961252565[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-56366595747958830462024-12-03T19:01:00.000-05:002024-12-03T19:01:10.698-05:00Python 3.13.1, 3.12.8, 3.11.11, 3.10.16 and 3.9.21 are now available<p>Another big release day! Python 3.13.1 and 3.12.8 were regularly scheduled releases, but they do contain a few security fixes. That makes it a nice time to release the security-fix-only versions too, so everything is as secure as we can make it.</p><div class="cooked"> <h1 style="text-align: left;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-1-3-12-8-3-11-11-3-10-16-and-3-9-21-are-now-available/73214#p-211771-python-3131-1" name="p-211771-python-3131-1"></a>Python 3.13.1</h1> <p>Python 3.13’s first maintenance release. My child is all growed up now, I guess! Almost 400 bugfixes, build improvements and documentation changes went in since 3.13.0, making this the very best Python release to date.</p><p><a href="https://www.python.org/downloads/release/python-3131/">https://www.python.org/downloads/release/python-3131/</a></p><h1 style="text-align: left;">Python 3.12.8</h1> <p>Python 3.12 might be slowly reaching middle age, but still received over 250 bugfixes, build improvements and documentation changes since 3.12.7.</p> <aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-3128/"><a href="https://www.python.org/downloads/release/python-3128/">https://www.python.org/downloads/release/python-3128/</a></aside><aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-3128/"><br /><div class="onebox-metadata"> </div> <div style="clear: both;"></div> </aside> <h1 style="text-align: left;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-1-3-12-8-3-11-11-3-10-16-and-3-9-21-are-now-available/73214#p-211771-python-31111-3" name="p-211771-python-31111-3"></a>Python 3.11.11</h1> <p>I know it’s probably hard to hear, but this is the <em>second</em> security-only release of Python 3.11. Yes, really! Oh yes, I know, I know, but it’s true! Only 11 commits went in since 3.11.10.</p> <aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-31111/"><a href="https://www.python.org/downloads/release/python-31111/">https://www.python.org/downloads/release/python-31111/</a></aside><aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-31111/"><br /><div class="onebox-metadata"> </div> <div style="clear: both;"></div> </aside> <h1 style="text-align: left;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-1-3-12-8-3-11-11-3-10-16-and-3-9-21-are-now-available/73214#p-211771-python-31016-4" name="p-211771-python-31016-4"></a>Python 3.10.16</h1> <p>Python 3.10 received a total of 14 commits since 3.10.15. Why more than 3.11? Because it needed a little bit of extra attention to keep working with current GitHub practices, I guess.</p> <aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-31016/"><a href="https://www.python.org/downloads/release/python-31016/">https://www.python.org/downloads/release/python-31016/</a></aside><aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-31016/"><br /><div class="onebox-metadata"> </div> <div style="clear: both;"></div> </aside> <h1 style="text-align: left;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-1-3-12-8-3-11-11-3-10-16-and-3-9-21-are-now-available/73214#p-211771-python-3921-5" name="p-211771-python-3921-5"></a>Python 3.9.21</h1> <p>Python 3.9 isn’t quite ready for pasture yet, as it’s set to receive security fixes for at least another 10 months. Very similarly to 3.10, it received 14 commits since 3.9.20.</p> <aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-3921/"><a href="https://www.python.org/downloads/release/python-3921/">https://www.python.org/downloads/release/python-3921/</a></aside><aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-3921/"><br /><div class="onebox-metadata"> </div> <div style="clear: both;"></div> </aside> <h1 style="text-align: left;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-1-3-12-8-3-11-11-3-10-16-and-3-9-21-are-now-available/73214#p-211771-stay-safe-and-upgrade-6" name="p-211771-stay-safe-and-upgrade-6"></a>Stay safe and upgrade!</h1> <p>As always, upgrading is highly recommended to all users of affected versions.</p> <h1 style="text-align: left;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-1-3-12-8-3-11-11-3-10-16-and-3-9-21-are-now-available/73214#p-211771-enjoy-the-new-releases-7" name="p-211771-enjoy-the-new-releases-7"></a>Enjoy the new releases</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p> <p>Regards from your tireless, tireless release team,<br /> Thomas Wouters <br /> Ned Deily <br /> Steve Dower <br /> Pablo Galindo Salgado <br /> Łukasz Langa&nbsp;</p></div>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-16695067101095116142024-11-19T16:03:00.001-05:002024-11-19T16:03:49.199-05:00Python 3.14.0 alpha 2 released<p>Alpha 2? But Alpha 1 only just came out!</p> <p><a href="https://www.python.org/downloads/release/python-3140a2/">https://www.python.org/downloads/release/python-3140a2/</a></p> <p><strong>This is an early developer preview of Python 3.14</strong></p> <h1 id="major-new-features-of-the-3.14-series-compared-to-3.13">Major new features of the 3.14 series, compared to 3.13</h1> <p>Python 3.14 is still in development. This release, 3.14.0a2 is the second of seven planned alpha releases.</p> <p>Alpha releases are intended to make it easier to test the current state of new features and bug fixes and to test the release process.</p> <p>During the alpha phase, features may be added up until the start of the beta phase (2025-05-06) and, if necessary, may be modified or deleted up until the release candidate phase (2025-07-22). Please keep in mind that this is a preview release and its use is <strong>not</strong> recommended for production environments.</p> <p>Many new features for Python 3.14 are still being planned and written. Among the new major new features and changes so far:</p> <ul> <li><a href="https://peps.python.org/pep-0649/">PEP 649</a>: <a href="https://docs.python.org/3.14/whatsnew/3.14.html#pep-649-deferred-evaluation-of-annotations">deferred evaluation of annotations</a></li> <li><a href="https://peps.python.org/pep-0741/">PEP 741</a>: Python configuration C API</li> <li><a href="https://peps.python.org/pep-0761/">PEP 761</a>: Python 3.14 and onwards no longer provides PGP signatures for release artifacts. Instead, Sigstore is recommended for verifiers.</li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#improved-error-messages">Improved error messages</a></li> <li><small>(Hey, <strong>fellow core developer,</strong> if a feature you find important is missing from this list, let Hugo know.)</small></li> </ul> <p>The next pre-release of Python 3.14 will be 3.14.0a3, currently scheduled for 2024-12-17.</p> <h1 id="more-resources">More resources</h1> <ul> <li><a href="https://docs.python.org/3.14/">Online documentation</a></li> <li><a href="https://peps.python.org/pep-0745/">PEP 745</a>, 3.14 Release Schedule</li> <li>Report bugs at <a href="https://github.com/python/cpython/issues">https://github.com/python/cpython/issues</a></li> <li><a href="https://www.python.org/psf/donations/">Help fund Python and its community</a></li> </ul> <h1 id="enjoy-the-new-release">Enjoy the new release</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organisation contributions to the <a href="https://www.python.org/psf-landing/">Python Software Foundation</a>.</p> <p>Regards from a chilly Helsinki with snow on the way,</p> <p>Your release team,<br> Hugo van Kemenade<br> Ned Deily<br> Steve Dower<br> Łukasz Langa </p> Hugohttp://www.blogger.com/profile/02811718172961252565[email protected]Helsinki, Finland60.169855699999992 24.93837931.859621863821147 -10.217870999999999 88.480089536178838 60.094629tag:blogger.com,1999:blog-3941553907430899163.post-71291158223042136802024-10-15T19:31:00.002-04:002024-10-16T14:17:44.240-04:00Python 3.14.0 alpha 1 is now available<p>It's now time for a new alpha of a new version of Python! <p><a href="https://www.python.org/downloads/release/python-3140a1/">https://www.python.org/downloads/release/python-3140a1/</a> <p><strong>This is an early developer preview of Python 3.14</strong></p> <h1 id="major-new-features-of-the-3.14-series-compared-to-3.13">Major new features of the 3.14 series, compared to 3.13</h1> <p>Python 3.14 is still in development. This release, 3.14.0a1 is the first of seven planned alpha releases.</p> <p>Alpha releases are intended to make it easier to test the current state of new features and bug fixes and to test the release process.</p> <p>During the alpha phase, features may be added up until the start of the beta phase (2025-05-06) and, if necessary, may be modified or deleted up until the release candidate phase (2025-07-22). Please keep in mind that this is a preview release and its use is <strong>not</strong> recommended for production environments.</p> <p>Many new features for Python 3.14 are still being planned and written. Among the new major new features and changes so far:</p> <ul> <li><a href="https://peps.python.org/pep-0649/">PEP 649</a>: <a href="https://docs.python.org/3.14/whatsnew/3.14.html#pep-649-deferred-evaluation-of-annotations">deferred evaluation of annotations</a></li> <li><a href="https://docs.python.org/3.14/whatsnew/3.14.html#improved-error-messages">Improved error messages</a></li> <li><small>(Hey, <strong>fellow core developer,</strong> if a feature you find important is missing from this list, <a href="mailto:[email protected]">let Hugo know</a>.)</small></li> </ul> <p>The next pre-release of Python 3.14 will be 3.14.0a2, currently scheduled for 2024-11-19.</p> <h1 id="more-resources">More resources</h1> <ul> <li><a href="https://docs.python.org/3.14/">Online documentation</a></li> <li><a href="https://peps.python.org/pep-0745/">PEP 745</a>, 3.14 Release Schedule</li> <li>Report bugs at <a href="https://github.com/python/cpython/issues">https://github.com/python/cpython/issues</a></li> <li><a href="/psf/donations/">Help fund Python and its community</a></li> </ul> <h1 id="enjoy-the-new-release">Enjoy the new release</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p> <p>Regards from a grey yet colourful Helsinki,</p> <p>Your release team,<br> Hugo van Kemenade<br> Ned Deily<br> Steve Dower<br> Łukasz Langa</p> Hugohttp://www.blogger.com/profile/02811718172961252565[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-33590536191601598182024-10-07T14:21:00.004-04:002024-10-07T14:56:16.422-04:00Python 3.13.0 (final) released<p>&nbsp;</p><h1 style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: var(--font-up-3-rem); line-height: var(--line-height-medium); margin: 2rem 0px 0.67rem; text-align: left;">Python 3.13.0 is now available</h1><div><br /></div><div><a href="https://www.python.org/downloads/release/python-3130/">https://www.python.org/downloads/release/python-3130/</a></div><div><br /></div><div><h1 style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: var(--font-up-3-rem); line-height: var(--line-height-medium); margin: 2rem 0px 0.67rem; text-align: left;">This is the stable release of Python 3.13.0</h1><p style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: 16px; margin-top: 0px;">Python 3.13.0 is the newest major release of the Python programming language, and it contains many new features and optimizations compared to Python 3.12. (Compared to the last release candidate, 3.13.0rc3, 3.13.0 contains two small bug fixes and some documentation and testing changes.)</p><h1 style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: var(--font-up-3-rem); line-height: var(--line-height-medium); margin: 2rem 0px 0.67rem; text-align: left;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-final-has-been-released/66972#p-196505-major-new-features-of-the-313-series-compared-to-312-3" name="p-196505-major-new-features-of-the-313-series-compared-to-312-3" style="background-color: rgba(0, 0, 0, 0); cursor: pointer; opacity: 0; overflow-wrap: break-word; text-decoration-line: none; transition: opacity 0.25s;"></a>Major new features of the 3.13 series, compared to 3.12</h1><p style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: 16px; margin-top: 0px;">Some of the new major new features and changes in Python 3.13 are:</p><h2 style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: var(--font-up-2-rem); line-height: var(--line-height-medium); margin: 2rem 0px 0.67rem;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-final-has-been-released/66972#p-196505-new-features-4" name="p-196505-new-features-4" style="background-color: rgba(0, 0, 0, 0); cursor: pointer; opacity: 0; overflow-wrap: break-word; text-decoration-line: none; transition: opacity 0.25s;"></a>New features</h2><ul style="background-color: white; clear: both; color: #222222; font-family: Arial, sans-serif; font-size: 16px; margin: 1em 0px 1em 1.25em; padding: 0px 0px 0px 1.25em;"><li>A&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#a-better-interactive-interpreter">new and improved interactive interpreter</a>, based on&nbsp;<a href="https://pypy.org/">PyPy</a>’s, featuring multi-line editing and color support, as well as <a href="https://docs.python.org/3.13/whatsnew/3.13.html#improved-error-messages">colorized&nbsp;exception tracebacks</a>.</li><li>An&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#whatsnew313-free-threaded-cpython"><em>experimental</em>&nbsp;free-threaded build mode</a>, which disables the Global Interpreter Lock, allowing threads to run more concurrently. The build mode is available as an experimental feature in the Windows and macOS installers as well.</li><li>A&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#an-experimental-just-in-time-jit-compiler">preliminary,&nbsp;<em>experimental</em>&nbsp;JIT</a>, providing the ground work for significant performance improvements.</li><li>The&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">locals()</code>&nbsp;builtin function (and its C equivalent) now has&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#defined-mutation-semantics-for-locals">well-defined semantics when mutating the returned mapping</a>, which allows debuggers to operate more consistently.</li><li>A modified version of&nbsp;<a href="https://github.com/microsoft/mimalloc">mimalloc</a>&nbsp;is now included, optional but enabled by default if supported by the platform, and required for the free-threaded build mode.</li><li>Docstrings now have&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes">their leading indentation stripped</a>, reducing memory use and the size of .pyc files. (Most tools handling docstrings already strip leading indentation.)</li><li>The&nbsp;<a href="https://docs.python.org/3.13/library/dbm.html">dbm module</a>&nbsp;has a new&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#dbm">dbm.sqlite3 backend</a>&nbsp;that is used by default when creating new files.</li><li>The minimum supported macOS version was changed from 10.9 to&nbsp;<span style="font-weight: bolder;">10.13 (High Sierra)</span>. Older macOS versions will not be supported going forward.</li><li>WASI is now a&nbsp;<a href="https://peps.python.org/pep-0011/#tier-2">Tier 2 supported platform</a>. Emscripten is no longer an&nbsp;<a href="https://peps.python.org/pep-0011/#no-longer-supported-platforms">officially supported platform</a>&nbsp;(but&nbsp;<a href="https://pyodide.org/">Pyodide</a>&nbsp;continues to support Emscripten).</li><li>iOS is now a&nbsp;<a href="https://peps.python.org/pep-0730/">Tier 3 supported platform</a>.</li><li>Android is now a&nbsp;<a href="https://peps.python.org/pep-0738/">Tier 3 supported platform</a>.</li></ul><h2 style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: var(--font-up-2-rem); line-height: var(--line-height-medium); margin: 2rem 0px 0.67rem;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-final-has-been-released/66972#p-196505-typing-5" name="p-196505-typing-5" style="background-color: rgba(0, 0, 0, 0); cursor: pointer; opacity: 0; overflow-wrap: break-word; text-decoration-line: none; transition: opacity 0.25s;"></a>Typing</h2><ul style="background-color: white; clear: both; color: #222222; font-family: Arial, sans-serif; font-size: 16px; margin: 1em 0px 1em 1.25em; padding: 0px 0px 0px 1.25em;"><li>Support for&nbsp;<a href="https://peps.python.org/pep-0696/">type defaults in type parameters</a>.</li><li>A&nbsp;new <a href="https://peps.python.org/pep-0742/">type narrowing annotation</a>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">typing.TypeIs</code>.</li><li>A new annotation for&nbsp;<a href="https://peps.python.org/pep-0705/">read-only items in TypeDicts</a>.</li><li>A new annotation for&nbsp;<a href="https://peps.python.org/pep-0702">marking deprecations in the type system</a>.</li></ul><h2 style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: var(--font-up-2-rem); line-height: var(--line-height-medium); margin: 2rem 0px 0.67rem;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-final-has-been-released/66972#p-196505-removals-and-new-deprecations-6" name="p-196505-removals-and-new-deprecations-6" style="background-color: rgba(0, 0, 0, 0); cursor: pointer; opacity: 0; overflow-wrap: break-word; text-decoration-line: none; transition: opacity 0.25s;"></a>Removals and new deprecations</h2><ul style="background-color: white; clear: both; color: #222222; font-family: Arial, sans-serif; font-size: 16px; margin: 1em 0px 1em 1.25em; padding: 0px 0px 0px 1.25em;"><li><a href="https://peps.python.org/pep-0594/">PEP 594 (Removing dead batteries from the standard library)</a>&nbsp;scheduled removals of many deprecated modules:&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">aifc</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">audioop</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">chunk</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">cgi</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">cgitb</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">crypt</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">imghdr</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">mailcap</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">msilib</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">nis</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">nntplib</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">ossaudiodev</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">pipes</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">sndhdr</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">spwd</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">sunau</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">telnetlib</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">uu</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">xdrlib</code>,&nbsp;<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: var(--d-font-family--monospace); font-size: 1em; white-space-collapse: preserve;">lib2to3</code>.</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#removed-modules-and-apis">Many other removals</a>&nbsp;of deprecated classes, functions and methods in various standard library modules.</li><li>C API&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#removed-c-apis">removals</a>&nbsp;and&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#deprecated-c-apis">deprecations</a>. (Some removals present in alpha 1 were reverted in alpha 2, as the removals were deemed too disruptive at this time.)</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#new-deprecations">New deprecations</a>, most of which are scheduled for removal from Python 3.15 or 3.16.</li></ul><p style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: 16px;">For more details on the changes to Python 3.13, see&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html">What’s new in Python 3.13</a>.</p><h1 style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: var(--font-up-3-rem); line-height: var(--line-height-medium); margin: 2rem 0px 0.67rem;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-final-has-been-released/66972#p-196505-more-resources-7" name="p-196505-more-resources-7" style="background-color: rgba(0, 0, 0, 0); cursor: pointer; opacity: 0; overflow-wrap: break-word; text-decoration-line: none; transition: opacity 0.25s;"></a>More resources</h1><ul style="background-color: white; clear: both; color: #222222; font-family: Arial, sans-serif; font-size: 16px; margin: 1em 0px 1em 1.25em; padding: 0px 0px 0px 1.25em;"><li><a href="https://docs.python.org/3.13/">Online Documentation</a></li><li><a href="https://peps.python.org/pep-0719/">PEP 719</a>, 3.13 Release Schedule</li><li>Report bugs via&nbsp;<a href="https://github.com/python/cpython/issues">GitHub Issues</a>.</li><li><a href="https://www.python.org/psf/donations/python-dev/">Help fund Python directly</a>&nbsp;(or&nbsp;via <a href="https://github.com/sponsors/python">GitHub Sponsors</a>), and support&nbsp;<a href="https://www.python.org/psf/donations/">the Python community</a>.</li></ul><h1 style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: var(--font-up-3-rem); line-height: var(--line-height-medium); margin: 2rem 0px 0.67rem;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-final-has-been-released/66972#p-196505-we-hope-you-enjoy-the-new-releases-8" name="p-196505-we-hope-you-enjoy-the-new-releases-8" style="background-color: rgba(0, 0, 0, 0); cursor: pointer; opacity: 0; overflow-wrap: break-word; text-decoration-line: none; transition: opacity 0.25s;"></a>We hope you enjoy the new releases!</h1><p style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: 16px; margin-top: 0px;">Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to&nbsp;<a href="https://www.python.org/psf-landing/">the Python Software Foundation</a>.</p><p style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: 16px;">Choo-choo from the release train,</p><p style="background-color: white; color: #222222; font-family: Arial, sans-serif; font-size: 16px;">Your release team,<br />Thomas Wouters&nbsp;<br />Ned Deily&nbsp;<br />Steve Dower&nbsp;<br />Łukasz Langa&nbsp;</p></div>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-85718985133897574162024-10-01T12:32:00.002-04:002024-10-01T12:32:34.889-04:00Python 3.12.7 released<p>&nbsp;&nbsp;</p><p>I'm pleased to announce the release of Python 3.12.7:<br /><br /><a href="https://www.python.org/downloads/release/python-3127/">https://www.python.org/downloads/release/python-3127/<br /></a></p><h1>&nbsp;</h1><h1>This is the seventh maintenance release of Python 3.12</h1><p>Python 3.12 is the&nbsp;<span style="font-family: inherit;">newest&nbsp;</span>major release of the Python programming language, and it contains many new features and optimizations. 3.12.7 is the latest maintenance release, containing more than 100 bugfixes, build improvements and documentation changes since 3.12.6.</p><h1><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#major-new-features-of-the-312-series-compared-to-311-2" name="major-new-features-of-the-312-series-compared-to-311-2"></a>&nbsp;</h1><h1>Major new features of the 3.12 series, compared to 3.11</h1><h2><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#new-features-3" name="new-features-3"></a>&nbsp;</h2><h2>New features</h2><ul><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-701-syntactic-formalization-of-f-strings">More flexible f-string parsing</a>, allowing many things previously disallowed (<a href="https://peps.python.org/pep-0701/">PEP 701</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-688-making-the-buffer-protocol-accessible-in-python">Support for the buffer protocol</a>&nbsp;in Python code (<a href="https://peps.python.org/pep-0688/">PEP 688</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-669-low-impact-monitoring-for-cpython">A new debugging/profiling API</a>&nbsp;(<a href="https://peps.python.org/pep-0669/">PEP 669</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-684-a-per-interpreter-gil">Support for isolated subinterpreters</a>&nbsp;with separate Global Interpreter Locks (<a href="https://peps.python.org/pep-0684">PEP 684</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#improved-error-messages">Even more improved error messages</a>. More exceptions potentially caused by typos now make suggestions to the user.</li><li><a href="https://docs.python.org/3.12/howto/perf_profiling.html">Support for the Linux&nbsp;<code>perf</code>&nbsp;profiler</a>&nbsp;to report Python function names in traces.</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#optimizations">Many large and small performance improvements</a>&nbsp;(like&nbsp;<a href="https://peps.python.org/pep-0709/">PEP 709</a>&nbsp;and support for the BOLT binary optimizer), delivering an estimated 5% overall performance improvement.</li></ul><h2><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#type-annotations-4" name="type-annotations-4"></a>Type annotations</h2><ul><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-695-type-parameter-syntax">New type annotation syntax</a>&nbsp;for generic classes (<a href="https://peps.python.org/pep-0695/">PEP 695</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-698-override-decorator-for-static-typing">New override decorator</a>&nbsp;for methods (<a href="https://peps.python.org/pep-0698">PEP 698</a>).</li></ul><h2><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#deprecations-5" name="deprecations-5"></a>Deprecations</h2><ul><li>The deprecated&nbsp;<code>wstr</code>&nbsp;and&nbsp;<code>wstr_length</code>&nbsp;members of the C implementation of unicode objects were removed, per&nbsp;<a href="https://peps.python.org/pep-0623/">PEP 623</a>.</li><li>In the&nbsp;<code>unittest</code>&nbsp;module, a number of long deprecated methods and classes were removed. (They had been deprecated since Python 3.1 or 3.2).</li><li>The deprecated&nbsp;<code>smtpd</code>&nbsp;and&nbsp;<code>distutils</code>&nbsp;modules have been removed (see&nbsp;<a href="https://peps.python.org/pep-0594/">PEP 594</a>&nbsp;and&nbsp;<a href="https://peps.python.org/pep-0632/">PEP 632</a>. The&nbsp;<code>setuptools</code>&nbsp;package continues to provide the&nbsp;<code>distutils</code>&nbsp;module.</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#removed">A number of other old, broken and deprecated functions, classes and methods</a>&nbsp;have been removed.</li><li>Invalid backslash escape sequences in strings now warn with&nbsp;<code>SyntaxWarning</code>&nbsp;instead of&nbsp;<code>DeprecationWarning</code>, making them more visible. (They will become syntax errors in the future.)</li><li>The internal representation of integers has changed in preparation for performance enhancements. (This should not affect most users as it is an internal detail, but it may cause problems for Cython-generated code.)</li></ul><p>For more details on the changes to Python 3.12, see&nbsp;<a href="https://docs.python.org/3.12/whatsnew/3.12.html">What’s new in Python 3.12</a>.</p><h1><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#more-resources-6" name="more-resources-6"></a>&nbsp;</h1><h1>More resources</h1><ul><li><a href="https://docs.python.org/3.12/">Online Documentation</a>.</li><li><a href="https://www.python.org/dev/peps/pep-0693/">PEP 693</a>, the Python 3.12 Release Schedule.</li><li>Report bugs via&nbsp;<a href="https://github.com/python/cpython/issues">GitHub Issues</a>.</li><li><a href="https://www.python.org/psf/donations/python-dev/">Help fund Python directly</a>&nbsp;or&nbsp;<a href="https://github.com/sponsors/python">via GitHub Sponsors</a>, and support&nbsp;<a href="https://www.python.org/psf/donations/">the Python community</a>.</li></ul><h1><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#enjoy-the-new-releases-7" name="enjoy-the-new-releases-7"></a>&nbsp;</h1><h1>Enjoy the new releases</h1><p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p><p><br /></p><p>Your release team,<br />Thomas Wouters<br />Łukasz Langa<br />Ned Deily<br />Steve Dower</p>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-61698271748563350992024-10-01T12:29:00.000-04:002024-10-01T12:29:30.960-04:00Python 3.13.0 release candidate 3 released<p>I'm pleased to announce the release of Python 3.13&nbsp;<b>release candidate 3</b>&nbsp;(instead of the expected final release).<br /><br /><a href="https://www.python.org/downloads/release/python-3130rc3/">https://www.python.org/downloads/release/python-3130rc3/</a></p><p>&nbsp;</p><h1>This is the final release candidate of Python 3.13.0</h1><p>This release, <b>3.13.0rc3</b>, is the final release preview (no really) of 3.13. This release is expected to become the final 3.13.0 release, barring any critical bugs being discovered. The official release of 3.13.0 is now scheduled for Monday, 2024-10-07.</p><p>This extra, unplanned release candidate exists because of a couple of last minute issues, primarily a significant performance regression in specific workloads due to the incremental cyclic garbage collector (introduced in the alpha releases). We decided to roll back the garbage collector change in 3.13 (and continuing work in 3.14 to improve it), apply a number of other important bug fixes, and roll out a new release candidate.</p><p>There will be <b>no ABI changes</b> from this point forward in the 3.13 series (and there haven't been any since the beta releases).</p><h3><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-call-to-action-2" name="p-181511-call-to-action-2"></a>Call to action</h3><p>We strongly encourage maintainers of Python projects to prepare their projects for 3.13 compatibilities during this phase, and where necessary publish Python 3.13 wheels on PyPI to be ready for the final release of 3.13.0. Any binary wheels built against Python 3.13.0rc1 and later&nbsp;<strong>will work</strong>&nbsp;with future versions of Python 3.13. As always, report any issues to&nbsp;<a href="https://github.com/python/cpython/issues">the Python bug tracker</a>.</p><p>Please keep in mind that this is a preview release and while it’s as close to the final release as we can get it, its use is&nbsp;<strong>not</strong>&nbsp;recommended for production environments.</p><h3><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-core-developers-time-to-work-on-documentation-now-3" name="p-181511-core-developers-time-to-work-on-documentation-now-3"></a>Core developers: time to work on documentation now</h3><ul><li>Are all your changes properly documented?</li><li>Are they mentioned in&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html">What’s New</a>?</li><li>Did you notice other changes you know of to have insufficient documentation?</li></ul><h1><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-major-new-features-of-the-313-series-compared-to-312-4" name="p-181511-major-new-features-of-the-313-series-compared-to-312-4"></a>&nbsp;</h1><h1>Major new features of the 3.13 series, compared to 3.12</h1><p>Some of the new major new features and changes in Python 3.13 are:</p><h2><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-new-features-5" name="p-181511-new-features-5"></a>New features</h2><ul><li>A&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#a-better-interactive-interpreter">new and improved interactive interpreter</a>, based on&nbsp;<a href="https://pypy.org">PyPy</a>’s, featuring multi-line editing and color support, as well as colorized&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#improved-error-messages">exception tracebacks</a>.</li><li>An&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#an-experimental-just-in-time-jit-compiler"><em>experimental</em>&nbsp;free-threaded build mode</a>, which disables the Global Interpreter Lock, allowing threads to run more concurrently. The build mode is available as an experimental feature in the Windows and macOS installers as well.</li><li>A&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#an-experimental-just-in-time-jit-compiler">preliminary,&nbsp;<em>experimental</em>&nbsp;JIT</a>, providing the ground work for significant performance improvements.</li><li>The&nbsp;<code>locals()</code>&nbsp;builtin function (and its C equivalent) now has&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#defined-mutation-semantics-for-locals">well-defined semantics when mutating the returned mapping</a>, which allows debuggers to operate more consistently.</li><li>A modified version of&nbsp;<a href="https://github.com/microsoft/mimalloc">mimalloc</a>&nbsp;is now included, optional but enabled by default if supported by the platform, and required for the free-threaded build mode.</li><li>Docstrings now have&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes">their leading indentation stripped</a>, reducing memory use and the size of .pyc files. (Most tools handling docstrings already strip leading indentation.)</li><li>The&nbsp;<a href="https://docs.python.org/3.13/library/dbm.html">dbm module</a>&nbsp;has a new&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#dbm">dbm.sqlite3 backend</a>&nbsp;that is used by default when creating new files.</li><li>The minimum supported macOS version was changed from 10.9 to&nbsp;<strong>10.13 (High Sierra)</strong>. Older macOS versions will not be supported going forward.</li><li>WASI is now a&nbsp;<a href="https://peps.python.org/pep-0011/#tier-2">Tier 2 supported platform</a>. Emscripten is no longer an&nbsp;<a href="https://peps.python.org/pep-0011/#no-longer-supported-platforms">officially supported platform</a>&nbsp;(but&nbsp;<a href="https://pyodide.org">Pyodide</a>&nbsp;continues to support Emscripten).</li><li>iOS is now a&nbsp;<a href="https://peps.python.org/pep-0730/">Tier 3 supported platform</a></li><li>Android is now a <a href="https://peps.python.org/pep-0738/">Tier 3 supported platform</a> as well.</li></ul><h2><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-typing-6" name="p-181511-typing-6"></a>Typing</h2><ul><li>Support for&nbsp;<a href="https://peps.python.org/pep-0696/">type defaults in type parameters</a>.</li><li>A&nbsp;<a href="https://peps.python.org/pep-0742/">new type narrowing annotation</a>,&nbsp;<code>typing.TypeIs</code>.</li><li>A new annotation for&nbsp;<a href="https://peps.python.org/pep-0705/">read-only items in TypeDicts</a>.</li><li>A new annotation for&nbsp;<a href="https://peps.python.org/pep-0702">marking deprecations in the type system</a>.</li></ul><h2><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-removals-and-new-deprecations-7" name="p-181511-removals-and-new-deprecations-7"></a>Removals and new deprecations</h2><ul><li><a href="https://peps.python.org/pep-0594/">PEP 594 (Removing dead batteries from the standard library)</a>&nbsp;scheduled removals of many deprecated modules:&nbsp;<code>aifc</code>,&nbsp;<code>audioop</code>,&nbsp;<code>chunk</code>,&nbsp;<code>cgi</code>,&nbsp;<code>cgitb</code>,&nbsp;<code>crypt</code>,&nbsp;<code>imghdr</code>,&nbsp;<code>mailcap</code>,&nbsp;<code>msilib</code>,&nbsp;<code>nis</code>,&nbsp;<code>nntplib</code>,&nbsp;<code>ossaudiodev</code>,&nbsp;<code>pipes</code>,&nbsp;<code>sndhdr</code>,&nbsp;<code>spwd</code>,&nbsp;<code>sunau</code>,&nbsp;<code>telnetlib</code>,&nbsp;<code>uu</code>,&nbsp;<code>xdrlib</code>,&nbsp;<code>lib2to3</code>.</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#removed-modules-and-apis">Many other removals</a>&nbsp;of deprecated classes, functions and methods in various standard library modules.</li><li>C API&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#removed-c-apis">removals</a>&nbsp;and&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html#deprecated-c-apis">deprecations</a>. (Some removals present in alpha 1 were reverted in alpha 2, as the removals were deemed too disruptive at this time.)</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#new-deprecations">New deprecations</a>, most of which are scheduled for removal from Python 3.15 or 3.16.</li></ul><p><small>(Hey,&nbsp;<strong>fellow core developer,</strong>&nbsp;if a feature you find important is missing from this list,&nbsp;<a href="mailto:[email protected]">let Thomas know</a>.)</small></p><p>For more details on the changes to Python 3.13, see&nbsp;<a href="https://docs.python.org/3.13/whatsnew/3.13.html">What’s new in Python 3.13</a>. The next release of Python 3.13 will be the official 3.13.0 release, currently scheduled for Monday, 2024-10-07.</p><h1><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-more-resources-8" name="p-181511-more-resources-8"></a>&nbsp;</h1><h1>More resources</h1><ul><li><a href="https://docs.python.org/3.13/">Online Documentation</a></li><li><a href="https://peps.python.org/pep-0719/">PEP 719</a>, 3.13 Release Schedule</li><li>Report bugs at&nbsp;<a class="inline-onebox" href="https://github.com/python/cpython/issues">Issues · python/cpython · GitHub</a>.</li><li><a href="https://www.python.org/psf/donations/python-dev/">Help fund Python directly</a>&nbsp;(or&nbsp;<a href="https://github.com/sponsors/python">via GitHub Sponsors</a>), and support&nbsp;<a href="https://www.python.org/psf/donations/">the Python community</a>.</li></ul><h1><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-enjoy-the-new-releases-9" name="p-181511-enjoy-the-new-releases-9"></a>&nbsp;</h1><h1>Enjoy the new releases</h1><p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p><p>Your release team,</p><p>Thomas Wouters<br />Łukasz Langa<br />Ned Deily<br />Steve Dower</p>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-41613925733115179362024-09-07T10:24:00.004-04:002024-09-07T10:24:24.543-04:00Python 3.13.0RC2, 3.12.6, 3.11.10, 3.10.15, 3.9.20, and 3.8.20 are now available!<p>Hi there!<br /> A big joint release today. Mostly security fixes but we also have the final release candidate of 3.13 so let’s start with that!</p> <h3>Python 3.13.0RC2</h3> <p>Final opportunity to test and find any show-stopper bugs before we bless and release 3.13.0 final on October 1st.</p> <p>Get it here: <a class="inline-onebox" href="https://www.python.org/downloads/release/python-3130rc2/" tabindex="-1">Python Release Python 3.13.0rc2 | Python.org</a></p> <h4>Call to action</h4> <p>We strongly encourage maintainers of third-party Python projects to prepare their projects for 3.13 compatibilities during this phase, and where necessary publish Python 3.13 wheels on PyPI to be ready for the final release of 3.13.0. Any binary wheels built against Python 3.13.0rc2 will work with future versions of Python 3.13. As always, report any issues to <a href="https://github.com/python/cpython/issues" tabindex="-1">the Python bug tracker</a>.</p> <p>Please keep in mind that this is a preview release and while it’s as close to the final release as we can get it, its use is <strong>not</strong> recommended for production environments.</p> <h4>Core developers: time to work on documentation now</h4> <ul><li>Are all your changes properly documented?</li><li>Are they mentioned in <a href="https://docs.python.org/3.13/whatsnew/3.13.html" tabindex="-1">What’s New</a>?</li><li>Did you notice other changes you know of to have insufficient documentation?</li></ul> <p>As a reminder, until the final release of 3.13.0, the 3.13 branch is set up so that the Release Manager (<a class="mention" data-name="thomas" href="https://discuss.python.org/u/thomas" tabindex="-1">@thomas</a>) has to merge the changes. Please add him (<code>@Yhg1s</code> on GitHub) to any changes you think should go into 3.13.0. At this point, unless something critical comes up, it should really be <strong>documentation only</strong>. Other changes (including tests) will be pushed to 3.13.1.</p> <h4>New features in Python 3.13</h4> <ul><li>A <a href="https://docs.python.org/3.13/whatsnew/3.13.html#a-better-interactive-interpreter" tabindex="-1">new and improved interactive interpreter</a>, based on <a href="https://pypy.org" tabindex="-1">PyPy</a>’s, featuring multi-line editing and color support, as well as colorized <a href="https://docs.python.org/3.13/whatsnew/3.13.html#improved-error-messages" tabindex="-1">exception tracebacks</a>.</li><li>An <a href="https://docs.python.org/3.13/whatsnew/3.13.html#free-threaded-cpython" tabindex="-1"><em>experimental</em> free-threaded build mode</a>, which disables the Global Interpreter Lock, allowing threads to run more concurrently. The build mode is available as an experimental feature in the Windows and macOS installers as well.</li><li>A <a href="https://docs.python.org/3.13/whatsnew/3.13.html#experimental-jit-compiler" tabindex="-1">preliminary, <em>experimental</em> JIT</a>, providing the ground work for significant performance improvements.</li><li>The <code>locals()</code> builtin function (and its C equivalent) now has <a href="https://docs.python.org/3.13/whatsnew/3.13.html#defined-mutation-semantics-for-locals" tabindex="-1">well-defined semantics when mutating the returned mapping</a>, which allows debuggers to operate more consistently.</li><li>The (cyclic) garbage collector is now <a href="https://docs.python.org/3.13/whatsnew/3.13.html#incremental-garbage-collection" tabindex="-1">incremental</a>, which should mean shorter pauses for collection in programs with a lot of objects.</li><li>A modified version of <a href="https://github.com/microsoft/mimalloc" tabindex="-1">mimalloc</a> is now included, optional but enabled by default if supported by the platform, and required for the free-threaded build mode.</li><li>Docstrings now have <a href="https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes" tabindex="-1">their leading indentation stripped</a>, reducing memory use and the size of .pyc files. (Most tools handling docstrings already strip leading indentation.)</li><li>The <a href="https://docs.python.org/3.13/library/dbm.html" tabindex="-1">dbm module</a> has a new <a href="https://docs.python.org/3.13/whatsnew/3.13.html#dbm" tabindex="-1">dbm.sqlite3 backend</a> that is used by default when creating new files.</li><li>The minimum supported macOS version was changed from 10.9 to <strong>10.13 (High Sierra)</strong>. Older macOS versions will not be supported going forward.</li><li>WASI is now a <a href="https://peps.python.org/pep-0011/#tier-2" tabindex="-1">Tier 2 supported platform</a>. Emscripten is no longer an <a href="https://peps.python.org/pep-0011/#no-longer-supported-platforms" tabindex="-1">officially supported platform</a> (but <a href="https://pyodide.org" tabindex="-1">Pyodide</a> continues to support Emscripten).</li><li>iOS is now a <a href="https://peps.python.org/pep-0730/" tabindex="-1">Tier 3 supported platform</a>, with <a href="https://peps.python.org/pep-0738/" tabindex="-1">Android on the way as well</a>.</li></ul> <h3>Python 3.12.6</h3> <p>This is an expedited release for 3.12 due to security content. The schedule returns back to regular programming in October.</p> <p>One notable change for macOS users: as mentioned in the previous release of 3.12, this release <strong>drops support for macOS versions 10.9 through 10.12</strong>. Versions of macOS older than 10.13 haven’t been supported by Apple since 2019, and maintaining support for them has become too difficult. (All versions of Python 3.13 have already dropped support for them.)</p> <p>Get it here: <a class="inline-onebox" href="https://www.python.org/downloads/release/python-3126/" tabindex="-1">Python Release Python 3.12.6 | Python.org</a></p> <p>92 commits.</p> <h3>Python 3.11.10</h3> <p>Python 3.11 joins the elite club of security-only versions with no binary installers.</p> <p>Get it here: <a class="inline-onebox" href="https://www.python.org/downloads/release/python-31110/" tabindex="-1">Python Release Python 3.11.10 | Python.org</a></p> <p>28 commits.</p> <h3>Python 3.10.15</h3> <p>Get it here: <a class="inline-onebox" href="https://www.python.org/downloads/release/python-31015/" tabindex="-1">Python Release Python 3.10.15 | Python.org</a></p> <p>24 commits.</p> <h3>Python 3.9.20</h3> <p>Get it here: <a class="inline-onebox" href="https://www.python.org/downloads/release/python-3920/" tabindex="-1">Python Release Python 3.9.20 | Python.org</a></p> <p>22 commits.</p> <h3>Python 3.8.20</h3> <p>Python 3.8 is very close to End of Life (see <a href="https://peps.python.org/pep-0569/" tabindex="-1">the Release Schedule</a>). Will this be the last release of 3.8 ever? We’ll see… but now I think I jinxed it.</p> <p>Get it here: <a class="inline-onebox" href="https://www.python.org/downloads/release/python-3820/" tabindex="-1">Python Release Python 3.8.20 | Python.org</a></p> <p>22 commits.</p> <h3>Security content in today’s releases</h3> <ul><li><a href="https://github.com/python/cpython/issues/123678" tabindex="-1">gh-123678</a> and <a href="https://github.com/python/cpython/issues/116741" tabindex="-1">gh-116741</a>: Upgrade bundled libexpat to 2.6.3 to fix <a href="https://github.com/advisories/GHSA-ch5v-h69f-mxc8" tabindex="-1">CVE-2024-28757</a>, <a href="https://github.com/advisories/GHSA-4hvh-m426-wv8w" tabindex="-1">CVE-2024-45490</a>, <a href="https://github.com/advisories/GHSA-784x-7qm2-gp97" tabindex="-1">CVE-2024-45491</a> and <a href="https://github.com/advisories/GHSA-5qxm-qvmj-8v79" tabindex="-1">CVE-2024-45492</a>.</li><li><a href="https://github.com/python/cpython/issues/118486" tabindex="-1">gh-118486</a>: <a href="https://docs.python.org/3/library/os.html#os.mkdir" tabindex="-1"><code>os.mkdir()</code></a> on Windows now accepts <em>mode</em> of <code>0o700</code> to restrict the new directory to the current user. This fixes CVE-2024-4030 affecting <a href="https://docs.python.org/3/library/tempfile.html#tempfile.mkdtemp" tabindex="-1"><code>tempfile.mkdtemp()</code></a> in scenarios where the base temporary directory is more permissive than the default.</li><li><a href="https://github.com/python/cpython/issues/123067" tabindex="-1">gh-123067</a>: Fix quadratic complexity in parsing <code>"</code>-quoted cookie values with backslashes by <a href="https://docs.python.org/3/library/http.cookies.html#module-http.cookies" tabindex="-1"><code>http.cookies</code></a>. Fixes CVE-2024-7592.</li><li><a href="https://github.com/python/cpython/issues/113171" tabindex="-1">gh-113171</a>: Fixed various false positives and false negatives in IPv4Address.is_private, IPv4Address.is_global, IPv6Address.is_private, IPv6Address.is_global. Fixes CVE-2024-4032.</li><li><a href="https://github.com/python/cpython/issues/67693" tabindex="-1">gh-67693</a>: Fix <a href="https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlunparse" tabindex="-1"><code>urllib.parse.urlunparse()</code></a> and <a href="https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlunsplit" tabindex="-1"><code>urllib.parse.urlunsplit()</code></a> for URIs with path starting with multiple slashes and no authority. Fixes CVE-2015-2104.</li><li><a href="https://github.com/python/cpython/issues/121957" tabindex="-1">gh-121957</a>: Fixed missing audit events around interactive use of Python, now also properly firing for <code>python -i</code>, as well as for <code>python -m asyncio</code>. The event in question is <code>cpython.run_stdin</code>.</li><li><a href="https://github.com/python/cpython/issues/122133" tabindex="-1">gh-122133</a>: Authenticate the socket connection for the <code>socket.socketpair()</code> fallback on platforms where <code>AF_UNIX</code> is not available like Windows.</li><li><a href="https://github.com/python/cpython/issues/121285" tabindex="-1">gh-121285</a>: Remove backtracking from tarfile header parsing for <code>hdrcharset</code>, PAX, and GNU sparse headers. That’s CVE-2024-6232.</li><li><a href="https://github.com/python/cpython/issues/114572" tabindex="-1">gh-114572</a>: <a href="https://docs.python.org/3/library/ssl.html#ssl.SSLContext.cert_store_stats" tabindex="-1"><code>ssl.SSLContext.cert_store_stats()</code></a> and <a href="https://docs.python.org/3/library/ssl.html#ssl.SSLContext.get_ca_certs" tabindex="-1"><code>ssl.SSLContext.get_ca_certs()</code></a> now correctly lock access to the certificate store, when the <a href="https://docs.python.org/3/library/ssl.html#ssl.SSLContext" tabindex="-1"><code>ssl.SSLContext</code></a> is shared across multiple threads.</li><li><a href="https://github.com/python/cpython/issues/102988" tabindex="-1">gh-102988</a>: <a href="https://docs.python.org/3/library/email.utils.html#email.utils.getaddresses" tabindex="-1"><code>email.utils.getaddresses()</code></a> and <a href="https://docs.python.org/3/library/email.utils.html#email.utils.parseaddr" tabindex="-1"><code>email.utils.parseaddr()</code></a> now return <code>('', '')</code> 2-tuples in more situations where invalid email addresses are encountered instead of potentially inaccurate values. Add optional <em>strict</em> parameter to these two functions: use <code>strict=False</code> to get the old behavior, accept malformed inputs. <code>getattr(email.utils, 'supports_strict_parsing', False)</code> can be use to check if the <em>strict</em> paramater is available. This improves the CVE-2023-27043 fix.</li><li><a href="https://github.com/python/cpython/issues/123270" tabindex="-1">gh-123270</a>: Sanitize names in <a href="https://docs.python.org/3/library/zipfile.html#zipfile.Path" tabindex="-1"><code>zipfile.Path</code></a> to avoid infinite loops (<a href="https://github.com/python/cpython/issues/122905" tabindex="-1">gh-122905</a>) without breaking contents using legitimate characters. That’s CVE-2024-8088.</li><li><a href="https://github.com/python/cpython/issues/121650" tabindex="-1">gh-121650</a>: <a href="https://docs.python.org/3/library/email.html#module-email" tabindex="-1"><code>email</code></a> headers with embedded newlines are now quoted on output. The <a href="https://docs.python.org/3/library/email.generator.html#module-email.generator" tabindex="-1"><code>generator</code></a> will now refuse to serialize (write) headers that are unsafely folded or delimited; see <a href="https://docs.python.org/3/library/email.policy.html#email.policy.Policy.verify_generated_headers" tabindex="-1"><code>verify_generated_headers</code></a>. That’s CVE-2024-6923.</li><li><a href="https://github.com/python/cpython/issues/119690" tabindex="-1">gh-119690</a>: Fixes data type confusion in audit events raised by <code>_winapi.CreateFile</code> and <code>_winapi.CreateNamedPipe</code>.</li><li><a href="https://github.com/python/cpython/issues/116773" tabindex="-1">gh-116773</a>: Fix instances of <code>&lt;_overlapped.Overlapped object at 0xXXX&gt; still has pending operation at deallocation, the process may crash</code>.</li><li><a href="https://github.com/python/cpython/issues/112275" tabindex="-1">gh-112275</a>: A deadlock involving <code>pystate.c</code>’s <code>HEAD_LOCK</code> in <code>posixmodule.c</code> at fork is now fixed.</li></ul> <h3>Stay safe and upgrade!</h3> <p>Upgrading is highly recommended to all users of affected versions.</p> <h3>Thank you for your support</h3> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p><p>–<br /> Łukasz Langa <a class="mention" data-name="ambv" href="https://discuss.python.org/u/ambv" tabindex="-1">@ambv</a><br /> on behalf of your friendly release team,</p> <p>Ned Deily <a class="mention" data-name="nad" href="https://discuss.python.org/u/nad" tabindex="-1">@nad</a><br /> Steve Dower <a class="mention" data-name="steve.dower" href="https://discuss.python.org/u/steve.dower" tabindex="-1">@steve.dower</a><br /> Pablo Galindo Salgado <a class="mention" data-name="pablogsal" href="https://discuss.python.org/u/pablogsal" tabindex="-1">@pablogsal</a><br /> Łukasz Langa <a class="mention" data-name="ambv" href="https://discuss.python.org/u/ambv" tabindex="-1">@ambv</a><br /> Thomas Wouters <a class="mention" data-name="thomas" href="https://discuss.python.org/u/thomas" tabindex="-1">@thomas</a></p><p>&nbsp;</p><p>&nbsp;</p>Łukasz Langahttp://www.blogger.com/profile/01161413896843370614[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-67306013000826883182024-08-07T09:17:00.001-04:002024-08-07T09:17:33.273-04:00Python 3.12.5 released<p>&nbsp;</p><p>I'm pleased to announce the release of Python 3.12.5:<br /><br /><a href="https://www.python.org/downloads/release/python-3125/">https://www.python.org/downloads/release/python-3125/</a><br /></p><h1>&nbsp;</h1><h1>This is the fifth maintenance release of Python 3.12</h1> <p>Python 3.12 is the <span style="font-family: inherit;">newest </span>major release of the Python programming language, and it contains many new features and optimizations. 3.12.5 is the latest maintenance release, containing more than 250 bugfixes, build improvements and documentation changes since 3.12.4.</p><p><span style="font-family: inherit;">This version of Python 3.12 also comes with pip 24.2 by default. <strong>However, due to an incompatibility with older macOS versions, macOS 10.9 through 10.12 will downgrade their version of pip to 24.1.2 during the installation process</strong> (in the Install Certificates step). See the installer ReadMe and <a href="https://github.com/pypa/pip/issues/12901">the pip issue on the matter</a> for more information. Versions of macOS older than 10.13 haven’t been supported by Apple since 2019, and maintaining support for them is becoming increasingly difficult. While this release of 3.12 still supports them, <strong>it is likely that we will be forced to drop support for macOS 10.12 and older in a future 3.12 release</strong>. (Python 3.13 has already dropped support for them.)</span></p><p>&nbsp;</p> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#major-new-features-of-the-312-series-compared-to-311-2" name="major-new-features-of-the-312-series-compared-to-311-2"></a>&nbsp;</h1><h1>Major new features of the 3.12 series, compared to 3.11</h1> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#new-features-3" name="new-features-3"></a>&nbsp;</h2><h2>New features</h2> <ul><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-701-syntactic-formalization-of-f-strings">More flexible f-string parsing</a>, allowing many things previously disallowed (<a href="https://peps.python.org/pep-0701/">PEP 701</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-688-making-the-buffer-protocol-accessible-in-python">Support for the buffer protocol</a> in Python code (<a href="https://peps.python.org/pep-0688/">PEP 688</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-669-low-impact-monitoring-for-cpython">A new debugging/profiling API</a> (<a href="https://peps.python.org/pep-0669/">PEP 669</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-684-a-per-interpreter-gil">Support for isolated subinterpreters</a> with separate Global Interpreter Locks (<a href="https://peps.python.org/pep-0684">PEP 684</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#improved-error-messages">Even more improved error messages</a>. More exceptions potentially caused by typos now make suggestions to the user.</li><li><a href="https://docs.python.org/3.12/howto/perf_profiling.html">Support for the Linux <code>perf</code> profiler</a> to report Python function names in traces.</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#optimizations">Many large and small performance improvements</a> (like <a href="https://peps.python.org/pep-0709/">PEP 709</a> and support for the BOLT binary optimizer), delivering an estimated 5% overall performance improvement.</li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#type-annotations-4" name="type-annotations-4"></a>Type annotations</h2> <ul><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-695-type-parameter-syntax">New type annotation syntax</a> for generic classes (<a href="https://peps.python.org/pep-0695/">PEP 695</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-698-override-decorator-for-static-typing">New override decorator</a> for methods (<a href="https://peps.python.org/pep-0698">PEP 698</a>).</li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#deprecations-5" name="deprecations-5"></a>Deprecations</h2> <ul><li>The deprecated <code>wstr</code> and <code>wstr_length</code> members of the C implementation of unicode objects were removed, per <a href="https://peps.python.org/pep-0623/">PEP 623</a>.</li><li>In the <code>unittest</code> module, a number of long deprecated methods and classes were removed. (They had been deprecated since Python 3.1 or 3.2).</li><li>The deprecated <code>smtpd</code> and <code>distutils</code> modules have been removed (see <a href="https://peps.python.org/pep-0594/">PEP 594</a> and <a href="https://peps.python.org/pep-0632/">PEP 632</a>. The <code>setuptools</code> package continues to provide the <code>distutils</code> module.</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#removed">A number of other old, broken and deprecated functions, classes and methods</a> have been removed.</li><li>Invalid backslash escape sequences in strings now warn with <code>SyntaxWarning</code> instead of <code>DeprecationWarning</code>, making them more visible. (They will become syntax errors in the future.)</li><li>The internal representation of integers has changed in preparation for performance enhancements. (This should not affect most users as it is an internal detail, but it may cause problems for Cython-generated code.)</li></ul> <p>For more details on the changes to Python 3.12, see <a href="https://docs.python.org/3.12/whatsnew/3.12.html">What’s new in Python 3.12</a>.</p> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#more-resources-6" name="more-resources-6"></a>&nbsp;</h1><h1>More resources</h1> <ul><li><a href="https://docs.python.org/3.12/">Online Documentation</a>.</li><li><a href="https://www.python.org/dev/peps/pep-0693/">PEP 693</a>, the Python 3.12 Release Schedule.</li><li>Report bugs via <a href="https://github.com/python/cpython/issues">GitHub Issues</a>.</li><li><a href="https://www.python.org/psf/donations/python-dev/">Help fund Python directly</a> or <a href="https://github.com/sponsors/python">via GitHub Sponsors</a>, and support <a href="https://www.python.org/psf/donations/">the Python community</a>.</li></ul> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#enjoy-the-new-releases-7" name="enjoy-the-new-releases-7"></a>&nbsp;</h1><h1>Enjoy the new releases</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p> <p><br /></p> <p>Your release team,<br /> Thomas Wouters <br /> Łukasz Langa <br /> Ned Deily <br /> Steve Dower <br /></p>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-21546060604976068432024-08-01T05:30:00.001-04:002024-08-01T05:30:48.185-04:00Python 3.13.0 release candidate 1 released<p>&nbsp;I'm pleased to announce the release of Python 3.13 <b>release candidate 1</b>.<br /><br /><a href="https://www.python.org/downloads/release/python-3130rc1/">https://www.python.org/downloads/release/python-3130rc1/</a></p><p>&nbsp;</p><h1>This is the first release candidate of Python 3.13.0</h1> <p>This release, <strong>3.13.0rc1</strong>, is the penultimate release preview. Entering the release candidate phase, only reviewed code changes which are clear bug fixes are allowed between this release candidate and the final release. The second candidate (and the last planned release preview) is scheduled for Tuesday, 2024-09-03, while the official release of 3.13.0 is scheduled for Tuesday, 2024-10-01.</p> <p>There will be <strong>no ABI changes</strong> from this point forward in the 3.13 series, and the goal is that there will be as few code changes as possible.</p> <h3 style="text-align: left;"><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-call-to-action-2" name="p-181511-call-to-action-2"></a>Call to action</h3> <p>We strongly encourage maintainers of third-party Python projects to prepare their projects for 3.13 compatibilities during this phase, and where necessary publish Python 3.13 wheels on PyPI to be ready for the final release of 3.13.0. Any binary wheels built against Python 3.13.0rc1 <strong>will work</strong> with future versions of Python 3.13. As always, report any issues to <a href="https://github.com/python/cpython/issues">the Python bug tracker</a>.</p> <p>Please keep in mind that this is a preview release and while it’s as close to the final release as we can get it, its use is <strong>not</strong> recommended for production environments.</p> <h3><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-core-developers-time-to-work-on-documentation-now-3" name="p-181511-core-developers-time-to-work-on-documentation-now-3"></a>Core developers: time to work on documentation now</h3> <ul><li>Are all your changes properly documented?</li><li>Are they mentioned in <a href="https://docs.python.org/3.13/whatsnew/3.13.html">What’s New</a>?</li><li>Did you notice other changes you know of to have insufficient documentation?</li></ul> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-major-new-features-of-the-313-series-compared-to-312-4" name="p-181511-major-new-features-of-the-313-series-compared-to-312-4"></a>&nbsp;</h1><h1>Major new features of the 3.13 series, compared to 3.12</h1> <p>Some of the new major new features and changes in Python 3.13 are:</p> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-new-features-5" name="p-181511-new-features-5"></a>New features</h2> <ul><li>A <a href="https://docs.python.org/3.13/whatsnew/3.13.html#a-better-interactive-interpreter">new and improved interactive interpreter</a>, based on <a href="https://pypy.org">PyPy</a>’s, featuring multi-line editing and color support, as well as colorized <a href="https://docs.python.org/3.13/whatsnew/3.13.html#improved-error-messages">exception tracebacks</a>.</li><li>An <a href="https://docs.python.org/3.13/whatsnew/3.13.html#free-threaded-cpython"><em>experimental</em> free-threaded build mode</a>, which disables the Global Interpreter Lock, allowing threads to run more concurrently. The build mode is available as an experimental feature in the Windows and macOS installers as well.</li><li>A <a href="https://docs.python.org/3.13/whatsnew/3.13.html#experimental-jit-compiler">preliminary, <em>experimental</em> JIT</a>, providing the ground work for significant performance improvements.</li><li>The <code>locals()</code> builtin function (and its C equivalent) now has <a href="https://docs.python.org/3.13/whatsnew/3.13.html#defined-mutation-semantics-for-locals">well-defined semantics when mutating the returned mapping</a>, which allows debuggers to operate more consistently.</li><li>The (cyclic) garbage collector is now <a href="https://docs.python.org/3.13/whatsnew/3.13.html#incremental-garbage-collection">incremental</a>, which should mean shorter pauses for collection in programs with a lot of objects.</li><li>A modified version of <a href="https://github.com/microsoft/mimalloc">mimalloc</a> is now included, optional but enabled by default if supported by the platform, and required for the free-threaded build mode.</li><li>Docstrings now have <a href="https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes">their leading indentation stripped</a>, reducing memory use and the size of .pyc files. (Most tools handling docstrings already strip leading indentation.)</li><li>The <a href="https://docs.python.org/3.13/library/dbm.html">dbm module</a> has a new <a href="https://docs.python.org/3.13/whatsnew/3.13.html#dbm">dbm.sqlite3 backend</a> that is used by default when creating new files.</li><li>The minimum supported macOS version was changed from 10.9 to <strong>10.13 (High Sierra)</strong>. Older macOS versions will not be supported going forward.</li><li>WASI is now a <a href="https://peps.python.org/pep-0011/#tier-2">Tier 2 supported platform</a>. Emscripten is no longer an <a href="https://peps.python.org/pep-0011/#no-longer-supported-platforms">officially supported platform</a> (but <a href="https://pyodide.org">Pyodide</a> continues to support Emscripten).</li><li>iOS is now a <a href="https://peps.python.org/pep-0730/">Tier 3 supported platform</a>, with <a href="https://peps.python.org/pep-0738/">Android on the way as well</a>.</li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-typing-6" name="p-181511-typing-6"></a>Typing</h2> <ul><li>Support for <a href="https://peps.python.org/pep-0696/">type defaults in type parameters</a>.</li><li>A <a href="https://peps.python.org/pep-0742/">new type narrowing annotation</a>, <code>typing.TypeIs</code>.</li><li>A new annotation for <a href="https://peps.python.org/pep-0705/">read-only items in TypeDicts</a>.</li><li>A new annotation for <a href="https://peps.python.org/pep-0702">marking deprecations in the type system</a>.</li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-removals-and-new-deprecations-7" name="p-181511-removals-and-new-deprecations-7"></a>Removals and new deprecations</h2> <ul><li><a href="https://peps.python.org/pep-0594/">PEP 594 (Removing dead batteries from the standard library)</a> scheduled removals of many deprecated modules: <code>aifc</code>, <code>audioop</code>, <code>chunk</code>, <code>cgi</code>, <code>cgitb</code>, <code>crypt</code>, <code>imghdr</code>, <code>mailcap</code>, <code>msilib</code>, <code>nis</code>, <code>nntplib</code>, <code>ossaudiodev</code>, <code>pipes</code>, <code>sndhdr</code>, <code>spwd</code>, <code>sunau</code>, <code>telnetlib</code>, <code>uu</code>, <code>xdrlib</code>, <code>lib2to3</code>.</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#removed">Many other removals</a> of deprecated classes, functions and methods in various standard library modules.</li><li>C API <a href="https://docs.python.org/3.13/whatsnew/3.13.html#id10">removals</a> and <a href="https://docs.python.org/3.13/whatsnew/3.13.html#id9">deprecations</a>. (Some removals present in alpha 1 were reverted in alpha 2, as the removals were deemed too disruptive at this time.)</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#deprecated">New deprecations</a>, most of which are scheduled for removal from Python 3.15 or 3.16.</li></ul> <p><small>(Hey, <strong>fellow core developer,</strong> if a feature you find important is missing from this list, <a href="mailto:[email protected]">let Thomas know</a>.)</small></p> <p>For more details on the changes to Python 3.13, see <a href="https://docs.python.org/3.13/whatsnew/3.13.html">What’s new in Python 3.13</a>. The next pre-release of Python 3.13 will be 3.13.0rc2, <strong>the final release candidate</strong>, currently scheduled for 2024-09-03.</p> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-more-resources-8" name="p-181511-more-resources-8"></a>&nbsp;</h1><h1>More resources</h1> <ul><li><a href="https://docs.python.org/3.13/">Online Documentation</a></li><li><a href="https://peps.python.org/pep-0719/">PEP 719</a>, 3.13 Release Schedule</li><li>Report bugs at <a class="inline-onebox" href="https://github.com/python/cpython/issues">Issues · python/cpython · GitHub</a>.</li><li><a href="https://www.python.org/psf/donations/python-dev/">Help fund Python directly</a> (or <a href="https://github.com/sponsors/python">via GitHub Sponsors</a>), and support <a href="https://www.python.org/psf/donations/">the Python community</a>.</li></ul> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-enjoy-the-new-releases-9" name="p-181511-enjoy-the-new-releases-9"></a>&nbsp;</h1><h1>Enjoy the new releases</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p> <p>Whatevs,</p> <p>Your release team,<br /> Thomas Wouters <br /> Łukasz Langa <br /> Ned Deily <br /> Steve Dower <br /></p>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-10108978478802815072024-07-18T10:16:00.003-04:002024-07-18T10:16:44.900-04:00Python 3.13.0 beta 4 released<p>I'm pleased to announce the release of Python 3.13 beta 4.<br /><br /><a href="https://www.python.org/downloads/release/python-3130b4/">https://www.python.org/downloads/release/python-3130b4/</a></p> <h1 style="text-align: left;"><span style="font-family: inherit;">&nbsp;</span></h1><h1 style="text-align: left;"><span style="font-family: inherit;">This is a beta preview of Python 3.13</span></h1> <p>Python 3.13 is still in development. This release, 3.13.0b4, is the <strong>final</strong> beta release preview of 3.13.</p> <p>Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support the new feature release.</p> <p>We <strong>strongly encourage</strong> maintainers of third-party Python projects to <strong>test with 3.13</strong> during the beta phase and report issues found to <a href="https://github.com/python/cpython/issues">the Python bug tracker</a> as soon as possible. While the release is planned to be feature complete entering the beta phase, it is possible that features may be modified or, in rare cases, deleted up until the start of the release candidate phase (Tuesday 2024-07-30). Our goal is to have <strong>no ABI changes</strong> after this final beta release, and as few code changes as possible after 3.13.0rc1, the first release candidate. To achieve that, it will be <strong>extremely important</strong> to get as much exposure for 3.13 as possible during the beta phase.</p> <p>Please keep in mind that this is a preview release and its use is <strong>not</strong> recommended for production environments.</p> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-13-0b4-now-available/58565#major-new-features-of-the-313-series-compared-to-312-1" name="major-new-features-of-the-313-series-compared-to-312-1"></a>&nbsp;</h1><h1>Major new features of the 3.13 series, compared to 3.12</h1> <p>Some of the new major new features and changes in Python 3.13 are:</p> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-13-0b4-now-available/58565#new-features-2" name="new-features-2"></a>New features</h2> <ul><li>A <a href="https://docs.python.org/3.13/whatsnew/3.13.html#a-better-interactive-interpreter">new and improved interactive interpreter</a>, based on <a href="https://pypy.org">PyPy</a>’s, featuring multi-line editing and color support, as well as colorized <a href="https://docs.python.org/3.13/whatsnew/3.13.html#improved-error-messages">exception tracebacks</a>.</li><li>An <a href="https://docs.python.org/3.13/whatsnew/3.13.html#free-threaded-cpython"><em>experimental</em> free-threaded build mode</a>, which disables the Global Interpreter Lock, allowing threads to run more concurrently. The build mode is available as an experimental feature in the Windows and macOS installers as well.</li><li>A <a href="https://docs.python.org/3.13/whatsnew/3.13.html#experimental-jit-compiler">preliminary, <em>experimental</em> JIT</a>, providing the ground work for significant performance improvements.</li><li>The <code>locals()</code> builtin function (and its C equivalent) now has <a href="https://docs.python.org/3.13/whatsnew/3.13.html#defined-mutation-semantics-for-locals">well-defined semantics when mutating the returned mapping</a>, which allows debuggers to operate more consistently.</li><li>The (cyclic) garbage collector is now <a href="https://docs.python.org/3.13/whatsnew/3.13.html#incremental-garbage-collection">incremental</a>, which should mean shorter pauses for collection in programs with a lot of objects.</li><li>A modified version of <a href="https://github.com/microsoft/mimalloc">mimalloc</a> is now included, optional but enabled by default if supported by the platform, and required for the free-threaded build mode.</li><li>Docstrings now have <a href="https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes">their leading indentation stripped</a>, reducing memory use and the size of .pyc files. (Most tools handling docstrings already strip leading indentation.)</li><li>The <a href="https://docs.python.org/3.13/library/dbm.html">dbm module</a> has a new <a href="https://docs.python.org/3.13/whatsnew/3.13.html#dbm">dbm.sqlite3 backend</a> that is used by default when creating new files.</li><li>The minimum supported macOS version was changed from 10.9 to <strong>10.13 (High Sierra)</strong>. Older macOS versions will not be supported going forward.</li><li>WASI is now a <a href="https://peps.python.org/pep-0011/#tier-2">Tier 2 supported platform</a>. Emscripten is no longer an <a href="https://peps.python.org/pep-0011/#no-longer-supported-platforms">officially supported platform</a> (but <a href="https://pyodide.org">Pyodide</a> continues to support Emscripten).</li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-13-0b4-now-available/58565#typing-3" name="typing-3"></a>Typing</h2> <ul><li>Support for <a href="https://peps.python.org/pep-0696/">type defaults in type parameters</a>.</li><li>A <a href="https://peps.python.org/pep-0742/">new type narrowing annotation</a>, <code>typing.TypeIs</code>.</li><li>A new annotation for <a href="https://peps.python.org/pep-0705/">read-only items in TypeDicts</a>.</li><li>A new annotation for <a href="https://peps.python.org/pep-0702">marking deprecations in the type system</a>.</li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-13-0b4-now-available/58565#removals-and-new-deprecations-4" name="removals-and-new-deprecations-4"></a>Removals and new deprecations</h2> <ul><li><a href="https://peps.python.org/pep-0594/">PEP 594 (Removing dead batteries from the standard library)</a> scheduled removals of many deprecated modules: <code>aifc</code>, <code>audioop</code>, <code>chunk</code>, <code>cgi</code>, <code>cgitb</code>, <code>crypt</code>, <code>imghdr</code>, <code>mailcap</code>, <code>msilib</code>, <code>nis</code>, <code>nntplib</code>, <code>ossaudiodev</code>, <code>pipes</code>, <code>sndhdr</code>, <code>spwd</code>, <code>sunau</code>, <code>telnetlib</code>, <code>uu</code>, <code>xdrlib</code>, <code>lib2to3</code>.</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#removed">Many other removals</a> of deprecated classes, functions and methods in various standard library modules.</li><li>C API <a href="https://docs.python.org/3.13/whatsnew/3.13.html#id10">removals</a> and <a href="https://docs.python.org/3.13/whatsnew/3.13.html#id9">deprecations</a>. (Some removals present in alpha 1 were reverted in alpha 2, as the removals were deemed too disruptive at this time.)</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#deprecated">New deprecations</a>, most of which are scheduled for removal from Python 3.15 or 3.16.</li></ul> <p><small>(Hey, <strong>fellow core developer,</strong> if a feature you find important is missing from this list, <a href="mailto:[email protected]">let Thomas know</a>.)</small></p> <p>For more details on the changes to Python 3.13, see <a href="https://docs.python.org/3.13/whatsnew/3.13.html">What’s new in Python 3.13</a>. The next pre-release of Python 3.13 will be 3.13.0rc1, <strong>the first release candidate</strong>, currently scheduled for 2024-07-30.</p> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-13-0b4-now-available/58565#more-resources-5" name="more-resources-5"></a>&nbsp;</h1><h1>More resources</h1> <ul><li><a href="https://docs.python.org/3.13/">Online Documentation</a></li><li><a href="https://peps.python.org/pep-0719/">PEP 719</a>, 3.13 Release Schedule</li><li>Report bugs at <a href="https://github.com/python/cpython/issues">https://github.com/python/cpython/issues</a>.</li><li><a href="https://www.python.org/psf/donations/python-dev/">Help fund Python directly</a> (or <a href="https://github.com/sponsors/python">via GitHub Sponsors</a>), and support <a href="https://www.python.org/psf/donations/">the Python community</a>.</li></ul> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-13-0b4-now-available/58565#enjoy-the-new-releases-6" name="enjoy-the-new-releases-6"></a>&nbsp;</h1><h1>Enjoy the new releases</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p><p>&nbsp;</p><p>Your release team,<br />Thomas Wouters<br />Łukasz Langa<br />Ned Deily<br />Steve Dower&nbsp; <br /></p>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-70859137509961587922024-06-27T15:57:00.001-04:002024-06-27T15:57:26.030-04:00Python 3.13.0 beta 3 released<p>&nbsp;</p><p>I'm pleased to announce the release of Python 3.13 beta 3.<br /><br /><a href="https://www.python.org/downloads/release/python-3130b3/">https://www.python.org/downloads/release/python-3130b3/</a></p><p>&nbsp;</p><h1 style="text-align: left;">This is a beta preview of Python 3.13</h1> <p>Python 3.13 is still in development. This release, 3.13.0b3, is the third of four beta release previews of 3.13.</p><p></p> <p>Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support the new feature release.</p> <p>We <b>strongly encourage</b> maintainers of third-party Python projects to <b>test with 3.13</b> during the beta phase and report issues found to <a href="https://github.com/python/cpython/issues">the Python bug tracker </a> as soon as possible. While the release is planned to be feature complete entering the beta phase, it is possible that features may be modified or, in rare cases, deleted up until the start of the release candidate phase (Tuesday 2024-07-30). Our goal is to have no ABI changes after beta 4 and as few code changes as possible after 3.13.0rc1, the first release candidate. To achieve that, it will be <b>extremely important</b> to get as much exposure for 3.13 as possible during the beta phase.</p><p>&nbsp;</p><p>Please keep in mind that this is a preview release and its use is <b>not</b> recommended for production environments.</p> <h1><a class="anchor" href="https://discuss.python.org/t/3-13-0b2-now-available/55056#major-new-features-of-the-313-series-compared-to-312-1" name="major-new-features-of-the-313-series-compared-to-312-1"></a>&nbsp;</h1><h1>Major new features of the 3.13 series, compared to 3.12</h1> <p>Some of the new major new features and changes in Python 3.13 are:</p> <h2><a class="anchor" href="https://discuss.python.org/t/3-13-0b2-now-available/55056#new-features-2" name="new-features-2"></a>New features</h2> <ul><li>A <a href="https://docs.python.org/3.13/whatsnew/3.13.html#a-better-interactive-interpreter">new and improved interactive interpreter </a>, based on <a href="https://pypy.org">PyPy</a>’s, featuring multi-line editing and color support, as well as colorized <a href="https://docs.python.org/3.13/whatsnew/3.13.html#improved-error-messages">exception tracebacks </a>.</li><li>An <a href="https://docs.python.org/3.13/whatsnew/3.13.html#free-threaded-cpython"><i>experimental</i> free-threaded build mode </a>, which disables the Global Interpreter Lock, allowing threads to run more concurrently. The build mode is available as an experimental feature in the Windows and macOS installers as well.</li><li>A <a href="https://docs.python.org/3.13/whatsnew/3.13.html#experimental-jit-compiler">preliminary, <i>experimental</i> JIT </a>, providing the ground work for significant performance improvements.</li><li>The (cyclic) garbage collector is now <a href="https://docs.python.org/3.13/whatsnew/3.13.html#incremental-garbage-collection">incremental </a>, which should mean shorter pauses for collection in programs with a lot of objects.</li><li>A modified version of <a href="https://github.com/microsoft/mimalloc">mimalloc </a> is now included, optional but enabled by default if supported by the platform, and required for the free-threaded build mode.</li><li>Docstrings now have <a href="https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes">their leading indentation stripped</a>, reducing memory use and the size of .pyc files. (Most tools handling docstrings already strip leading indentation.)</li><li>The <a href="https://docs.python.org/3.13/library/dbm.html">dbm module </a> has a new <a href="https://docs.python.org/3.13/whatsnew/3.13.html#dbm">dbm.sqlite3 backend </a> that is used by default when creating new files.</li><li>The minimum supported macOS version was changed from 10.9 to <strong>10.13 (High Sierra)</strong>. Older macOS versions will not be supported going forward. <br /></li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/3-13-0b2-now-available/55056#typing-3" name="typing-3"></a>Typing</h2> <ul><li>Support for <a href="https://peps.python.org/pep-0696/">type defaults in type parameters</a>.</li><li>A <a href="https://peps.python.org/pep-0742/">new type narrowing annotation </a>, <code>typing.TypeIs</code>.</li><li>A new annotation for <a href="https://peps.python.org/pep-0705/">read-only items in TypeDicts </a>.</li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/3-13-0b2-now-available/55056#removals-and-new-deprecations-4" name="removals-and-new-deprecations-4"></a>Removals and new deprecations</h2> <ul><li><a href="https://peps.python.org/pep-0594/">PEP 594 (Removing dead batteries from the standard library)</a> scheduled removals of many deprecated modules: <code>aifc</code>, <code>audioop</code>, <code>chunk</code>, <code>cgi</code>, <code>cgitb</code>, <code>crypt</code>, <code>imghdr</code>, <code>mailcap</code>, <code>msilib</code>, <code>nis</code>, <code>nntplib</code>, <code>ossaudiodev</code>, <code>pipes</code>, <code>sndhdr</code>, <code>spwd</code>, <code>sunau</code>, <code>telnetlib</code>, <code>uu</code>, <code>xdrlib</code>, <code>lib2to3</code>.</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#removed">Many other removals </a> of deprecated classes, functions and methods in various standard library modules.</li><li>C API <a href="https://docs.python.org/3.13/whatsnew/3.13.html#id10">removals</a> and <a href="https://docs.python.org/3.13/whatsnew/3.13.html#id9">deprecations</a>. (Some removals present in alpha 1 were reverted in alpha 2, as the removals were deemed too disruptive at this time.)</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#deprecated">New deprecations</a>, most of which are scheduled for removal from Python 3.15 or 3.16.</li></ul> <p><small>(Hey, <b>fellow core developer,</b> if a feature you find important is missing from this list, <a href="mailto:[email protected]">let Thomas know</a>.)</small></p> <p>For more details on the changes to Python 3.13, see <a href="https://docs.python.org/3.13/whatsnew/3.13.html">What’s new in Python 3.13 </a>. The next pre-release of Python 3.13 will be 3.13.0b4, currently scheduled for 2024-07-16.</p> <h1><a class="anchor" href="https://discuss.python.org/t/3-13-0b2-now-available/55056#more-resources-5" name="more-resources-5"></a>&nbsp;</h1><h1>More resources</h1> <ul><li><a href="https://docs.python.org/3.13/">Online Documentation</a></li><li><a href="https://peps.python.org/pep-0719/">PEP 719 </a>, 3.13 Release Schedule</li><li>Report bugs at <a class="inline-onebox" href="https://github.com/python/cpython/issues">Issues · python/cpython · GitHub </a>.</li><li><a href="https://www.python.org/psf/donations/python-dev/">Help fund Python directly</a> (or <a href="https://github.com/sponsors/python">via GitHub Sponsors</a>), and support <a href="https://www.python.org/psf/donations/">the Python community</a>.</li></ul><h1>&nbsp;</h1><h1>Enjoy the new releases</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p> <p>Your release team,<br /> Thomas Wouters <br /> Łukasz Langa <br /> Ned Deily <br /> Steve Dower&nbsp;</p><p>&nbsp;</p>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-37327447949895771642024-06-06T21:50:00.002-04:002024-06-06T21:50:37.946-04:00Python 3.12.4 released<p>I'm pleased to announce the release of Python 3.12.4:<br /><br />https://www.python.org/downloads/release/python-3124/</p><h1>&nbsp;</h1><h1>This is the third maintenance release of Python 3.12</h1> <p>Python 3.12 is the newest major release of the Python programming language, and it contains many new features and optimizations. 3.12.4 is the latest maintenance release, containing more than 250 bugfixes, build improvements and documentation changes since 3.12.3.</p> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#major-new-features-of-the-312-series-compared-to-311-2" name="major-new-features-of-the-312-series-compared-to-311-2"></a>&nbsp;</h1><h1>Major new features of the 3.12 series, compared to 3.11</h1> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#new-features-3" name="new-features-3"></a>&nbsp;</h2><h2>New features</h2> <ul><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-701-syntactic-formalization-of-f-strings">More flexible f-string parsing</a>, allowing many things previously disallowed (<a href="https://peps.python.org/pep-0701/">PEP 701</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-688-making-the-buffer-protocol-accessible-in-python">Support for the buffer protocol</a> in Python code (<a href="https://peps.python.org/pep-0688/">PEP 688</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-669-low-impact-monitoring-for-cpython">A new debugging/profiling API</a> (<a href="https://peps.python.org/pep-0669/">PEP 669</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-684-a-per-interpreter-gil">Support for isolated subinterpreters</a> with separate Global Interpreter Locks (<a href="https://peps.python.org/pep-0684">PEP 684</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#improved-error-messages">Even more improved error messages</a>. More exceptions potentially caused by typos now make suggestions to the user.</li><li><a href="https://docs.python.org/3.12/howto/perf_profiling.html">Support for the Linux <code>perf</code> profiler</a> to report Python function names in traces.</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#optimizations">Many large and small performance improvements</a> (like <a href="https://peps.python.org/pep-0709/">PEP 709</a> and support for the BOLT binary optimizer), delivering an estimated 5% overall performance improvement.</li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#type-annotations-4" name="type-annotations-4"></a>Type annotations</h2> <ul><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-695-type-parameter-syntax">New type annotation syntax</a> for generic classes (<a href="https://peps.python.org/pep-0695/">PEP 695</a>).</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-698-override-decorator-for-static-typing">New override decorator</a> for methods (<a href="https://peps.python.org/pep-0698">PEP 698</a>).</li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#deprecations-5" name="deprecations-5"></a>Deprecations</h2> <ul><li>The deprecated <code>wstr</code> and <code>wstr_length</code> members of the C implementation of unicode objects were removed, per <a href="https://peps.python.org/pep-0623/">PEP 623</a>.</li><li>In the <code>unittest</code> module, a number of long deprecated methods and classes were removed. (They had been deprecated since Python 3.1 or 3.2).</li><li>The deprecated <code>smtpd</code> and <code>distutils</code> modules have been removed (see <a href="https://peps.python.org/pep-0594/">PEP 594</a> and <a href="https://peps.python.org/pep-0632/">PEP 632</a>. The <code>setuptools</code> package continues to provide the <code>distutils</code> module.</li><li><a href="https://docs.python.org/3.12/whatsnew/3.12.html#removed">A number of other old, broken and deprecated functions, classes and methods</a> have been removed.</li><li>Invalid backslash escape sequences in strings now warn with <code>SyntaxWarning</code> instead of <code>DeprecationWarning</code>, making them more visible. (They will become syntax errors in the future.)</li><li>The internal representation of integers has changed in preparation for performance enhancements. (This should not affect most users as it is an internal detail, but it may cause problems for Cython-generated code.)</li></ul> <p>For more details on the changes to Python 3.12, see <a href="https://docs.python.org/3.12/whatsnew/3.12.html">What’s new in Python 3.12</a>.</p> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#more-resources-6" name="more-resources-6"></a>&nbsp;</h1><h1>More resources</h1> <ul><li><a href="https://docs.python.org/3.12/">Online Documentation</a>.</li><li><a href="https://www.python.org/dev/peps/pep-0693/">PEP 693</a>, the Python 3.12 Release Schedule.</li><li>Report bugs via <a href="https://github.com/python/cpython/issues">GitHub Issues</a>.</li><li><a href="https://www.python.org/psf/donations/python-dev/">Help fund Python directly</a> or <a href="https://github.com/sponsors/python">via GitHub Sponsors</a>, and support <a href="https://www.python.org/psf/donations/">the Python community</a>.</li></ul> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-12-4-now-available/55128#enjoy-the-new-releases-7" name="enjoy-the-new-releases-7"></a>&nbsp;</h1><h1>Enjoy the new releases</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p> <p><br /></p> <p>Your release team,<br /> Thomas Wouters <br /> Łukasz Langa <br /> Ned Deily <br /> Steve Dower&nbsp;</p>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-45859580955418257342024-06-06T21:46:00.001-04:002024-06-06T21:46:52.999-04:00Python 3.13.0 beta 2 released<p>I'm pleased to announce the release of Python 3.13 beta 2.<br /><br /><a href="https://www.python.org/downloads/release/python-3130b2/">https://www.python.org/downloads/release/python-3130b2/</a></p><p>&nbsp;</p><h1 style="text-align: left;">This is a beta preview of Python 3.13</h1> <p>Python 3.13 is still in development. This release, 3.13.0b2, is the second of four beta release previews of 3.13.</p> <p>Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support the new feature release.</p> <p>We <strong>strongly encourage</strong> maintainers of third-party Python projects to <strong>test with 3.13</strong> during the beta phase and report issues found to <a href="https://github.com/python/cpython/issues">the Python bug tracker </a> as soon as possible. While the release is planned to be feature complete entering the beta phase, it is possible that features may be modified or, in rare cases, deleted up until the start of the release candidate phase (Tuesday 2024-07-30). Our goal is to have no ABI changes after beta 4 and as few code changes as possible after 3.13.0rc1, the first release candidate. To achieve that, it will be <strong>extremely important</strong> to get as much exposure for 3.13 as possible during the beta phase.</p> <p><strong>Two particularly noteworthy changes in beta 2 involve the macOS installer we provide:</strong></p> <ul><li>The minimum supported macOS version was changed from 10.9 to <strong>10.13 (High Sierra)</strong>. Older macOS versions will not be supported going forward.</li><li>The macOS installer package now includes an optional additional build of Python 3.13 with the experimental free-threading feature enabled. The free-threaded version, python3.13t, is separate from and co-exists with the traditional GIL-only installation. The free-threaded build is not installed by default; use the Customize option of the installer as explained in the installer readme. Since this is an experimental feature, there may be late-breaking issues found; see <a href="https://github.com/python/cpython/issues/120098">the free-threaded macOS build issue </a> on GitHub for the most recent status.</li></ul> <p>Please keep in mind that this is a preview release and its use is <strong>not</strong> recommended for production environments.</p> <h1><a class="anchor" href="https://discuss.python.org/t/3-13-0b2-now-available/55056#major-new-features-of-the-313-series-compared-to-312-1" name="major-new-features-of-the-313-series-compared-to-312-1"></a>&nbsp;</h1><h1>Major new features of the 3.13 series, compared to 3.12</h1> <p>Some of the new major new features and changes in Python 3.13 are:</p> <h2><a class="anchor" href="https://discuss.python.org/t/3-13-0b2-now-available/55056#new-features-2" name="new-features-2"></a>New features</h2> <ul><li>A <a href="https://docs.python.org/3.13/whatsnew/3.13.html#a-better-interactive-interpreter">new and improved interactive interpreter </a>, based on <a href="https://pypy.org">PyPy</a>’s, featuring multi-line editing and color support, as well as colorized <a href="https://docs.python.org/3.13/whatsnew/3.13.html#improved-error-messages">exception tracebacks </a>.</li><li>An <a href="https://docs.python.org/3.13/whatsnew/3.13.html#free-threaded-cpython"><em>experimental</em> free-threaded build mode </a>, which disables the Global Interpreter Lock, allowing threads to run more concurrently.</li><li>A <a href="https://docs.python.org/3.13/whatsnew/3.13.html#experimental-jit-compiler">preliminary, <em>experimental</em> JIT </a>, providing the ground work for significant performance improvements.</li><li>The (cyclic) garbage collector is now <a href="https://docs.python.org/3.13/whatsnew/3.13.html#incremental-garbage-collection">incremental </a>, which should mean shorter pauses for collection in programs with a lot of objects.</li><li>A modified version of <a href="https://github.com/microsoft/mimalloc">mimalloc </a> is now included, optional but enabled by default if supported by the platform, and required for the free-threaded build mode.</li><li>Docstrings now have <a href="https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes">their leading indentation stripped</a>, reducing memory use and the size of .pyc files. (Most tools handling docstrings already strip leading indentation.)</li><li>The <a href="https://docs.python.org/3.13/library/dbm.html">dbm module </a> has a new <a href="https://docs.python.org/3.13/whatsnew/3.13.html#dbm">dbm.sqlite3 backend </a> that is used by default when creating new files.</li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/3-13-0b2-now-available/55056#typing-3" name="typing-3"></a>Typing</h2> <ul><li>Support for <a href="https://peps.python.org/pep-0696/">type defaults in type parameters</a>.</li><li>A <a href="https://peps.python.org/pep-0742/">new type narrowing annotation </a>, <code>typing.TypeIs</code>.</li><li>A new annotation for <a href="https://peps.python.org/pep-0705/">read-only items in TypeDicts </a>.</li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/3-13-0b2-now-available/55056#removals-and-new-deprecations-4" name="removals-and-new-deprecations-4"></a>Removals and new deprecations</h2> <ul><li><a href="https://peps.python.org/pep-0594/">PEP 594 (Removing dead batteries from the standard library)</a> scheduled removals of many deprecated modules: <code>aifc</code>, <code>audioop</code>, <code>chunk</code>, <code>cgi</code>, <code>cgitb</code>, <code>crypt</code>, <code>imghdr</code>, <code>mailcap</code>, <code>msilib</code>, <code>nis</code>, <code>nntplib</code>, <code>ossaudiodev</code>, <code>pipes</code>, <code>sndhdr</code>, <code>spwd</code>, <code>sunau</code>, <code>telnetlib</code>, <code>uu</code>, <code>xdrlib</code>, <code>lib2to3</code>.</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#removed">Many other removals </a> of deprecated classes, functions and methods in various standard library modules.</li><li>C API <a href="https://docs.python.org/3.13/whatsnew/3.13.html#id10">removals</a> and <a href="https://docs.python.org/3.13/whatsnew/3.13.html#id9">deprecations</a>. (Some removals present in alpha 1 were reverted in alpha 2, as the removals were deemed too disruptive at this time.)</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#deprecated">New deprecations</a>, most of which are scheduled for removal from Python 3.15 or 3.16.</li></ul> <p><small>(Hey, <strong>fellow core developer,</strong> if a feature you find important is missing from this list, <a href="mailto:[email protected]">let Thomas know</a>.)</small></p> <p>For more details on the changes to Python 3.13, see <a href="https://docs.python.org/3.13/whatsnew/3.13.html">What’s new in Python 3.13 </a>. The next pre-release of Python 3.13 will be 3.13.0b3, currently scheduled for 2024-06-25.</p> <h1><a class="anchor" href="https://discuss.python.org/t/3-13-0b2-now-available/55056#more-resources-5" name="more-resources-5"></a>&nbsp;</h1><h1>More resources</h1> <ul><li><a href="https://docs.python.org/3.13/">Online Documentation</a></li><li><a href="https://peps.python.org/pep-0719/">PEP 719 </a>, 3.13 Release Schedule</li><li>Report bugs at <a class="inline-onebox" href="https://github.com/python/cpython/issues">Issues · python/cpython · GitHub </a>.</li><li><a href="https://www.python.org/psf/donations/python-dev/">Help fund Python directly</a> (or <a href="https://github.com/sponsors/python">via GitHub Sponsors</a>), and support <a href="https://www.python.org/psf/donations/">the Python community</a>.</li></ul><h1>&nbsp;</h1><h1>Enjoy the new releases</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p> <p>Your release team,<br /> Thomas Wouters <br /> Łukasz Langa <br /> Ned Deily <br /> Steve Dower&nbsp;</p><p>&nbsp;</p>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-78804108823921195382024-05-08T18:11:00.000-04:002024-05-08T18:11:10.014-04:00Python 3.13.0 beta 1 released<p>I'm pleased to announce the release of Python 3.13 beta 1 (and feature freeze for Python 3.13).<br /><br /><a href="https://www.python.org/downloads/release/python-3130b1/">https://www.python.org/downloads/release/python-3130b1/</a></p><p>&nbsp;</p><h1 style="text-align: left;"><span style="font-family: inherit;">This is a beta preview of Python 3.13</span></h1> <p>Python 3.13 is still in development. This release, 3.13.0b1, is the first of four beta release previews of 3.13.</p> <p>Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support the new feature release.</p> <p>We <strong>strongly encourage</strong> maintainers of third-party Python projects to <strong>test with 3.13</strong> during the beta phase and report issues found to <a href="https://github.com/python/cpython/issues">the Python bug tracker</a> as soon as possible. While the release is planned to be feature complete entering the beta phase, it is possible that features may be modified or, in rare cases, deleted up until the start of the release candidate phase (Tuesday 2024-07-30). Our goal is to have no ABI changes after beta 4 and as few code changes as possible after 3.13.0rc1, the first release candidate. To achieve that, it will be <strong>extremely important</strong> to get as much exposure for 3.13 as possible during the beta phase.</p> <p>Please keep in mind that this is a preview release and its use is <strong>not</strong> recommended for production environments.</p> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-13-0b1-now-available/52891#major-new-features-of-the-313-series-compared-to-312-1" name="major-new-features-of-the-313-series-compared-to-312-1" style="font-family: inherit;"></a><span style="font-family: inherit;">Major new features of the 3.13 series, compared to 3.12</span></h1> <p>Some of the new major new features and changes in Python 3.13 are:</p> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-13-0b1-now-available/52891#new-features-2" name="new-features-2"></a>New features</h2> <ul><li>A <a href="https://docs.python.org/3.13/whatsnew/3.13.html#a-better-interactive-interpreter">new and improved interactive interpreter</a>, based on <a href="https://pypy.org">PyPy</a>’s, featuring multi-line editing and color support, as well as colorized <a href="https://docs.python.org/3.13/whatsnew/3.13.html#improved-error-messages">exception tracebacks</a>.</li><li>An <a href="https://docs.python.org/3.13/whatsnew/3.13.html#free-threaded-cpython"><em>experimental</em> free-threaded build mode</a>, which disables the Global Interpreter Lock, allowing threads to run more concurrently.</li><li>A <a href="https://docs.python.org/3.13/whatsnew/3.13.html#experimental-jit-compiler">preliminary, <em>experimental</em> JIT</a>, providing the ground work for significant performance improvements.</li><li>The (cyclic) garbage collector is now <a href="https://docs.python.org/3.13/whatsnew/3.13.html#incremental-garbage-collection">incremental</a>, which should mean shorter pauses for collection in programs with a lot of objects.</li><li>A modified version of <a href="https://github.com/microsoft/mimalloc">mimalloc</a> is now included, optional but enabled by default if supported by the platform, and required for the free-threaded build mode.</li><li>Docstrings now have <a href="https://docs.python.org/3.13/whatsnew/3.13.html#other-language-changes">their leading indentation stripped</a>, reducing memory use and the size of .pyc files. (Most tools handling docstrings already strip leading indentation.)</li><li>The <a href="https://docs.python.org/3.13/library/dbm.html">dbm module</a> has a new <a href="https://docs.python.org/3.13/whatsnew/3.13.html#dbm">dbm.sqlite3 backend</a> that is used by default when creating new files.</li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-13-0b1-now-available/52891#typing-3" name="typing-3"></a>Typing</h2> <ul><li>Support for <a href="https://peps.python.org/pep-0696/">type defaults in type parameters</a>.</li><li>A <a href="https://peps.python.org/pep-0742/">new type narrowing annotation</a>, <code>typing.TypeIs</code>.</li><li>A new annotation for <a href="https://peps.python.org/pep-0705/">read-only items in TypeDicts</a>.</li></ul> <h2><a class="anchor" href="https://discuss.python.org/t/python-3-13-0b1-now-available/52891#removals-and-new-deprecations-4" name="removals-and-new-deprecations-4"></a>Removals and new deprecations</h2> <ul><li><a href="https://peps.python.org/pep-0594/">PEP 594 (Removing dead batteries from the standard library)</a> scheduled removals of many deprecated modules: <code>aifc</code>, <code>audioop</code>, <code>chunk</code>, <code>cgi</code>, <code>cgitb</code>, <code>crypt</code>, <code>imghdr</code>, <code>mailcap</code>, <code>msilib</code>, <code>nis</code>, <code>nntplib</code>, <code>ossaudiodev</code>, <code>pipes</code>, <code>sndhdr</code>, <code>spwd</code>, <code>sunau</code>, <code>telnetlib</code>, <code>uu</code>, <code>xdrlib</code>, <code>lib2to3</code>.</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#removed">Many other removals</a> of deprecated classes, functions and methods in various standard library modules.</li><li>C API <a href="https://docs.python.org/3.13/whatsnew/3.13.html#id10">removals</a> and <a href="https://docs.python.org/3.13/whatsnew/3.13.html#id9">deprecations</a>. (Some removals present in alpha 1 were reverted in alpha 2, as the removals were deemed too disruptive at this time.)</li><li><a href="https://docs.python.org/3.13/whatsnew/3.13.html#deprecated">New deprecations</a>, most of which are scheduled for removal from Python 3.15 or 3.16.</li></ul> <p><small>(Hey, <strong>fellow core developer,</strong> if a feature you find important is missing from this list, <a href="mailto:[email protected]">let Thomas know</a>.)</small></p> <p>For more details on the changes to Python 3.13, see <a href="https://docs.python.org/3.13/whatsnew/3.13.html">What’s new in Python 3.13</a>. The next pre-release of Python 3.13 will be 3.13.0b2, currently scheduled for 2024-05-28.</p> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-13-0b1-now-available/52891#more-resources-5" name="more-resources-5"></a>&nbsp;</h1><h1>More resources</h1> <ul><li><a href="https://docs.python.org/3.13/">Online Documentation</a></li><li><a href="https://peps.python.org/pep-0719/">PEP 719</a>, 3.13 Release Schedule</li><li>Report bugs at <a class="inline-onebox" href="https://github.com/python/cpython/issues">Issues · python/cpython · GitHub</a>.</li><li><a href="https://www.python.org/psf/donations/python-dev/">Help fund Python directly</a> (or <a href="https://github.com/sponsors/python">via GitHub Sponsors</a>), and support <a href="https://www.python.org/psf/donations/">the Python community</a>. <br /></li></ul> <h1><a class="anchor" href="https://discuss.python.org/t/python-3-13-0b1-now-available/52891#enjoy-the-new-releases-6" name="enjoy-the-new-releases-6"></a>&nbsp;</h1><h1>Enjoy the new releases</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.</p> <p>Your release team,<br /> Thomas Wouters <br /> Łukasz Langa <br /> Ned Deily <br /> Steve Dower&nbsp;</p><p>&nbsp;</p><p></p>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-37328651783045481512024-04-09T15:14:00.003-04:002024-04-09T15:16:28.923-04:00Python 3.12.3 and 3.13.0a6 released<p><b>It’s time to eclipse the Python 3.11.9 release with <i>two</i> releases</b>, one of which is the <i>very last alpha release of Python 3.13</i>:</p><div class="cooked"><p>&nbsp;</p> <h1 style="text-align: left;"><a class="anchor" href="https://discuss.python.org/t/python-3-12-3-and-3-13-0a6-released/50601#python-3123-1" name="python-3123-1"></a>Python 3.12.3</h1> <p>300+ of the finest commits went into this latest maintenance release of the latest Python version, the most stablest, securest, bugfreeest we could make it.</p><aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-3123/"><article class="onebox-body"><p><a href="https://www.python.org/downloads/release/python-3123/">https://www.python.org/downloads/release/python-3123/</a></p><p>&nbsp;</p> </article> <div class="onebox-metadata"> </div> <div style="clear: both;"></div> </aside> <h1 style="text-align: left;"><a class="anchor" href="https://discuss.python.org/t/python-3-12-3-and-3-13-0a6-released/50601#python-3130a6-2" name="python-3130a6-2"></a>Python 3.13.0a6</h1> <p>What’s that? The last alpha release? Just one more month until feature freeze! Get your features done, get your bugs fixed, let’s get 3.13.0 ready for people to actually use! Until then, let’s test with alpha 6. The highlights of 3.13 you ask? Well:</p> <ul><li>In the interactive interpreter, <a href="https://docs.python.org/dev/whatsnew/3.13.html#improved-error-messages">exception tracebacks are now colorized by default</a>.</li><li>A <a href="https://docs.python.org/dev/whatsnew/3.13.html#experimental-jit-compiler">preliminary, <i>experimental</i> JIT was added</a>, providing the ground work for significant performance improvements.</li><li>The (cyclic) garbage collector is now <a href="https://docs.python.org/dev/whatsnew/3.13.html#incremental-garbage-collection">incremental</a>, which should mean shorter pauses for collection in programs with a lot of objects.</li><li>Docstrings now have <a href="https://docs.python.org/dev/whatsnew/3.13.html#other-language-changes">their leading indentation stripped</a>, reducing memory use and the size of .pyc files. (Most tools handling docstrings already strip leading indentation.)</li><li>The <a href="https://docs.python.org/dev/library/dbm.html">dbm module</a> has a new <a href="https://docs.python.org/dev/whatsnew/3.13.html#id1">dbm.sqlite3 backend</a> that is used by default when creating new files.</li><li><a href="https://peps.python.org/pep-0594/">PEP 594 (Removing dead batteries from the standard library)</a> scheduled removals of many deprecated modules: <code>aifc</code>, <code>audioop</code>, <code>chunk</code>, <code>cgi</code>, <code>cgitb</code>, <code>crypt</code>, <code>imghdr</code>, <code>mailcap</code>, <code>msilib</code>, <code>nis</code>, <code>nntplib</code>, <code>ossaudiodev</code>, <code>pipes</code>, <code>sndhdr</code>, <code>spwd</code>, <code>sunau</code>, <code>telnetlib</code>, <code>uu</code>, <code>xdrlib</code>, <code>lib2to3</code>.</li><li><a href="https://docs.python.org/dev/whatsnew/3.13.html#removed">Many other removals</a> of deprecated classes, functions and methods in various standard library modules.</li><li><a href="https://docs.python.org/dev/whatsnew/3.13.html#deprecated">New deprecations</a>, most of which are scheduled for removal from Python 3.15 or 3.16.</li><li>C API <a href="https://docs.python.org/dev/whatsnew/3.13.html#id10">removals</a> and <a href="https://docs.python.org/dev/whatsnew/3.13.html#id9">deprecations</a>. (Some removals present in alpha 1 were reverted in alpha 2, as the removals were deemed too disruptive at this time.)</li></ul> <p><small>(Hey, <b>fellow core developer,</b> if a feature you find important is missing from this list, <a href="mailto:[email protected]">let Thomas know</a>. It’s getting to be really important now!)</small></p> <aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-3130a6/"><a href="https://www.python.org/downloads/release/python-3130a6/">https://www.python.org/downloads/release/python-3130a6/</a></aside><aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-3130a6/">&nbsp;</aside><aside class="onebox allowlistedgeneric" data-onebox-src="https://www.python.org/downloads/release/python-3130a6/">&nbsp;<br /><div class="onebox-metadata"> </div> <div style="clear: both;"></div> </aside> <h1 style="text-align: left;"><a class="anchor" href="https://discuss.python.org/t/python-3-12-3-and-3-13-0a6-released/50601#we-hope-you-enjoy-the-new-releases-3" name="we-hope-you-enjoy-the-new-releases-3"></a>We hope you enjoy the new releases!</h1> <p>Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself, or through contributions to <a href="https://www.python.org/psf-landing/">the Python Software Foundation </a> or <a href="https://github.com/sponsors/python">CPython itself</a>.</p> <p>Thomas “can you tell I haven’t had coffee today” Wouters <br /> on behalf of your release team,</p> <p>Ned Deily <br /> Steve Dower <br /> Pablo Galindo Salgado <br /> Łukasz Langa</p></div>Thomas Woutershttp://www.blogger.com/profile/10346112333332923135[email protected]tag:blogger.com,1999:blog-3941553907430899163.post-42935375300031908822024-04-08T04:26:00.003-04:002024-04-08T04:50:48.835-04:00Python 3.11.9 is now available<p>&nbsp;&nbsp;</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEickKZquPSoujo5pHqw1C1q7m4_kEMV27tJ-7lIt1sxNnzvPQMpKso_RVbnrnkq1x4rQ2Ybx8zmTy-LmL3K5Ye3fP_bfwTdMRSFhFRCGcLXLNNtlj4mEurgdSvz5msOKq1fmLGKVfeXxxVh9W_SzLCfK9M5HsviItUSLPy19qTWch9mMh5YWpmCjC0a/s507/311logo.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="500" data-original-width="507" height="316" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEickKZquPSoujo5pHqw1C1q7m4_kEMV27tJ-7lIt1sxNnzvPQMpKso_RVbnrnkq1x4rQ2Ybx8zmTy-LmL3K5Ye3fP_bfwTdMRSFhFRCGcLXLNNtlj4mEurgdSvz5msOKq1fmLGKVfeXxxVh9W_SzLCfK9M5HsviItUSLPy19qTWch9mMh5YWpmCjC0a/s320/311logo.png" width="320" /></a></div><br /><p></p><h2><p style="caret-color: rgb(34, 34, 34); color: #222222; font-family: Arial, sans-serif; font-size: 15.008px; font-weight: 400; text-align: center;"><img alt=":warning:" class="emoji" height="20" loading="lazy" src="https://emoji.discourse-cdn.com/apple/warning.png?v=12" style="aspect-ratio: 20 / 20; border-style: none; height: 20px; vertical-align: text-bottom; width: 20px;" title=":warning:" width="20" />&nbsp;This is the last bug fix release of Python 3.11&nbsp;<img alt=":warning:" class="emoji" height="20" loading="lazy" src="https://emoji.discourse-cdn.com/apple/warning.png?v=12" style="aspect-ratio: 20 / 20; border-style: none; height: 20px; vertical-align: text-bottom; width: 20px;" title=":warning:" width="20" /></p></h2><h2>This is the ninth maintenance release of Python 3.11</h2><p>Python 3.11.9 is the newest major release of the Python programming language, and it contains many new features and optimizations. Get it here:</p><p><a href="https://www.python.org/downloads/release/python-3119/">https://www.python.org/downloads/release/python-3119/</a></p><h2><span style="font-family: inherit; font-size: large;">Major new features of the 3.11 series, compared to 3.10</span></h2><div class="gmail_default"><p><span style="font-family: inherit;"><span>Among the new major new features and changes so far:</span><span><br /></span></span></p><ul style="background-color: white; clear: both; margin: 0px; padding: 0px 0px 0px 40px;"><li style="color: #222222;"><span style="font-family: inherit;"><a href="https://www.python.org/dev/peps/pep-0657/" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">PEP 657</a>&nbsp;– Include Fine-Grained Error Locations in Tracebacks</span></li><li style="color: #222222;"><span style="font-family: inherit;"><a href="https://www.python.org/dev/peps/pep-0654/" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">PEP 654</a>&nbsp;– Exception Groups and except*</span></li><li style="color: #222222;"><span style="font-family: inherit;"><a href="https://www.python.org/dev/peps/pep-0673/" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">PEP 673</a>&nbsp;– Self Type</span></li><li style="color: #222222;"><span style="font-family: inherit;"><a href="https://www.python.org/dev/peps/pep-0646/" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">PEP 646</a>&nbsp;– Variadic Generics</span></li><li style="color: #222222;"><a href="https://www.python.org/dev/peps/pep-0680/" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">PEP 680</a>&nbsp;– tomllib: Support for Parsing TOML in the Standard Library</li><li style="color: #222222;"><a href="https://www.python.org/dev/peps/pep-0675/" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">PEP 675</a>&nbsp;– Arbitrary Literal String Type</li><li style="color: #222222;"><a href="https://www.python.org/dev/peps/pep-0655/" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">PEP 655</a>&nbsp;– Marking individual TypedDict items as required or potentially-missing</li><li style="color: #222222;"><a href="https://bugs.python.org/issue46752" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">bpo-46752</a>&nbsp;– Introduce task groups to asyncio</li><li style="color: #222222;"><a href="https://www.python.org/dev/peps/pep-0681/" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">PEP 681</a>&nbsp;– Data Class Transforms</li><li style="color: #222222;"><a href="https://github.com/python/cpython/issues/34627/" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">bpo-433030</a>– Atomic grouping ((?&gt;…)) and possessive quantifiers (<code style="background: var(--hljs-bg); color: var(--primary-very-high); font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 15.008px;">*+, ++, ?+, {m,n}+</code><span face="Arial, sans-serif" style="font-size: 15.008px;">) are now supported in regular expressions.</span></li><li><span style="color: #222222;">The&nbsp;<a href="https://github.com/faster-cpython" target="_blank">Faster Cpython Project</a>&nbsp;is already yielding some exciting results. Python 3.11 is up to 10-60% faster than Python 3.10. On average, we measured a 1.22x speedup on the standard benchmark suite. See&nbsp;<a href="https://docs.python.org/3.11/whatsnew/3.11.html#faster-cpython" target="_blank">Faster CPython for details.</a></span></li></ul><div><p style="background-color: white;"><span style="background-color: transparent; font-family: inherit;">More resources</span></p></div><ul style="background-color: white; clear: both; color: #222222; margin: 0px; padding: 0px 0px 0px 40px;"><li><a href="https://docs.python.org/3.10/" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">Online Documentation</a></li></ul><ul style="background-color: white; clear: both; color: #222222; margin: 0px; padding: 0px 0px 0px 40px;"><li><a href="https://www.python.org/dev/peps/pep-0664/" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">PEP 664</a>, 3.11 Release Schedule</li><li><span style="font-family: inherit; font-size: small;">Report bugs at&nbsp;<a href="https://bugs.python.org/" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">https://bugs.python.org</a>.</span></li></ul><ul style="background-color: white; clear: both; color: #222222; margin: 0px; padding: 0px 0px 0px 40px;"><li><span style="font-family: inherit; font-size: small;"><a href="https://www.python.org/psf/donations/" style="background-color: transparent; cursor: pointer; overflow-wrap: break-word; text-decoration-line: none; text-decoration: none;">Help fund Python and its community</a>.</span></li></ul><p></p></div><div class="gmail_default"><h2><span style="font-family: inherit; font-size: medium;">And now for something completely different</span></h2><p>A kugelblitz is a theoretical astrophysical object predicted by general relativity. It is a concentration of heat, light or radiation so intense that its energy forms an event horizon and becomes self-trapped. In other words, if enough radiation is aimed into a region of space, the concentration of energy can warp spacetime so much that it creates a black hole. This would be a black hole whose original mass–energy was in the form of radiant energy rather than matter, however as soon as it forms, it is indistinguishable from an ordinary black hole.</p></div><div class="gmail_default"><h2><span style="font-family: inherit; font-size: medium;">We hope you enjoy the new releases!</span></h2><span style="font-family: inherit;">Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation.<br /></span></div><div class="gmail_default"><span style="font-family: inherit;"><br /></span></div><div class="gmail_default"><span style="font-family: inherit;"><a href="https://www.python.org/psf/"><span style="font-family: inherit;">https://www.python.org/psf/</span><br /></a></span></div><div class="gmail_default"><p><span style="font-family: inherit;">Your friendly release team,<br /><a href="https://discuss.python.org/u/nad">Ned Deily @nad&nbsp;</a><br /><a href="https://discuss.python.org/u/steve.dower">Steve Dower @steve.dower</a>&nbsp;<br /><a href="https://discuss.python.org/u/pablogsal">Pablo Galindo Salgado @pablogsal</a></span></p></div>Pablo Galindohttp://www.blogger.com/profile/07923137967169776470[email protected]