MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / get_private_field

Method get_private_field

example_code/item_055.py:56–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54 self.__private_field = 10
55
56 def get_private_field(self):
57 return self.__private_field
58
59
60print("Example 2")

Callers 1

item_055.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected