bpo-43510: Implement PEP 597 opt-in EncodingWarning. by methane · Pull Request #19481 · python/cpython (original) (raw)

@methane

The warning is raised only in dev mode.

pathlib uses the new io.text_encoding helper function. Other libraries will follow.

@methane

@methane

@methane

@methane methane changed the titlePEP 597: Raise a warning when encoding is omitted PEP 597: Emit EncodingWarning when encoding is omitted

Jan 30, 2021

@methane

@methane

@methane

@methane

@methane

@methane

@methane

@methane

@methane

@methane

@methane

@methane

@methane

sys.flags.encoding_warning -> warn_default_encoding -X warn_encoding -> warn_default_encoding PYTHONWARNENCODING -> PYTHONWARNDEFAULTENCODING

@methane methane changed the titlePEP 597: Emit EncodingWarning when encoding is omitted bpo-43510: Add encoding="locale" and optional EncodingWarning

Mar 16, 2021

@methane

@methane @CAM-Gerlach

Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM

@methane @CAM-Gerlach

Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM

@methane @CAM-Gerlach

Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM

@methane

@methane

@methane

@methane

@methane

CAM-Gerlach

@methane @CAM-Gerlach

Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM

methane

@methane @CAM-Gerlach

Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM

methane

@methane @CAM-Gerlach

Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM

CAM-Gerlach

@methane @CAM-Gerlach

Co-authored-by: CAM Gerlach CAM.Gerlach@Gerlach.CAM

chris-allan added a commit to chris-allan/omero-web that referenced this pull request

Oct 10, 2022

@chris-allan

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 }})