Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ func
Function
func
recipes/Python/201294_Dynamic_Classes/recipe-201294.py:123–124 ·
view source on GitHub ↗
(cls)
Source
from the content-addressed store, hash-verified
121
class
C(object):
122
pass
123
def
func(cls):
124
return
"<<%s>>"
% cls.__name__
125
126
addClassMethod(C, func,
'className'
)
127
Callers
5
watch_directories
Function · 0.50
reDict
Function · 0.50
recipe-222061.py
File · 0.50
__setattr__
Method · 0.50
curried
Function · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected