]> granicus.if.org Git - python/commit
Add a warning for code like:
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 15 Mar 2008 22:03:18 +0000 (22:03 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 15 Mar 2008 22:03:18 +0000 (22:03 +0000)
commit400aedacc06ac33c2bb488f3f95a90f11e96e168
tree9a33f529ab9565563edad0cbca5da652e0a1f6c5
parentcd6bfab4101f8923aadfdf392b9d0615a9686064
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.
Misc/NEWS
Python/compile.c