[Python-bugs-list] [ python-Bugs-490399 ] ConfigParser and nonexistent file

noreply@sourceforge.net noreply@sourceforge.net
Fri, 07 Dec 2001 13:39:45 -0800


Bugs item #490399, was opened at 2001-12-07 13:04
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=490399&group_id=5470

Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Matthew Cowles (mdcowles)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: ConfigParser and nonexistent file

Initial Comment:
If you give ConfigParser's read() method the name of a
file that doesn't exist, you get back an empty
database.

That may be reasonable but since other modules from the
standard library generally don't work that way (dbm,
netrc), it may be worth emphasizing in the
documentation that that's what happens.

----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-12-07 13:39

Message:
Logged In: YES 
user_id=3066

No, that's not reasonable at all, but we can't change it
this late in the game.  ;-(

I've added an explanation of this and how it can be used
effectively in Doc/lib/libcfgparser.tex revisions 1.21 and
1.16.4.1.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=490399&group_id=5470