why use special config formats?
gangesmaster
tomerfiliba at gmail.com
Sat Mar 11 08:49:38 EST 2006
>> Why is the first uglier than the second?
YES THATS THE POINT. PYTHON CAN BE USED JUST LIKE A CONFIG FILE.
and if your users did
timeout = "300"
instead of
timeout = 300
then either your config parser must be uber-smart and all-knowing, and
check the types of key-value pairs, or your server would crash. either
way is bad, and i prefer crash-on-use then
know-everything-and-check-at-the-parser-level.
good night,
-tomer
More information about the Python-list
mailing list