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

Method get_private_field

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

Source from the content-addressed store, hash-verified

96
97 class MyChildObject(MyParentObject):
98 def get_private_field(self):
99 return self.__private_field
100
101 baz = MyChildObject()
102 baz.get_private_field()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected