Stefan Behnel wrote: > Antoine Pitrou wrote: >> Stefan Behnel <stefan_ml <at> behnel.de> writes: >>> From a Cython perspective, I find the lack of efficient subclassing after >>> such a change particularly striking. >> what do you call "efficient subclassing"? if you look at the current >> implementation of unicode_subtype_new() in unicodeobject.c, it isn't very >> efficient (everything including the raw data buffer is allocated twice). > > That's something that may be optimised one day without affecting user code.
Coming back to this: Why is this done anyway? Can't the new instance of the unicode-subtype just steal the buffer pointer of the already allocated unicode object? Stefan _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com