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
{{ message }}
Repository navigation
_socket: socket.sethostname() reports a failed buffer export as an OS error, raising SystemError #161665
socket.sethostname() accepts a bytes subclass, and if getting a buffer from that object fails, the error is not reported. Instead SystemError is returned to caller.
SystemError: <class 'OSError'> returned a result with an exception set
Traceback (most recent call last): File "min.py", line 23, in <module> socket.sethostname(B(b"h")) ~~~~~~~~~~~~~~~~~~^^^^^^^^^SystemError: <class 'OSError'> returned a result with an exception set
Activity