Skip to content Skip to sidebar Skip to footer
Showing posts with the label Configparser

Configparser Getting Value From Ini File With Section And Subsection As Shown Below

I have a following type of INI file [section1][subsection1] port=989 [section1][subsection2] someth… Read more Configparser Getting Value From Ini File With Section And Subsection As Shown Below

Config Parser: Choosing Name And Value Delimiter

Let's say I have one test.ini file with the following lines: [A] name1 [0,1]=0 name2 a:b:c / A:… Read more Config Parser: Choosing Name And Value Delimiter

Closing File Opened By ConfigParser

I have the following: config = ConfigParser() config.read('connections.cfg') sections = con… Read more Closing File Opened By ConfigParser