Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the cutting-edge parallel execution models introduced in Python 3.12 and 3.13 in this illuminating 39-minute talk by Anthony Shaw at PyCon US. Dive deep into the world of "sub interpreters" and "free-threading," understanding their potential to revolutionize parallel programming in Python. Learn how sub interpreters utilize a per-interpreter GIL to achieve faster parallel code execution than multiprocessing, and discover the implications of free-threading's optional GIL removal in Python 3.13. Compare these new models, addressing whether free-threading renders sub interpreters obsolete. Gain practical insights into implementing sub interpreters, their limitations, and the exciting possibilities of combining sub interpreters with free-threading. Witness a real-world application through the exploration of a multi-worker, multi-thread ASGI web server, complete with benchmarks against traditional web server architectures. Prepare to embark on an exhilarating journey into Python's parallel universe, leaving single-threaded constraints behind.