User Profile
Collapse
-
It worked like a charm. Many thanks ++ -
Storing Instances of Objects in a Nested Dictionary
Hi People,
I am getting frustrated with the way Python handles its dictionary.
I have a scenarion where a class A is stored in a dictionary. The class A contains a dictionary B as a field as below
Code:class B: bName = "" class A: aName = "" b = {} def AddB(self, bKey, bVal): newB = B()
No activity results to display
Show More
Leave a comment: