[issue43712] PEP 597: fileinput uses locale encoding

2021-04-03 Thread Inada Naoki


New submission from Inada Naoki :

fileinput.input() and fileinput.FileInput() don't have `encoding` parameter.

User can specify encoding by `openhook=hook_encoded("utf-8")`. But we can not 
utilize PEP 597, and `encoding="utf-8"` is more user friendly.

Additionally, `hook_compressed` doesn't have the encoding parameter. User need 
to use binary mode or locale encoding.

--
components: Library (Lib)
messages: 390121
nosy: methane
priority: normal
severity: normal
status: open
title: PEP 597: fileinput uses locale encoding
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43712] PEP 597: fileinput uses locale encoding

2021-04-07 Thread Inada Naoki


Change by Inada Naoki :


--
keywords: +patch
pull_requests: +24007
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/25272

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43712] PEP 597: fileinput uses locale encoding

2021-04-13 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset 333d10cbb53dd5f28d76f659a49bf0735f8509d8 by Inada Naoki in branch 
'master':
bpo-43712 : fileinput: Add encoding parameter (GH-25272)
https://github.com/python/cpython/commit/333d10cbb53dd5f28d76f659a49bf0735f8509d8


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43712] PEP 597: fileinput uses locale encoding

2021-04-13 Thread Inada Naoki


Change by Inada Naoki :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com