[pypy-commit] pypy space-iterator-improvements: a minor simplification
fijal
noreply at buildbot.pypy.org
Thu Sep 8 09:26:51 CEST 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: space-iterator-improvements
Changeset: r47158:31445f5be38e
Date: 2011-09-08 09:26 +0200
http://bitbucket.org/pypy/pypy/changeset/31445f5be38e/
Log: a minor simplification
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -758,7 +758,7 @@
# If we know the expected length we can preallocate.
if expected_length == -1:
try:
- lgt_estimate = self.int_w(self.len(w_iterable))
+ lgt_estimate = self.len_w(w_iterable)
except OperationError:
items = []
else:
More information about the pypy-commit
mailing list