tonysimpson / nanomsg-python

nanomsg wrapper for python with multiple backends (CPython and ctypes) should support 2/3 and Pypy
MIT License
382 stars 85 forks source link

On Python 3, _nanomsg_cpy accepts strings and _nanomsg_ctypes accepts bytes #68

Open yoni1 opened 6 years ago

yoni1 commented 6 years ago

Example:

sock = Socket(REQ)
sock.bind('ipc://xyz')   # succeeds on cpy, fails on ctypes
sock.bind(b'ipc://xyz')  # fails on cpy, succeeds on ctypes
yoni1 commented 5 years ago

@JLee21 I don't understand how what you wrote pertains to the issue :)

JLee21 commented 5 years ago

@JLee21 I don't understand how what you wrote pertains to the issue :)

It doesn't. I removed it.