Re: Persist objects in a LIST

2015-11-14 Thread John Zhao
I found a solution. replace bDict.clear() with bDict = {} thanks, John -- https://mail.python.org/mailman/listinfo/python-list

Persist objects in a LIST

2015-11-14 Thread John Zhao
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

can ConfigParser deal with repeating section header?

2015-11-12 Thread John Zhao
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