gh-74929: PEP 667 general docs update by ncoghlan · Pull Request #119201 · python/cpython (original) (raw)
I realised that I was using the Aus/UK spelling of optimised
, while the Python docs generally use US spelling (there were 300+ instances of optimized
vs less than 20 uses of optimised
, including the additions in this PR).
I also added an inline note to the glossary entry pointing out that most optimizations are applied to all scopes, there's just a subset that are only valid when the local and nonlocal variables names are known at compile time.
To avoid more conflicts with sprint changes, I will merge this version once CI is happy.