This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ConfigParser.read() should return list of files read
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: fdrake Nosy List: brett.cannon, fdrake, jbelmonte
Priority: low Keywords: patch

Created on 2003-01-30 18:53 by jbelmonte, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
cfgparser.1 jbelmonte, 2004-05-18 03:50 ConfigParser read patch (2 of 2: new file dist/src/Lib/test/cfgparser.1)
ConfigParser.patch jbelmonte, 2004-05-18 04:08 ConfigParser read patch (1 of 2: diff)
Messages (6)
msg42596 - (view) Author: John Belmonte (jbelmonte) * Date: 2003-01-30 18:53
Regarding ConfigParser.ConfigParser:

When debugging or when the user of a command line tool
requests verbose output, it is useful to report exactly
which files the configuration has been read from.  If
this is required, ConfigParser.read() is not useful.

Attached is a patch to make ConfigParser.read() return
a list of files it has read from.
msg42597 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2003-05-13 03:49
Logged In: YES 
user_id=357491

Since this has actual code I am making this a patch.
msg42598 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2004-05-18 00:41
Logged In: YES 
user_id=3066

This patch is missing tests and documentation updates.
msg42599 - (view) Author: John Belmonte (jbelmonte) * Date: 2004-05-18 03:48
Logged In: YES 
user_id=282299

Patch against Python HEAD, including documentation and tests is 
attached.  This is new territory to me, I don't claim to know what I'm 
doing. 
 
msg42600 - (view) Author: John Belmonte (jbelmonte) * Date: 2004-05-18 03:56
Logged In: YES 
user_id=282299

In the test code, I mispelled nonexistent. 
 
msg42601 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2004-05-18 04:25
Logged In: YES 
user_id=3066

Committed with an enhanced test as:

Doc/lib/libcfgparser.tex 1.38
Lib/ConfigParser.py 1.1.66
Lib/test/cfgparser.1 1.1
Lib/test/test_cfgparser.py 1.23
History
Date User Action Args
2022-04-10 16:06:19adminsetgithub: 37870
2003-01-30 18:53:52jbelmontecreate