[issue21938] Py_XDECREF statement in gen_iternext()

2014-07-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Good point, thanks :) -- nosy: +pitrou resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue21938] Py_XDECREF statement in gen_iternext()

2014-07-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5cfa919609a0 by Antoine Pitrou in branch 'default': Issue #21938: simplify gen_iternext() http://hg.python.org/cpython/rev/5cfa919609a0 -- nosy: +python-dev ___ Python tracker

[issue21938] Py_XDECREF statement in gen_iternext()

2014-07-08 Thread Xavier de Gaye
New submission from Xavier de Gaye: The Py_XDECREF statement in gen_iternext() at Objects/genobject.c is not needed since val is NULL (may be optimized out by the compiler). Actually, the whole function could be written as: return gen_send_ex(gen, NULL, 0); -- components: Interpret