MCPcopy Create free account
hub / github.com/bterwijn/memory_graph / __init__

Method __init__

src/different_methods.py:8–11  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6 unique_value = 0
7
8 def __init__(self):
9 print("__init__ called, initialize instance variables of object")
10 self.my_instance_variable = [] # create instance variable
11 My_Class.count += 1 # also change class variable
12
13 def my_instance_method(self):
14 print("my_instance_method called, access to instance variables via 'self'")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected