[pypy-issue] [issue1240] Different evaluation of generation on list.extend() method from CPython
Hong Minhee
tracker at bugs.pypy.org
Mon Aug 20 14:39:58 CEST 2012
New submission from Hong Minhee <minhee at dahlia.kr>:
PyPy's list.extend() evaluates whole steps of a given generator at a time while
CPython evaluates each step by step. Attached a test code as well.
Test result on CPython 2.7.2:
5 0
6 1
7 2
8 3
9 4
10 5
11 6
12 7
13 8
14 9
Test result on PyPy 1.9:
5 0
5 1
5 2
5 3
5 4
5 5
5 6
5 7
5 8
5 9
----------
files: list_extend_generator.py
messages: 4661
nosy: pypy-issue
priority: bug
release: 1.9
status: unread
title: Different evaluation of generation on list.extend() method from CPython
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1240>
________________________________________
More information about the pypy-issue
mailing list