A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-January/019321.html below:

[Python-Dev] unicode/string asymmetries

[Python-Dev] unicode/string asymmetries [Python-Dev] unicode/string asymmetriesMartin v. Loewis martin@v.loewis.de
Wed, 9 Jan 2002 22:14:26 +0100
> So, I would like PyArg_Parse/Py_BuildValue formats that are
> symmetric to "s", "s#" and "z" but that return wchar_t strings and
> that work with both UnicodeObjects and StringObjects.

Unfortunately, that is quite difficult. Python does not guarantee that
the internal representation of Unicode strings uses wchar_t, so such a
conversion definitely requires explicit memory management. This is
unlike plain strings, which do guarantee that the internal
representation is char[].

Regards,
Martin



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4