Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ get
Method
get
Lib/test/test_descr.py:1146–1147 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1144
def
__init__(self, value):
1145
self.__a = value
1146
def
get(self):
1147
return
self.__a
1148
x = C4(5)
1149
self.assertNotHasAttr(x,
'__dict__'
)
1150
self.assertNotHasAttr(x,
'__a'
)
Callers
6
__new__
Method · 0.45
__new__
Method · 0.45
test_slots
Method · 0.45
test_str_subclass_as_dict_key
Method · 0.45
__getstate__
Method · 0.45
__new__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected