Rethinking intern() for python

Stephen J. Turnbull stephen at xemacs.org
Wed Apr 8 14:23:10 BST 2009


James Henstridge writes:

 > When allocating string objects, it allocates "sizeof(PyStringObject) +
 > size" bytes.

Ah, I forgot about that possibility.  There are several ways (not
limited to your suggestion of "offset(data)+size") to get around that.

I wonder why Python doesn't use one.



More information about the bazaar mailing list