Python Forum
case transparent names in configpaser
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
case transparent names in configpaser
#5
i think this was over explained. it simply is:

the attribute of the configparser object named "optionxform" is where the configparser code gets a reference to the function it calls to change option names and section names to lower case. by replacing this reference, you can substitute your own function to make whatever change you want to have made (or none at all). your function should be idempotent as names could be passed through many times.

so, for my case i could just do myparser.optionxform = str.
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
case transparent names in configpaser - by Skaperen - Oct-01-2020, 08:35 PM
RE: case transparent names in configpaser - by Skaperen - Oct-02-2020, 01:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Display transparent image as overlay jds8086 0 1,272 Apr-17-2022, 11:43 AM
Last Post: jds8086
  Switch case or match case? Frankduc 9 4,617 Jan-20-2022, 01:56 PM
Last Post: Frankduc

Forum Jump:

User Panel Messages

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