classification
Title: PEP 597: os.popen() and pipes uses locale encoding
Type: Stage:
Components: Library (Lib) Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: methane
Priority: normal Keywords:

Created on 2021-04-05 13:28 by methane, last changed 2021-04-05 13:38 by methane.

Messages (1)
msg390234 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2021-04-05 13:28
os.popen() and pipes module doesn't have `encoding` parameter. They use the default (locale) encoding implicitly.

As PEP 597, subprocess module won't emit EncodingWarning for PIPEs in Python 3.10.
Like that, we should just add `encoding=None` parameter but don't emit  EncodingWarning.
History
Date User Action Args
2021-04-05 13:38:13methanesettitle: os.popen() and pipes uses locale encoding -> PEP 597: os.popen() and pipes uses locale encoding
2021-04-05 13:28:22methanecreate