bpo-43510: Implement PEP 597 opt-in EncodingWarning. by methane · Pull Request #19481 · python/cpython (original) (raw)
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
sys.flags.encoding_warning -> warn_default_encoding -X warn_encoding -> warn_default_encoding PYTHONWARNENCODING -> PYTHONWARNDEFAULTENCODING
methane changed the title
PEP 597: Emit EncodingWarning when encoding is omitted bpo-43510: Add encoding="locale" and optional EncodingWarning
Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM
Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM
Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM
Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM
Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM
Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM
Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM
chris-allan added a commit to chris-allan/omero-web that referenced this pull request
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
[ Show hidden characters]({{ revealButtonHref }})