Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ getpeername
Method
getpeername
Lib/test/mock_socket.py:104–105 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
102
return
len(data)
103
104
def
getpeername(self):
105
return
(
'peer-address'
,
'peer-port'
)
106
107
def
close(self):
108
pass
Callers
10
_create
Method · 0.45
_check_connected
Method · 0.45
__repr__
Method · 0.45
_fallback_socketpair
Function · 0.45
makepasv
Method · 0.45
testLinuxAbstractNamespace
Method · 0.45
test_makepasv_issue43285_security_disabled
Method · 0.45
test_sock_accept
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
3
testLinuxAbstractNamespace
Method · 0.36
test_makepasv_issue43285_security_disabled
Method · 0.36
test_sock_accept
Method · 0.36