Berker Peksag added the comment:
Berker, could you possibly submit a Contributor Agreement Form?
Details at http://www.python.org/psf/contrib/
Jesús, I just emailed the contributor agreement.
Does your patch take care of all yield in the stdlib?
I found another one -- thanks to Serhiy's
Roundup Robot added the comment:
New changeset 70d49694786c by Andrew Svetlov in branch 'default':
Issue #16120: Use |yield from| in stdlib.
http://hg.python.org/cpython/rev/70d49694786c
--
___
Python tracker rep...@bugs.python.org
Andrew Svetlov added the comment:
Fixed, thanks.
Interesting, I didn't thought «yield from» can be applied to just list, not
generator. But it works.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16120
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16120
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 7d8868c13b95 by Andrew Svetlov in branch 'default':
Issue #16120: Use |yield from| in stdlib.
http://hg.python.org/cpython/rev/7d8868c13b95
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Andrew Svetlov added the comment:
Thanks, Berker.
--
assignee: - nobody
nosy: +asvetlov, nobody
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16120
Brett Cannon added the comment:
How are people finding these uses? Grepping around for yield and seeing if it
is in a 'for' loop? Or are people doing something more detailed like an AST
walk of every module in the stdlib looking for some pattern?
--
nosy: +brett.cannon
Serhiy Storchaka added the comment:
Personally I ran the following command:
find -type f -name '*.py' -exec egrep -n -A1 '\bfor\b.*\bin\b' '{}' + | egrep
-v 'yield +from' | egrep -B1 'yield +\w+(, *\w+)* *(#|$)'
I deliberately missed tests and lib2to3, because that's where the changes
New submission from Berker Peksag:
Related changesets:
- http://hg.python.org/cpython/rev/33a221662f39
- http://hg.python.org/cpython/rev/fb90e2ff95b7
--
components: Library (Lib)
files: yield-from_v1.diff
keywords: patch
messages: 171894
nosy: berker.peksag
priority: normal
severity:
Jesús Cea Avión added the comment:
3.3 is in bugfix mode only now. So, targeting 3.4.
I am neutral to this change. Showing use of new language idioms is nice, but
merging patches to 3.3 and 3.4 would be more difficult.
--
nosy: +jcea
versions: -Python 3.3
R. David Murray added the comment:
Thanks for the patch.
I think that seeing as we've already done a bunch, there's little reason not to
do more.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16120
Jesús Cea Avión added the comment:
Berker, could you possibly submit a Contributor Agreement Form? Details at
http://www.python.org/psf/contrib/
Does your patch take care of all yield in the stdlib?
--
___
Python tracker rep...@bugs.python.org
12 matches
Mail list logo