I found a solution. replace bDict.clear() with bDict = {}
thanks,
John
--
https://mail.python.org/mailman/listinfo/python-list
I am new to Python, and just learned that Python list is just a container of
object reference.
In the example below, bDict needs to be just a temporary object, constructed
at run time and then be added to aList. At the end, aList will contain n
objects.
Is there a clean way to do
I have a configuration file with repeating sections, for example,
[INSTANCE]
Name=a
[INSTANCE]
Name=b
I hope I can use ConfigParser to read the file and store the configuration
settings in arrays.
Is that possible?
Thanks a lot.
John
--
https://mail.python.org/mailman/listinfo/python-li