[issue1943] improved allocation of PyUnicode objects
Amaury Forgeot d'Arc
report at bugs.python.org
Mon Apr 25 21:34:57 CEST 2011
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
I just found that the extension zope.i18nmessageid: http://pypi.python.org/pypi/zope.i18nmessageid subclasses unicode at the C level:
http://svn.zope.org/zope.i18nmessageid/trunk/src/zope/i18nmessageid/_zope_i18nmessageid_message.c?rev=120914&view=markup
Notably, the Message structure is defined this way:
typedef struct {
PyUnicodeObject base;
PyObject *domain;
PyObject *default_;
PyObject *mapping;
} Message;
How would such an extension type behave after the patch? Is there a workaround we can propose?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1943>
_______________________________________
More information about the Python-bugs-list
mailing list