Uh oh!
There was an error while loading. Please reload this page.
[configparser] Add several deprecated attributes - #14487
Conversation
"Remove" PR for deprecation message: python/cpython#92503
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
brianschubert
commented
Jul 28, 2025
The same PR also removed a deprecated parameter from ParsingError, which isn't reflected in the stubs yet. Might as well add that as well while we're here! |
donbarbos
commented
Jul 28, 2025
Thanks, again it seems to me that it is worth adding some removed deprecated methods since they reflected some capabilities of ifsys.version_info< (3, 12):
@property@deprecated("Removed in Python 3.12. Use `source` instead.")deffilename(self) ->str: ...
@filename.setter@deprecated("Removed in Python 3.12. Use `source` instead.")deffilename(self, value: str) ->None: ...
@deprecated("Removed in Python 3.12. Use `parser.read_file()` instead.")defreadfp(self, fp: Iterable[str], filename: str|None=None) ->None: ... |
This comment has been minimized.
This comment has been minimized.
brianschubert
commented
Jul 28, 2025
Looks like they were documented APIs, so adding them sounds reasonable to me |
SafeConfigParserdonbarbos
commented
Jul 29, 2025
Indeed, I didn't notice that they were documented |
This comment has been minimized.
This comment has been minimized.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Uh oh!
There was an error while loading. Please reload this page.
SafeConfigParserParsingErrorfilename parameterParsingErrormethodsRawConfigParser.readfpmethod