Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56174:94ae6389689e
Date: 2012-07-18 17:26 +0200
http://bitbucket.org/pypy/pypy/changeset/94ae6389689e/

Log:    another one

diff --git a/pypy/objspace/std/listobject.py b/pypy/objspace/std/listobject.py
--- a/pypy/objspace/std/listobject.py
+++ b/pypy/objspace/std/listobject.py
@@ -556,6 +556,8 @@
         start = l[0]
         step = l[1]
         length  = l[2]
+        if length < 0:
+            length = 0
         if wrap_items:
             r = [None] * length
         else:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to