mirror of
https://github.com/python/cpython.git
synced 2026-10-28 10:25:05 +08:00
A bare name or number followed by a token that cannot extend an expression now produces its AST node directly. This avoids the expression precedence chain for common arguments, assignments, and subscripts. Rules declare the hook with a fastpath flag. The Rule constructor exposes memo and fastpath attributes, and the C generator emits the hook call. Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
CPython Internals Documentation
The documentation in this folder is intended for CPython maintainers. It describes implementation details of CPython, which should not be assumed to be part of the Python language specification. These details can change between any two CPython versions and should not be assumed to hold for other implementations of the Python language.
The core dev team attempts to keep this documentation up to date. If it is not, please report that through the issue tracker.