[issue1564] The set implementation should special-case PyUnicode instead of PyString

Christian Heimes report at bugs.python.org
Mon Dec 10 03:05:14 CET 2007


Christian Heimes added the comment:

The latest patch does *NOT* add new macros, functions or other stuff. I
simply replaced PyString_* with PyUnicode_* in setobject.c where
appropriate.

The only function I had to factor out is unicode_eq(). It's now in a new
file stringlib/eq.h which is included by setobject.c and dictobject.c.
It's the only way to share the function while keeping it static and
maybe inline.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1564>
__________________________________


More information about the Python-bugs-list mailing list