Python 3.14.0 has released its alpha5 version, with the biggest highlight being the integration of a new tail-call-based interpreter that can boost code performance by up to 30%, with an average speed optimization of 9-15%! (Related: merge request gh-128563: New tail-call interpreter)
TL;DR
Python 3.14 gains a new interpreter with speedups of up to 30%, Django's official MongoDB backend enters preview, and PyO3 shows Rust-powered extension in action.
Articles & Tutorials
× 12How can you combine Rust's high performance with Python's flexibility to develop efficient and secure applications? This article introduces the PyO3 framework and Maturin tool, demonstrating through examples how to integrate Rust with Python.
A practical tutorial about Python uv, demonstrating how to develop a CLI application with uv and implement dependency installation management.
Before PEP-517 in 2017, setuptools held a monopoly position, but now other build tools are becoming popular. Based on the top 8000 most downloaded projects on PyPI, this article analyzes the popularity and development trends of different build tools.
Python's folium is an interactive mapping library that can integrate with libraries like geopandas for geospatial analysis. This article shows how to integrate this library into Node.js projects, leveraging the advantages of both programming language ecosystems.
Django officially released tools for MongoDB integration, supporting Django models, forms, validation and authentication, compatible with Django admin interface, and supporting migrations and database version management.
Which countries widely use Django to develop government websites? The author extracted 1000 government websites from 20 million websites, covering 88 countries, listing the top 10 countries using Django for government website development, and sharing some representative national government websites. (Why is China's data 0?)
The author categorizes inheritance into three types: code sharing (harmful), interface implementation (optional but useful), and specialization (necessary), analyzing the pros and cons of each type. Generally speaking, "composition over inheritance" is preferred, but sometimes reasonable use of inheritance can lead to better code.
How can you achieve concurrent execution without using async/await? This article introduces using generator's yield mechanism to simulate asynchronous operations, achieving coroutine-like effects through manual task switching.
This PEP proposes establishing a Python Packaging Council to manage and guide Python packaging standards, tools, and implementations. The document includes committee functions, member numbers and selection methods, conflict of interest handling, etc., aiming to provide a clear governance framework for the Python packaging ecosystem.
This article provides an in-depth introduction to regular expressions through Python's re module, covering practical code examples from basic to advanced levels, as well as some tips for optimizing regex performance.
The author shares 7 papers that have had profound impact on modern computer science: Turing's "Computable Numbers", Shannon's "Mathematical Theory of Communication", Codd's "Relational Model", Cook's "Complexity of Theorem Proving", Cerf and Kahn's "Network Interconnection Protocol", Berners-Lee's "Information Management Proposal", and Brin and Page's "Large-Scale Hypertextual Web Search Engine".
Projects & Resources
× 12A CSS selector library for use with Beautiful Soup 4, designed to provide selection, matching, and filtering functionality using modern CSS selectors.
A one-stop data application development and management platform covering end-to-end processes of data ingestion, ETL, and visualization, quickly connecting CSV, JSON, Parquet, or SQL databases. (1.3K stars)
Tell the LLM how to sort using natural language, then let the large model complete the sorting.
A FastAPI network security middleware that protects against various security threats.
Based on PyQt6 and QtWebEngine development, create GUI applications using Python + HTML/CSS.
Adds OCR text layers to scanned PDF files, making them searchable or copy-pasteable while preserving the exact resolution of original embedded images. Uses Tesseract OCR engine to recognize over 100 languages. (18K stars)
A Python project template with core components including uv, Ruff, Mypy, Pytest, Loguru, Docker, and Github Actions. Uses Just instead of Make for command execution.
A sorting algorithm implemented using a new data structure called Rainbow, with O(n log n) time complexity, faster than Python's default sorted().
Use simple decorators on functions and classes that need documentation generation, and let LLM automatically generate project documentation for you.
A large model-based video subtitle processing assistant supporting full-process handling of speech recognition, subtitle segmentation, optimization, and translation. Supports network calls and local offline mode, with practical features like VAD, vocal separation, word-level timestamps, and batch subtitles. (4.4K stars)
Provides analysis of PG database behavior, identifies schema-related issues, and can correct them. Features user-friendly interface, SQL formatting with Sqlfluff, OpenAI assistant, and local LLM support. (1K stars)
Looks up MIME types based on file extensions, more comprehensive and accurate than the mimetypes library, without accessing and parsing files.
Discussions & Issues
× 2A Reddit post about Python's new interpreter, posted by the feature's author.
Discussion on V2EX about Python 3.14's new interpreter performance improvements.