#ResearchTopic of the day: #noGIL #freethreaded design in π-thon 3.14

#python314 #πthon

Giampaolo Rodola

Nathan Goldbaum is part of the Quansight Labs team that's been doing a *huge* amount of work getting the ecosystem ready for free-threaded Python.

Here he shares some of his favourite resources to learn about free-threaded Python:

https://github.com/ilanschnell/bitarray/pull/245#issuecomment-3452970622

#FreeThreaded #Python #FreeThreadedPython

MAINT: store default endianness state in a context variable by ngoldbaum · Pull Request #245 · ilanschnell/bitarray

Towards supporting free-threaded Python, see #234 (comment) I haven't benchmarked this but I also don't see any benchmarks in the repo. Do you think I should be worrying about any performan...

GitHub
Ah, yes, the #future of #Python web services is GIL-free, and it's totally *groundbreaking* #news that will revolutionize our lives... in 2025 🚀. But don't worry, you can continue to pretend this #tech babble is relevant today while you wait for Python 3.14 to solve all problems with its magical #freethreaded fairy dust 🧚‍♂️✨.
https://blog.baro.dev/p/the-future-of-python-web-services-looks-gil-free #GIL #Free #Groundbreaking #HackerNews #ngated
The future of Python web services looks GIL-free | Fluxus by gi0baro

Web frameworks benchmarks on CPython 3.14t looks promising

Fluxus by gi0baro

- https://discuss.python.org/t/python-3-14-0-final-is-here/104210 (Python 3.14.0 (final) is here!)

- https://docs.python.org/3.14/whatsnew/3.14.html (What’s new in Python 3.14 by Adam Turner and Hugo van Kemenade)

- https://docs.python.org/3.14/whatsnew/changelog.html#changelog (Python 3.14 Changelog)

- https://astral.sh/blog/python-3.14 (Astral ready for Python 3.14)

```
uv self update
uv python upgrade 3.14
uvx [email protected]
uvx [email protected]
```

#Annotations

- https://docs.python.org/3/whatsnew/3.14.html#pep-649-pep-749-deferred-evaluation-of-annotations
- https://discuss.python.org/t/python-3-14-0-final-is-here/104210#:~:text=the%20evaluation%20of%20annotations%20is%20now%20deferred

Instead, annotations are stored in special-purpose annotate functions and **evaluated
only when necessary** (except if from __future__ import annotations is used).

# PEP 768 Python 3.14 **Safe external debugger interface, a zero-overhead external debugger interface for CPython

- https://docs.python.org/3.14/whatsnew/3.14.html#pep-768-safe-external-debugger-interface
- https://discuss.python.org/t/python-3-14-0-final-is-here/104210#:~:text=A%20zero%2Doverhead%20external%20debugger%20interface%20for%20CPython

Python 3.14 introduces a zero-overhead debugging interface that allows debuggers and profilers to safely attach to running Python processes without stopping or restarting them.

# RFC9562 Python 3.14 **UUID versions 6-8 are now supported by the uuid module**

- https://docs.python.org/3/whatsnew/3.14.html#uuid
- https://discuss.python.org/t/python-3-14-0-final-is-here/104210#:~:text=UUID%20versions%206%2D8%20are%20now%20supported%20by%20the%20uuid%20module

# zstandard

- https://peps.python.org/pep-0784/ (Adding Zstandard to the standard library)
- https://docs.python.org/3/whatsnew/3.14.html#whatsnew314-zstandard
- https://discuss.python.org/t/python-3-14-0-final-is-here/104210#:~:text=compression.zstd%20providing%20support%20for%20the%20zstandard%20compression%20algorithm.

# A new command line interface with asyncio introspection capabilities: python -m asyncio ps PID

- https://docs.python.org/3/whatsnew/3.14.html#asyncio-introspection-capabilities
- https://discuss.python.org/t/python-3-14-0-final-is-here/104210#:~:text=inspect%20running%20Python%20processes

# Multiple interpreters in the standard library

- https://peps.python.org/pep-0734/ (Multiple Interpreters in the Stdlib)
- https://docs.python.org/3.14/whatsnew/3.14.html#pep-734-multiple-interpreters-in-the-standard-library
- https://discuss.python.org/t/python-3-14-0-final-is-here/104210#:~:text=Multiple%20interpreters%20in%20the%20stdlib

- https://gdevops.frama.io/python/versions/3.14.0/3.14.0.html

# Python #Python314 #TemplateString #ZStandard #RemoteDebugging #MultipleInterpreters #FreeThreaded #UUID7 #asyncio #parallelism #CSP #ActorModel

🧵 Technical deep dive starting now!

"Free Threaded Django"
Breaking down the GIL barriers! Explore how Django is evolving for Python's free-threaded future and what this means for performance 🚀

#DjangoConUS #FreeThreaded #Django #Python #GIL #Performance #Threading

As a final preparation for the #PyO3 workshop tomorrow at #EuroPython, I have updated some exercises to ensure thread-safety. We are ready for #FreeThreaded #Python! Make sure you have the setup ready: https://github.com/Cheukting/py03_101

Just released: Python 3.14.0 beta 3! 🚀🐍

🥧 All the good stuff of b2 but also:

🥧 Free-threaded Python is officially supported! (PEP 779)

🥧 Subinterpreters in the stdlib! (PEP 734)

Do you maintain a Python package? Please test 3.14.

If you find a bug now, we can fix it before October, which helps everyone. And you might find some places in your code to update as well, which helps you.

https://discuss.python.org/t/python-3-14-0-beta-3-is-here/95843?u=hugovk

#Python #CPython #Python314 #release #PEP779 #PEP734 #FreeThreaded #subinterpreters

Python 3.14.0 beta 3 is here!

It’s 3.14 beta 3! https://www.python.org/downloads/release/python-3140b3/ This is a beta preview of Python 3.14 Python 3.14 is still in development. This release, 3.14.0b3, is the third of four planned beta releases. 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. We strongly encourage maintainers of third-party Python projects to test with 3.14 during the beta...

Discussions on Python.org

@sirosen @ancoghlan @brianokken

Yes, let's test our projects with free-threaded in CI! Here's how to do it with GitHub Actions:

https://hugovk.dev/blog/2025/free-threaded-python-on-github-actions/

And see https://py-free-threading.github.io for more guides.

#PEP779 #Python #Python314
#FreeThreaded #CI #GitHub #GitHubActions

Free-threaded Python on GitHub Actions

Hugo van Kemenade

Exciting news!

PEP 779 ("Criteria for supported status for free-threaded Python") has been accepted, which means free-threaded Python is now a supported build!

We'll drop the "experimental" label already in 3.14 beta 3, due on Tuesday!

Details:
https://discuss.python.org/t/pep-779-criteria-for-supported-status-for-free-threaded-python/84319/123

#PEP779 #Python #Python314 #FreeThreaded

PEP 779: Criteria for supported status for free-threaded Python

Hi Thomas, The Steering Council (SC) approves PEP 779, with the effect of removing the “experimental” tag from the free-threaded build of Python 3.14. Along with this, the SC considers the following requirements must be addressed during Phase II. Meeting these ensures that free-threading support can mature into a safe and scalable default in future versions of Python. This is not an exhaustive list, and any other previous requirements should still be met. C API/ABI compatibility and Stable ...

Discussions on Python.org