diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-15 22:03:18 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-03-15 22:03:18 (GMT) |
commit | 400aedacc06ac33c2bb488f3f95a90f11e96e168 (patch) | |
tree | 9a33f529ab9565563edad0cbca5da652e0a1f6c5 /Misc/NEWS | |
parent | cd6bfab4101f8923aadfdf392b9d0615a9686064 (diff) | |
download | cpython-400aedacc06ac33c2bb488f3f95a90f11e96e168.zip cpython-400aedacc06ac33c2bb488f3f95a90f11e96e168.tar.gz cpython-400aedacc06ac33c2bb488f3f95a90f11e96e168.tar.bz2 |
Add a warning for code like:
assert (0, 'message')
An empty tuple does not create a warning. While questionable usage:
assert (), 'message'
should not display a warning. Tested manually.
The warning message could be improved. Feel free to update it.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -12,6 +12,8 @@ What's New in Python 2.6 alpha 2? Core and builtins ----------------- +- Add a warning when asserting a non-empty tuple which is always true. + - Issue #2179: speed up with statement execution by storing the exit method on the stack instead of in a temporary variable (patch by Jeffrey Yaskin) |