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.RawConfigParser._read is unmanageably complex #117348
stdlibStandard Library Python modules in the Lib/ directorytriagedThe issue has been accepted as valid by a triager.type-featureA feature request or enhancement
This function is already unmanageably complex (and complexity checks disabled in the backport). Adding this single boolean parameter has expanded this function from ~120 lines to almost 160 and increases the mccabe cyclometric complexity of this function from 25 to 31 (where a target complexity is <10).
stdlibStandard Library Python modules in the Lib/ directorytriagedThe issue has been accepted as valid by a triager.type-featureA feature request or enhancement
Activity
jaraco commentedon Mar 28, 2024
I've begun work on refactoring the code in jaraco:feature/refactor-configparser-read-complexity. That branch currently is based on #117273.
gh-117348: Refactored RawConfigParser._read for similicity and compre…
Squashed commit of the following:
Squashed commit of the following:
gh-117348: restore import time performance of configparser (#117703)
pythongh-117348: Refactored RawConfigParser._read for similicity and …
pythongh-117348: restore import time performance of configparser (pyt…