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.items() does not normalize non-string vars like get() #160684
ConfigParser.items(..., vars=...) handles non-string overrides differently from get(), although the documented optional arguments have the same meaning.
On the current main branch, get() returns '42', but items() raises AttributeError: 'int' object has no attribute 'find'. With 0 or False, items() instead returns an empty string. With raw=True, it returns the unconverted override.
Expected: normalize non-None override values to strings, consistently with get().
CPython versions tested on:
CPython main branch (7b12a415c85d88eeb22a806b2bc9472d471b8e60, 3.16.0a1+dev).
Activity
pythongh-160684: Normalize non-string vars in ConfigParser.items()