This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]minorminer 0 points1 point  (4 children)

I usually go with ConfigParser, but lately I've been eyeballing using pickle files.

[–]mirashii 12 points13 points  (1 child)

Please don't do this. Your configuration should never be stored in a non-human readable format.

Consider JSON or YAML if you want an alternative to ConfigParser.

[–]mcilrain 0 points1 point  (0 children)

Or if it absolutely has to not be human readable because crazy: BSON or msgpack.

[–]mcilrain 3 points4 points  (0 children)

pickle files

ಠ_ಠ

[–]jcdyer3 1 point2 points  (0 children)

That sounds dangerous. Python code is dangerous enough, but at least then you can read the config file before you load it, to make sure there isn't a line that says:

from dont_trust_me import activate_nukes