Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigParser.read() should return list of files read #37870

Closed
belm0 mannequin opened this issue Jan 30, 2003 · 6 comments
Closed

ConfigParser.read() should return list of files read #37870

belm0 mannequin opened this issue Jan 30, 2003 · 6 comments
Assignees

Comments

@belm0
Copy link
Mannequin

belm0 mannequin commented Jan 30, 2003

BPO 677651
Nosy @freddrake, @brettcannon, @belm0
Files
  • cfgparser.1: ConfigParser read patch (2 of 2: new file dist/src/Lib/test/cfgparser.1)
  • ConfigParser.patch: ConfigParser read patch (1 of 2: diff)
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/freddrake'
    closed_at = <Date 2004-05-18.04:25:49.000>
    created_at = <Date 2003-01-30.18:53:52.000>
    labels = []
    title = 'ConfigParser.read() should return list of files read'
    updated_at = <Date 2004-05-18.04:25:49.000>
    user = 'https://github.com/belm0'

    bugs.python.org fields:

    activity = <Date 2004-05-18.04:25:49.000>
    actor = 'fdrake'
    assignee = 'fdrake'
    closed = True
    closed_date = None
    closer = None
    components = ['None']
    creation = <Date 2003-01-30.18:53:52.000>
    creator = 'jbelmonte'
    dependencies = []
    files = ['4973', '4974']
    hgrepos = []
    issue_num = 677651
    keywords = ['patch']
    message_count = 6.0
    messages = ['42596', '42597', '42598', '42599', '42600', '42601']
    nosy_count = 3.0
    nosy_names = ['fdrake', 'brett.cannon', 'jbelmonte']
    pr_nums = []
    priority = 'low'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue677651'
    versions = []

    @belm0
    Copy link
    Mannequin Author

    belm0 mannequin commented Jan 30, 2003

    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.

    @belm0 belm0 mannequin closed this as completed Jan 30, 2003
    @belm0 belm0 mannequin assigned freddrake Jan 30, 2003
    @belm0 belm0 mannequin closed this as completed Jan 30, 2003
    @belm0 belm0 mannequin assigned freddrake Jan 30, 2003
    @brettcannon
    Copy link
    Member

    Logged In: YES
    user_id=357491

    Since this has actual code I am making this a patch.

    @freddrake
    Copy link
    Member

    Logged In: YES
    user_id=3066

    This patch is missing tests and documentation updates.

    @belm0
    Copy link
    Mannequin Author

    belm0 mannequin commented May 18, 2004

    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.

    @belm0
    Copy link
    Mannequin Author

    belm0 mannequin commented May 18, 2004

    Logged In: YES
    user_id=282299

    In the test code, I mispelled nonexistent.

    @freddrake
    Copy link
    Member

    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

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants