[pypy-commit] pypy default: Fish the list item directly, read_item() cannot be called during rtyping
amauryfa
noreply at buildbot.pypy.org
Sat Feb 4 22:09:42 CET 2012
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r52106:85f2c70631d9
Date: 2012-02-04 22:09 +0100
http://bitbucket.org/pypy/pypy/changeset/85f2c70631d9/
Log: Fish the list item directly, read_item() cannot be called during
rtyping
diff --git a/pypy/annotation/model.py b/pypy/annotation/model.py
--- a/pypy/annotation/model.py
+++ b/pypy/annotation/model.py
@@ -742,7 +742,7 @@
def remove_no_nul(s_obj):
if isinstance(s_obj, SomeList):
- s_item = s_obj.listdef.read_item()
+ s_item = s_obj.listdef.listitem.s_value
new_s_item = remove_no_nul(s_item)
from pypy.annotation.listdef import ListDef
if s_item is not new_s_item:
More information about the pypy-commit
mailing list