Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ send
Method
send
Lib/test/mock_socket.py:99–102 ·
view source on GitHub ↗
(self, data, flags=None)
Source
from the content-addressed store, hash-verified
97
return
len(data)
98
99
def
send(self, data, flags=None):
100
self.last = data
101
self.output.append(data)
102
return
len(data)
103
104
def
getpeername(self):
105
return
(
'peer-address'
,
'peer-port'
)
Callers
15
run_async
Method · 0.45
run_until_complete
Function · 0.45
test_async_gen_exception_10
Method · 0.45
sync_gen_wrapper
Method · 0.45
test_async_gen_exception_12
Method · 0.45
test_async_gen_asend_throw_concurrent_with_send
Method · 0.45
test_async_gen_athrow_throw_concurrent_with_send
Method · 0.45
test_async_gen_asend_throw_concurrent_with_throw
Method · 0.45
test_async_gen_athrow_throw_concurrent_with_throw
Method · 0.45
test_async_gen_3_arg_deprecation_warning
Method · 0.45
test_async_gen_asend_close_runtime_error
Method · 0.45
test_async_gen_athrow_close_runtime_error
Method · 0.45
Calls
1
append
Method · 0.45
Tested by
15
run_async
Method · 0.36
run_until_complete
Function · 0.36
test_async_gen_exception_10
Method · 0.36
sync_gen_wrapper
Method · 0.36
test_async_gen_exception_12
Method · 0.36
test_async_gen_asend_throw_concurrent_with_send
Method · 0.36
test_async_gen_athrow_throw_concurrent_with_send
Method · 0.36
test_async_gen_asend_throw_concurrent_with_throw
Method · 0.36
test_async_gen_athrow_throw_concurrent_with_throw
Method · 0.36
test_async_gen_3_arg_deprecation_warning
Method · 0.36
test_async_gen_asend_close_runtime_error
Method · 0.36
test_async_gen_athrow_close_runtime_error
Method · 0.36