[docs] [issue13604] update PEP 393 (match implementation)

Martin v. Löwis report at bugs.python.org
Fri Dec 16 06:41:31 CET 2011


Martin v. Löwis <martin at v.loewis.de> added the comment:

> Why is the utf-8 representation not cached when it is generated for
> ParseTuple et alia?

It is.

> When a string is created from a wchar_t array, who is responsible for
> releasing the original wchar_t array?

The caller.

> As I read it now, Python
> doesn't release the buffer, and the caller can't because maybe Python
> just pointed to it as memory shared with the canonical
> representation.

But Python won't; it will always make a copy for itself.

----------

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


More information about the docs mailing list