cpython/Misc/NEWS.d/next/Core and Builtins/2024-07-24-22-39-07.gh-issu...

5 lines
258 B
ReStructuredText
Raw Normal View History

Detection of writes to ``__debug__`` is moved from the compiler's codegen
stage to the symtable. This means that these errors are now detected even in
code that is optimized away before codegen (such as assertions with the
:option:`-O` command line option).