Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pexpect/pexpect
/ isalive
Method
isalive
pexpect/socket_pexpect.py:83–85 ·
view source on GitHub ↗
Alive if the fileno is valid
(self)
Source
from the content-addressed store, hash-verified
81
self.closed = True
82
83
def
isalive(self):
84
""
" Alive if the fileno is valid "
""
85
return
self.socket.fileno() >= 0
86
87
def
send(self, s) -> int:
88
""
"Write to socket, return number of bytes written"
""
Callers
1
test_socket_isalive
Method · 0.95
Calls
1
fileno
Method · 0.80
Tested by
1
test_socket_isalive
Method · 0.76