Re: [PATCH]On branch swig-py3: accept both of bytes/str for inputchar * args
From: Yasuhito FUTATSUKI <futatuki_at_yf.bsdclub.org>
Date: Wed, 16 Jan 2019 01:18:11 +0900
On 1/14/19 6:30 PM, Yasuhito FUTATSUKI wrote:
>>> PyBytes: Sequence of byte values, e.g. "raw data"
Aha, both of those are partially correct and partially wrong.
PyStr_Check:
PyStr_UTF8:
and, PyUnicode_Check() is also provided for py2.
So, we can use code fragment like:
...
-- Yasuhito FUTATSUKIReceived on 2019-01-15 17:20:46 CET |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.