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
Standard Python signals an error when the specified size is nonzero and bigger than the buffer, which this code doesn't do (yet):
>>> b = bytearray(7)
>>> s = socket.socket()
>>> s.recv_into(b, 8)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: buffer too small for requested bytes```