What would be the best way to define a config file and parse it using ConfigParser defining a bunch of objects initial values (aka: constructor values)
Example:
[Person-Objects]
Name: X
Age: 12
Profession: Student
Address: 555 Tortoise Drive
Name: Y
Age: 29
Profession: Programmer
Address: The moon
And then be able to parse it in Python so I can have something like:
People = []
for person in config:
People.append(person)
Person1 = People[0]
print Person1.Profession # Prints Student
You could do something like:
And then in your code: