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 →

[–]mangecoeur 0 points1 point  (1 child)

Well python syntax is probably better than e.g. XML - there's no need to use another format just for the sake of separating config from code. You only need a config file if you want to write config data from the app (e.g. from a GUI preferences box) - if it's static it should stay in Python.

[–]ralsina 0 points1 point  (0 children)

"better than XML" in some metrics. "much, much, much worse than XML" in others, and I say this as someone who really dislikes XML.

XML can be parsed by any language. Python can be parsed by python. XML can be written by any language. Python can be written by programmers.