[Python-Dev] unicode/string asymmetries
Martin v. Loewis
martin@v.loewis.de
Thu, 10 Jan 2002 08:32:20 +0100
> One minor misgiving is that this call will *always* copy the string,
> even if the internal coding of unicode objects is wchar_t. That's a
> bit of a nuisance, but we can try to fix that later.
Not sure what you mean by "later". Once this is being used, you cannot
fix it anymore. Extensions *will* have to call PyMem_Free, and when
they do so, changing the format specifier to do something better won't
be possible, anymore, since the call to PyMem_Free will be in the way.
Regards,
Martin