Here is my code not working
class MyClass:
special_items = {}
def preload_items(self):
special_items['id'] = "properties"
NameError: global name 'special_items' is not defined
works
class MyClass:
special_items = {}
def preload_items(self):
MyClass.special_items['id'] = "properties"
Isn't it special_items a static member I can access anywhere in this class?