[pypy-svn] pypy default: no point in not using a more natural syntax anymore
hakanardo
commits-noreply at bitbucket.org
Thu Apr 14 19:31:27 CEST 2011
Author: Hakan Ardo <hakan at debian.org>
Branch:
Changeset: r43356:c2af8a38dca3
Date: 2011-04-14 19:30 +0200
http://bitbucket.org/pypy/pypy/changeset/c2af8a38dca3/
Log: no point in not using a more natural syntax anymore
diff --git a/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py b/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py
--- a/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py
@@ -1339,7 +1339,7 @@
return self
def __getitem__(self, i):
- if i < 0 or i >= self.__len__():
+ if i < 0 or i >= len(self):
return 0
return array.__getitem__(self, i) # ID: get
#
More information about the Pypy-commit
mailing list