]> granicus.if.org Git - python/commit
Fix SF buf #480096: Assign to __debug__ still allowed
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 9 Nov 2001 19:50:08 +0000 (19:50 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 9 Nov 2001 19:50:08 +0000 (19:50 +0000)
commit778e26546284f956cbf8a85a8b7a0bf28c194410
treec81d319729f7e05c96fb85d939edb8636240ca99
parent734c7fb13165e9c299c2522f06da5b31a50af941
Fix SF buf #480096: Assign to __debug__ still allowed

Easy enough to catch assignment in the compiler.  The perverse user
can still change the value of __debug__, but that may be the least he
can do.
Lib/test/test_compile.py
Python/compile.c