Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ example1.py
File
example1.py
src/12/storing_thread_specific_state/example1.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
socket
import
socket, AF_INET, SOCK_STREAM
2
import
threading
3
4
class
LazyConnection:
Callers
nothing calls this directly
Calls
3
join
Method · 0.80
LazyConnection
Class · 0.70
start
Method · 0.45
Tested by
no test coverage detected