[issue11462] Peephole creates duplicate and unused constants

Antoine Pitrou report at bugs.python.org
Fri Mar 11 18:23:52 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> > _PyCode_AddObj() should be added to Include/code.h
> Should it be declared as PyAPI_FUNC too? This will make it
> unnecessarily exported (when patch in Issue11410 is merged), so I
> wanted to avoid that.

I guess we don't usually try to optimize that, but you can omit
PyAPI_FUNC indeed.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11462>
_______________________________________


More information about the Python-bugs-list mailing list