Oct-01-2020, 05:32 PM
configparser would have been easier to work with if it had used the dictionary API. i'm not saying not to do what it does, now, but to also do the dictionary API. that is, you would be able to get an option by doing
why not abstract that way?
conf[secname][optname]
instead of conf.get(secname,optname
). that might not seem like much, but you could do if optname in conf[secname]:
instead of if conf.has_option(secname,optname):
. would that have been so hard to do?why not abstract that way?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.