[issue1943] improved allocation of PyUnicode objects

Antoine Pitrou report at bugs.python.org
Wed Jun 3 22:41:36 CEST 2009


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

> Still, I expect that a vanishingly small number of users will actually
> use that feature. 

Apart from the example Marc-André just posted (and which is a 0.0.1
proof of concept he apparently just wrote), the number of users is,
AFAICT, zero.
Unless there's some closed source extension which happens to extend
unicode as a C subtype.

Now, as for easing the subclassing of unicode in C, there are probably
several possibilities which range from devising a clever set of macros
to abusing the ob_size field for a tagged pointer. People who really
care should do a concrete proposal (and I don't know who these people
are, apart from Marc-André).

----------

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


More information about the Python-bugs-list mailing list