Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ __set_name__
Method
__set_name__
example_code/item_060.py:207–208 ·
view source on GitHub ↗
(self, owner, name)
Source
from the content-addressed store, hash-verified
205
print(
"Example 14"
)
206
class
NamedGrade:
207
def
__set_name__(self, owner, name):
208
self.internal_name =
"_"
+ name
209
210
211
print(
"Example 15"
)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected