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: Interpreter Core
messages: 222556
nosy: xdegaye
priority: normal
severity: normal
status: open
title: Py_XDECREF statement in gen_iternext()
type: enhancement
versions: Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21938>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to