Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ MyObject
Class
MyObject
example_code/item_055.py:51–57 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
49
50
print(
"Example 1"
)
51
class
MyObject:
52
def
__init__(self):
53
self.public_field = 5
54
self.__private_field = 10
55
56
def
get_private_field(self):
57
return
self.__private_field
58
59
60
print(
"Example 2"
)
Callers
1
item_055.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected