[pypy-commit] pypy virtual-arguments: another one
fijal
noreply at buildbot.pypy.org
Wed Jul 18 17:26:57 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
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:
More information about the pypy-commit
mailing list