[issue4555] Smelly exports (global symbols in python not prefixed with Py or _Py)

Dave Malcolm report at bugs.python.org
Tue Jul 20 20:04:23 CEST 2010


Dave Malcolm <dmalcolm at redhat.com> added the comment:

Patch to py3k which adds the "_Py" prefix to the four listed symbols.

With this, the output from "make smelly" is clean (odorless, perhaps?).

However, adding _Py does seem to go against this comment in Include/asdl.h:
/* It would be nice if the code generated by asdl_c.py was completely
   independent of Python, but it is a goal the requires too much work
   at this stage.  So, for example, I'll represent identifiers as
   interned Python strings.
*/

----------
Added file: http://bugs.python.org/file18094/py3k-add-_Py-prefix-to-avoid-smelliness.patch

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


More information about the Python-bugs-list mailing list