Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ recv
Method
recv
Lib/test/mock_socket.py:52–54 ·
view source on GitHub ↗
(self, bufsize, flags=None)
Source
from the content-addressed store, hash-verified
50
self.lines.append(line)
51
52
def
recv(self, bufsize, flags=None):
53
data = self.lines.pop(0) + b
'\r\n'
54
return
data
55
56
def
fileno(self):
57
return
0
Callers
15
handle
Method · 0.45
_wait_for_ready_signal
Function · 0.45
_wait_for_signal
Function · 0.45
_wait_for_n_signals
Function · 0.45
test_subinterpreter_stack_trace
Method · 0.45
test_multiple_subinterpreters_with_threads
Method · 0.45
test_thread_status_all_mode_detection
Method · 0.45
_run_exception_test_process
Method · 0.45
_run_scenario_process
Method · 0.45
_run_remote_exec_test
Method · 0.45
test_read_write_zero
Method · 0.45
ssl_io_loop
Method · 0.45
Calls
1
pop
Method · 0.45
Tested by
15
_wait_for_signal
Function · 0.36
_wait_for_n_signals
Function · 0.36
test_subinterpreter_stack_trace
Method · 0.36
test_multiple_subinterpreters_with_threads
Method · 0.36
test_thread_status_all_mode_detection
Method · 0.36
_run_exception_test_process
Method · 0.36
_run_scenario_process
Method · 0.36
_run_remote_exec_test
Method · 0.36
test_read_write_zero
Method · 0.36
ssl_io_loop
Method · 0.36
read
Method · 0.36
handle_read
Method · 0.36