bpo-43510: Implement PEP 597 opt-in EncodingWarning. by methane · Pull Request #19481 · python/cpython
The warning is raised only in dev mode. pathlib uses the new `io.text_encoding` helper function. Other libraries will follow.
methane
changed the title
PEP 597: Raise a warning when encoding is omitted
PEP 597: Emit EncodingWarning when encoding is omitted
methane
changed the title
PEP 597: Emit EncodingWarning when encoding is omitted
bpo-43510: Add encoding="locale" and optional EncodingWarning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters