
Python to Rust: A More Secure Future for the Programming Language
Two CPython developers have proposed adding the Rust programming language to the Python codebase . Emma Smith and a colleague have published a Preliminary Python Enhancement Proposal (Pre-PEP) justifying this step. Currently, Rust is only intended for writing optional extension modules, but it may become a required dependency in the future. The main reason for adopting Rust is to improve memory safety . The language prevents entire classes of compile-time errors: out-of-bounds array accesses, accesses to freed memory, and data conflicts in multithreaded code. This is especially relevant for Python, which uses free threads, where thread safety is paramount. The RustBelt project










