You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the 'buf'-related signature types are returned after being run through ffi.string(). This returns a bytes object (equivalent to str in Python 2). However, it'd be useful to have more control. There are probably 3 common cases:
Always bytes
Version-specific str (equivalent to bytes on py2, unicode on py3)
Always unicode
We could introduce new names, e.g. strbuf, but that may be overly cluttered and annoying. A better solution may be to introduce a new flag for this setting, which will also allow us to do it on a per-library, per-object, and per-function level.
The text was updated successfully, but these errors were encountered:
Currently, the
'buf'
-related signature types are returned after being run throughffi.string()
. This returns abytes
object (equivalent tostr
in Python 2). However, it'd be useful to have more control. There are probably 3 common cases:bytes
str
(equivalent tobytes
on py2,unicode
on py3)unicode
We could introduce new names, e.g.
strbuf
, but that may be overly cluttered and annoying. A better solution may be to introduce a new flag for this setting, which will also allow us to do it on a per-library, per-object, and per-function level.The text was updated successfully, but these errors were encountered: