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
I ran into this while working on #8954. In that PR I was converting the bind/connect argument to a bytearray (because this let me avoid an allocation) but it didn't work.
The text was updated successfully, but these errors were encountered:
Where does the bytearray come from? It should be a string. We don't do many things that CPython allows. Only the reverse needs to be true. (That CPython is ok with what we do.)
In the draft ssl-anything PR I arrange to just pass the original objects down, instead of unparsing them and rebuilding them. So except for compatiblity with a weird nook of cpython this is moot for me.
CircuitPython version
Code/REPL
Behavior
In standard Python, the bytearray is accepted (and the connection fails, because there's no listener):
Similar for bind():
vs
Description
No response
Additional information
I ran into this while working on #8954. In that PR I was converting the bind/connect argument to a bytearray (because this let me avoid an allocation) but it didn't work.
The text was updated successfully, but these errors were encountered: