> 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