[issue4555] Smelly exports (global symbols in python not prefixed with Py or _Py)
Christian Heimes
report at bugs.python.org
Mon Nov 26 16:15:51 CET 2012
Christian Heimes added the comment:
For Python 3.3 and 3.4 make smelly still lists two exported symbols.
asdl_int_seq_new
asdl_seq_new
Do we have to check the modules, too? Some of them like _ctypes and _decimal export a lot of symbols. Here is a small shell snippet for Makefile.
for MOD in `find $(srcdir)/build -name '*.s[ol]' ` ; do \
EXPORT=`nm -p $$MOD | sed -n "/ [TDB] /s/.* //p" | \
grep -E -v "^_*Py|^_init|^_fini" | sort -u`; \
if [ -n "$$EXPORT" ]; then \
echo $$MOD; \
echo $$EXPORT; \
fi \
done
----------
versions: +Python 3.3, Python 3.4 -Python 2.7, Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4555>
_______________________________________
More information about the Python-bugs-list
mailing list