summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-04-26 01:58:53 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-04-26 01:58:53 (GMT)
commit89e3ee0ccff975f30b81b40dec1ee1d7e6b09f9c (patch)
tree08e3db42b3698bfa3bdb623925c93baf43e58b9b /Misc
parent93646981011b0795329888bf7d2d10097e899432 (diff)
downloadcpython-89e3ee0ccff975f30b81b40dec1ee1d7e6b09f9c.zip
cpython-89e3ee0ccff975f30b81b40dec1ee1d7e6b09f9c.tar.gz
cpython-89e3ee0ccff975f30b81b40dec1ee1d7e6b09f9c.tar.bz2
If Py_OptimizeFlag is false then always evaluate assert conditions, don't
test __debug__ at runtime. Closes SF patch #548833.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index a0ae51e..9363694 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -6,6 +6,10 @@ Type/class unification and new-style classes
Core and builtins
+- The assert statement no longer tests __debug__ at runtime. This means
+ that assert statements cannot be disabled by assigning a false value
+ to __debug__.
+
- A method zfill() was added to str and unicode, that fills a numeric
string to the left with zeros. For example,
"+123".zfill(6) -> "+00123".