Skip to content

ConfigParser to save with order #42773

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

Closed
facundobatista opened this issue Jan 7, 2006 · 4 comments
Closed

ConfigParser to save with order #42773

facundobatista opened this issue Jan 7, 2006 · 4 comments
Labels
stdlib Python modules in the Lib dir

Comments

@facundobatista
Copy link
Member

BPO 1399309
Nosy @facundobatista, @pfmoore
Files
  • ConfigParser.diff: ConfigParser.py diff file
  • 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 = None
    closed_at = <Date 2007-03-07.13:55:53.000>
    created_at = <Date 2006-01-07.18:11:11.000>
    labels = ['library']
    title = 'ConfigParser to save with order'
    updated_at = <Date 2007-03-07.13:55:53.000>
    user = 'https://github.com/facundobatista'

    bugs.python.org fields:

    activity = <Date 2007-03-07.13:55:53.000>
    actor = 'facundobatista'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2006-01-07.18:11:11.000>
    creator = 'facundobatista'
    dependencies = []
    files = ['6943']
    hgrepos = []
    issue_num = 1399309
    keywords = ['patch']
    message_count = 4.0
    messages = ['49273', '49274', '49275', '49276']
    nosy_count = 3.0
    nosy_names = ['facundobatista', 'paul.moore', 'anadelonbrin']
    pr_nums = []
    priority = 'normal'
    resolution = 'rejected'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1399309'
    versions = ['Python 2.5']

    @facundobatista
    Copy link
    Member Author

    ConfigParser saves the data in a not-predefined order.
    This is because it keeps, internally, the information
    in dictionaries.

    This patch orders the info to be saved in the file
    through the ConfigParser write() method.

    This patch does not let the user to specify the order.

    @facundobatista facundobatista added the stdlib Python modules in the Lib dir label Jan 7, 2006
    @facundobatista facundobatista added the stdlib Python modules in the Lib dir label Jan 7, 2006
    @anadelonbrin
    Copy link
    Mannequin

    anadelonbrin mannequin commented Jan 12, 2006

    Logged In: YES
    user_id=552329

    Note that the patch is backwards (new old instead of old new).

    IMO the 'surgical' editing that has been proposed many times
    on python-dev and c.l.p would be superior to this. IOW, the
    original order of the file should be retained (any new
    entries could be added alphabetically, as here).

    @pfmoore
    Copy link
    Member

    pfmoore commented Mar 7, 2007

    This patch should probably be rejected now, as patch 1371075 (which seems to be a superset of this) has been accepted.

    @facundobatista
    Copy link
    Member Author

    Closing it, because after the patch 1371075, you can control ConfigParser behaviour regarding order.

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

    No branches or pull requests

    2 participants