I'm trying to override dict class in a way that is compatible with standard dict class. How I can get access to parent dict attribute if I override __getitem__ method?
class CSJSON(dict): def __getitem__(self, Key : str): Key = Key + 'zzz' # sample of key modification for app use return(super()[Key]) Then I receive error:
'super' object is not subscriptable. If I use self[Key] then I get infinite recursive call of __getitem__.