Python Forum
opinion: configparser should have been better
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
opinion: configparser should have been better
#1
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 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.
Reply


Messages In This Thread
opinion: configparser should have been better - by Skaperen - Oct-01-2020, 05:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Upgrade to python 3 opinion hokie1999 5 2,847 May-11-2021, 06:42 PM
Last Post: hokie1999
  what is your opinion of this syntactic sugar idea? Skaperen 8 4,451 Nov-28-2018, 03:15 AM
Last Post: Skaperen
  Guido van Rossum does not care about the opinion of the community. Kirill_Dubovitskiy 12 8,119 Sep-14-2018, 06:33 PM
Last Post: micseydel
  [split] My opinion about OS choice for programming wavic 12 12,029 Oct-07-2016, 10:08 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020