Best way to bring a list in from a config file

This is the place for queries that don't fit in any of the other categories.

Re: Best way to bring a list in from a config file

Postby pnelsonsr » Sun Feb 02, 2014 4:28 am

micseydel wrote:I never write JSON by hand. I create a Python structure and use json.dumps(). You can complain to a user if they violate the syntax, or even place a comment in the config file letting them know.

It sounds like ast is best for your situation though. I didn't know about it before this thread, very cool.


Yeah it really is cool and easy to read!
pnelsonsr
 
Posts: 28
Joined: Thu Dec 12, 2013 12:48 am

Previous

Return to General Coding Help

Who is online

Users browsing this forum: mdovey, micseydel and 5 guests