Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ B
Class
B
Lib/test/test_ssl.py:4007–4009 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4005
self.assertEqual(bytes(buf)[:4], b
"data"
)
4006
4007
class
B(bytearray):
4008
def
__len__(self):
4009
1/0
4010
s.send(b
"data"
)
4011
buf = B(6)
4012
self.assertEqual(s.recv_into(buf), 4)
Callers
1
test_recv_into_buffer_protocol_len
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_recv_into_buffer_protocol_len
Method · 0.56