[pypy-svn] r78377 - pypy/trunk/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Wed Oct 27 19:57:18 CEST 2010
Author: arigo
Date: Wed Oct 27 19:57:16 2010
New Revision: 78377
Modified:
pypy/trunk/pypy/objspace/std/listobject.py
Log:
Document this assert (thanks amaury).
Modified: pypy/trunk/pypy/objspace/std/listobject.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/listobject.py (original)
+++ pypy/trunk/pypy/objspace/std/listobject.py Wed Oct 27 19:57:16 2010
@@ -283,7 +283,7 @@
elif start >= 0:
del items[start:start+delta]
else:
- assert delta==0
+ assert delta==0 # start<0 is only possible with slicelength==0
elif len2 != slicelength: # No resize for extended slices
raise operationerrfmt(space.w_ValueError, "attempt to "
"assign sequence of size %d to extended slice of size %d",
More information about the Pypy-commit
mailing list