AI News HubLIVE
站內改寫2 分鐘閱讀

待翻譯:Python 3.15.0 candidate 2 is here!

AI 服務暫時不可用,以下為來源摘要,待恢復後補全翻譯:<p><strong><a href="https://discuss.python.org/t/python-3-15-0-candidate-2-is-here/108841">Python 3.15.0 candidate 2 is here!</a></strong></p> Hugo van Kemenade (release manager for Python 3.14 and 3.15) announces the final release candidate for Python 3.15, scheduled for release in October:</p> <blockquote> <p>Entering the release candidate phase, only reviewed code changes which are clear bug fixes are allowed between this release candidate and the final release. [...]</p> <p>We <strong>strongly encourage</strong> maintainers of third-party Python projects to prepare their projects for 3.15 during this phase, and publish Python 3.15 wheels on PyPI to be ready for the final release of 3.15.0, and to help other projects do their own testing. Any binary wheels built against Python 3.15.0 release candidates <strong>will work</strong> with future versions of Python 3.15.</p> </blockquote> <p>Back in 2021 I <a href="https://simonwillison.net/2021/Oct/9/finding-and-reporting-a-bug/">found a bug in Python 3.10</a> by running my test suites against it... but I hadn't done this during the RC period, so that bug had already shipped! Since then I've always paid much closer attention to these RCs.</p> <p>The new RC isn't available for GitHub Actions just yet - keep an eye on <a href="https://github.com/actions/python-versions/releases">actions/python-versions</a> for that. For the moment though you can add this to a testing matrix:</p> <div class="highlight highlight-source-yaml"><pre><span class="pl-ent">strategy</span>: <span class="pl-ent">matrix</span>: <span class="pl-ent">python-version</span>: <span class="pl-s">["3.14", "3.15"]</span> <span class="pl-ent">steps</span>: - <span class="pl-ent">uses</span>: <span class="pl-s">actions/setup-python@v7</span> <span class="pl-ent">with</span>: <span class="pl-ent">python-version</span>: <span class="pl-s">${{ matrix.python-version }}</span> <span class="pl-ent">allow-prereleases</span>: <span class="pl-c1">true</span> <span class="pl-ent">check-latest</span>: <span class="pl-c1">true</span></pre></div> <p>The <a href="https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#allow-pre-releases">allow-prereleases</a> and <a href="https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#check-latest-version">check-latest</a> flags mean that today this will test against RC1, and when RC2 lands it will automatically switch to that version (and then the stable version once that comes out.) <p><small></small>Via <a href="https://bsky.app/profile/hugovk.dev/post/3muhjndhw322i">@hugovk.dev</a></small></p> <p>Tags: <a href="https://simonwillison.net/tags/open-source">open-source</a>, <a href="https://simonwillison.net/tags/python">python</a>, <a href="https://simonwillison.net/tags/github-actions">github-actions</a></p>

AI 服務暫時不可用,以下為來源正文,待恢復後補全翻譯。

Python 3.15.0 candidate 2 is here! Simon Willison’s Weblog Subscribe 1st September 2026 - Link Blog Python 3.15.0 candidate 2 is here! (via) Hugo van Kemenade (release manager for Python 3.14 and 3.15) announces the final release candidate for Python 3.15, scheduled for release in October: Entering the release candidate phase, only reviewed code changes which are clear bug fixes are allowed between this release candidate and the final release. [...] We strongly encourage maintainers of third-party Python projects to prepare their projects for 3.15 during this phase, and publish Python 3.15 wheels on PyPI to be ready for the final release of 3.15.0, and to help other projects do their own testing. Any binary wheels built against Python 3.15.0 release candidates will work with future versions of Python 3.15. Back in 2021 I found a bug in Python 3.10 by running my test suites against it... but I hadn't done this during the RC period, so that bug had already shipped! Since then I've always paid much closer attention to these RCs. The new RC isn't available for GitHub Actions just yet - keep an eye on actions/python-versions for that. For the moment though you can add this to a testing matrix: strategy: matrix: python-version: ["3.14", "3.15"] steps: - uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} allow-prereleases: true check-latest: true The allow-prereleases and check-latest flags mean that today this will test against RC1, and when RC2 lands it will automatically switch to that version (and then the stable version once that comes out.) Recent articles Understanding ChatGPT Work - 30th August 2026 Conceptual integrity and counting lines of code - 19th August 2026 Qwen 3.8 27B is excellent, but it defaults to wildly overthinking things - 16th August 2026 This is a link post by Simon Willison, posted on 1st September 2026. open-source 317 python 1,280 github-actions 71 Monthly briefing Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments. Pay me to send you less! Sponsor & subscribe Disclosures Colophon &copy; 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026