You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ConfigParser replaces unnamed section on every read call #127096
Due to network issues, I am unable to clone the cpython repository. The following are for reference:
file: configparser.py
class: class RawConfigParser(MutableMapping)
method: def _handle_rest(self, st, line, fpname)
modify to:
Activity
sobolevn commentedon Nov 21, 2024
Please, provide the contents of
first.iniandsecond.ini, so it would be easier to reproduce the issue.PalmtopTiger commentedon Nov 21, 2024
Done
ggggjlgl commentedon Nov 24, 2024
Due to network issues, I am unable to clone the cpython repository. The following are for reference:
file: configparser.py
class: class RawConfigParser(MutableMapping)
method: def _handle_rest(self, st, line, fpname)
modify to:
Agent-Hellboy commentedon Nov 24, 2024
I am working on adding something in configparser, I can take a look and add a PR if you want.
PalmtopTiger commentedon Nov 24, 2024
I created the PR myself. Thanks to everyone for your help!
ggggjlgl commentedon Nov 25, 2024
Thank you. PalmtopTiger created the PR.
gh-127096: Do not recreate unnamed section on every read in ConfigPar…
[3.13] pythongh-127096: Do not recreate unnamed section on every read…
jaraco commentedon Feb 2, 2025
I've set the backport to 3.13 to merge automatically. I believe that closes this issue.
[3.13] gh-127096: Do not recreate unnamed section on every read in Co…