]> granicus.if.org Git - python/commitdiff
Fix SF buf #480096: Assign to __debug__ still allowed
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 9 Nov 2001 20:37:13 +0000 (20:37 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 9 Nov 2001 20:37:13 +0000 (20:37 +0000)
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/output/test_compile

index de3335276b515f408de2f10fb58b8fb92ea08075..303b745908cc8e0417f9941d96691b200292b690 100644 (file)
@@ -1,5 +1,4 @@
 test_compile
-testing complex args
 1 2
 1 2
 3 4