Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ register_class
Function
register_class
example_code/item_063.py:124–125 ·
view source on GitHub ↗
(target_class)
Source
from the content-addressed store, hash-verified
122
REGISTRY = {}
123
124
def
register_class(target_class):
125
REGISTRY[target_class.__name__] = target_class
126
127
def
deserialize(data):
128
params = json.loads(data)
Callers
3
item_063.py
File · 0.85
__new__
Method · 0.85
__init_subclass__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected