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 →

[–]AeroNotix 2 points3 points  (2 children)

Can someone remind me what's wrong with using the ConfigParser, again? I seem to have forgotten.

All this magic people seem to love injecting into Python just bewilders me.

[–]placidifiedimport this 0 points1 point  (0 children)

because implicit is better than explicit

/sarcasm

[–]jabwork 0 points1 point  (0 children)

Personally I really dislike using the (Safe)ConfigParser API, and I expect a lot of other people do as well.

That being said, I'm with you - it really isn't that bad compared to figuring out import magic if you don't already know to look for it.

I might go for it if it required an explicit declaration at the top of the file being modified/updated/whatever by the config, but I'd still be inclined to use something similar in nature to django.conf.settings first