[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-03-30 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23852 pull_request: https://github.com/python/cpython/pull/25108 ___ Python tracker <https://bugs.python.org/issue43

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-03-31 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23853 pull_request: https://github.com/python/cpython/pull/25109 ___ Python tracker <https://bugs.python.org/issue43

[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-03-31 Thread Inada Naoki
Inada Naoki added the comment: New changeset cfa176685a5e788bafc7749d7a93f43ea3e4de9f by Inada Naoki in branch 'master': Revert "bpo-43510: PEP 597: Accept `encoding="locale"` in binary mode (GH-25103)" (#25108) https://gi

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-03-31 Thread Inada Naoki
New submission from Inada Naoki : New changeset 55f31be44b7e3ee24a67134f99543512a9b630e4 by Inada Naoki in branch 'master': bpo-43651: Fix EncodingWarning in test_file and test_file_eintr (GH-25109) https://github.com/python/cpython/commit/55f31be44b7e3ee24a67134f995435

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-03-31 Thread Inada Naoki
Inada Naoki added the comment: New changeset 58cffba1874f0e9a9731b25a3e11a011bfbbf95f by Inada Naoki in branch 'master': bpo-43651: Fix EncodingWarning in test_io (GH-25097) https://github.com/python/cpython/commit/58cffba1874f0e9a9731b25a3e11a0

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-03-31 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23873 pull_request: https://github.com/python/cpython/pull/25126 ___ Python tracker <https://bugs.python.org/issue43

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-03-31 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23874 pull_request: https://github.com/python/cpython/pull/25127 ___ Python tracker <https://bugs.python.org/issue43

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-03-31 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23875 pull_request: https://github.com/python/cpython/pull/25128 ___ Python tracker <https://bugs.python.org/issue43

[issue43670] Typo in 3.10 changelog

2021-03-31 Thread Inada Naoki
Inada Naoki added the comment: Thank you for reporting. This typo is fixed in GH-43574. -- nosy: +methane resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 036fc7de24cc961d65b60fba266104009feb2797 by Inada Naoki in branch 'master': bpo-43651: Fix EncodingWarning in test_warnings (GH-25126) https://github.com/python/cpython/commit/036fc7de24cc961d65b60fba266104

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset c0ec4486dc7dd70fea39d1473ac9a9ac568378fe by Inada Naoki in branch 'master': bpo-43651: Fix EncodingWarning in lib2to3/pgen2/pgen.py (GH-25127) https://github.com/python/cpython/commit/c0ec4486dc7dd70fea39d1473ac9a9

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 80017752ba938852d53f9d83a404b4ecd9ff2baa by Inada Naoki in branch 'master': bpo-43651: Fix test_compileall with PEP 597 (GH-25128) https://github.com/python/cpython/commit/80017752ba938852d53f9d83a404b4

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23889 pull_request: https://github.com/python/cpython/pull/25142 ___ Python tracker <https://bugs.python.org/issue43

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 8bbfeb3330c10d52274bb85fce59ae614f0500bf by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25142) https://github.com/python/cpython/commit/8bbfeb3330c10d52274bb85fce59ae

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-01 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23892 pull_request: https://github.com/python/cpython/pull/25145 ___ Python tracker <https://bugs.python.org/issue43

[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-04-02 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23893 pull_request: https://github.com/python/cpython/pull/25146 ___ Python tracker <https://bugs.python.org/issue43

[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-04-02 Thread Inada Naoki
Inada Naoki added the comment: New changeset bec8c787ec72d73b39011bde3f3a93e9bb1174b7 by Inada Naoki in branch 'master': bpo-43510: Fix emitting EncodingWarning from _io module. (GH-25146) https://github.com/python/cpython/commit/bec8c787ec72d73b39011bde3f3a93

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-03 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23905 pull_request: https://github.com/python/cpython/pull/25158 ___ Python tracker <https://bugs.python.org/issue43

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-03 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23906 pull_request: https://github.com/python/cpython/pull/25159 ___ Python tracker <https://bugs.python.org/issue43

[issue43711] cgi.log() uses default encoding

2021-04-03 Thread Inada Naoki
New submission from Inada Naoki : See cgi.initlog(): https://github.com/python/cpython/blob/b2a91e0c9ee18b50cc86b21211c2258520a9f5d0/Lib/cgi.py#L82 ``` logfp = open(logfile, "a") ``` This feature is not documented but can be used like this. ``` import cgi cgi.logfile=

[issue43711] cgi.log() uses locale encoding

2021-04-03 Thread Inada Naoki
Change by Inada Naoki : -- title: cgi.log() uses default encoding -> cgi.log() uses locale encoding ___ Python tracker <https://bugs.python.org/issu

[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,

[issue41139] cgi uses the locale encoding for log files

2021-04-03 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane ___ Python tracker <https://bugs.python.org/issue41139> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41139] cgi uses the locale encoding for log files

2021-04-03 Thread Inada Naoki
Inada Naoki added the comment: +1 for removing. But let's emit DeprecationWarning for now, and remove it later. -- components: +Library (Lib) versions: -Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/is

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-03 Thread Inada Naoki
Inada Naoki added the comment: New changeset 35715d1e72b7e15e337087863c75af447199e0fb by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145) https://github.com/python/cpython/commit/35715d1e72b7e15e337087863c75af

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-03 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23912 pull_request: https://github.com/python/cpython/pull/25171 ___ Python tracker <https://bugs.python.org/issue43

[issue43722] PEP 597: FileCookieJar uses locale encoding

2021-04-03 Thread Inada Naoki
New submission from Inada Naoki : During fixing EncodingWarning in stdlibs, I found FileCookieJar, LWPCookieJar, and MozillaCookieJar use locale encoding for cookie files. I don't know much about cookie file format. If locale encoding is right encoding, we can just use `encoding=&q

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-04 Thread Inada Naoki
Inada Naoki added the comment: New changeset 3caea9adda7f79ab5d4c5a1905ca62b44e0b3b7b by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25171) https://github.com/python/cpython/commit/3caea9adda7f79ab5d4c5a1905ca62

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-04 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23923 pull_request: https://github.com/python/cpython/pull/25181 ___ Python tracker <https://bugs.python.org/issue43

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-04 Thread Inada Naoki
Inada Naoki added the comment: New changeset de522a89e42a35da9275169b113460c3581e32d7 by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix test_email (GH-25158) https://github.com/python/cpython/commit/de522a89e42a35da9275169b113460

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-04 Thread Inada Naoki
Inada Naoki added the comment: New changeset ee952b5c7355cb64179ca9bb77b13e7738132d3d by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in test_filecmp (GH-25159) https://github.com/python/cpython/commit/ee952b5c7355cb64179ca9bb77b13e

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-04 Thread Inada Naoki
Inada Naoki added the comment: New changeset c8e5eb904e12010d2302364e1037c24a30f5e241 by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25181) https://github.com/python/cpython/commit/c8e5eb904e12010d2302364e1037c2

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-04 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23931 pull_request: https://github.com/python/cpython/pull/25189 ___ Python tracker <https://bugs.python.org/issue43

[issue43731] PEP 597: logging.basicConfig() uses locale encoding.

2021-04-04 Thread Inada Naoki
New submission from Inada Naoki : logging.basicConfig() uses locale encoding when reading config file. We need to add `encoding=None` parameter and `encoding=io.text_encoding(encoding)` in it. -- components: Library (Lib) messages: 390223 nosy: methane priority: normal severity

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-04 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23932 pull_request: https://github.com/python/cpython/pull/25190 ___ Python tracker <https://bugs.python.org/issue43

[issue43732] PEP 597: mailcap uses locale encoding

2021-04-05 Thread Inada Naoki
New submission from Inada Naoki : mailcap.getcaps() uses locale encoding. https://github.com/python/cpython/blob/c8e5eb904e12010d2302364e1037c24a30f5e241/Lib/mailcap.py#L33 As my understanding, RFC 1524 uses only ASCII characters. Can we change the encoding to ASCII or UTF-8

[issue43733] PEP 597: netrc uses locale encoding.

2021-04-05 Thread Inada Naoki
New submission from Inada Naoki : https://github.com/python/cpython/blob/c8e5eb904e12010d2302364e1037c24a30f5e241/Lib/netrc.py#L29 Can we change the encoding="utf-8" and errors="replace"? IMHO, comments are source of UnicodeDecodeError. So we can open file with binary mo

[issue43734] PEP 597: pdb uses locale encoding for pdbrc file

2021-04-05 Thread Inada Naoki
New submission from Inada Naoki : I think we should use UTF-8 for pdbrc files because the default encoding of Python source files is UTF-8. -- components: Library (Lib) messages: 390233 nosy: methane priority: normal severity: normal status: open title: PEP 597: pdb uses locale

[issue43735] os.popen() and pipes uses locale encoding

2021-04-05 Thread Inada Naoki
New submission from Inada Naoki : 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` par

[issue43735] PEP 597: os.popen() and pipes uses locale encoding

2021-04-05 Thread Inada Naoki
Change by Inada Naoki : -- title: os.popen() and pipes uses locale encoding -> PEP 597: os.popen() and pipes uses locale encoding ___ Python tracker <https://bugs.python.org/issu

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-05 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23934 pull_request: https://github.com/python/cpython/pull/25192 ___ Python tracker <https://bugs.python.org/issue43

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-05 Thread Inada Naoki
Inada Naoki added the comment: New changeset 3d4af4a876e679431c6a3751667ded63cc6f66c1 by Inada Naoki in branch 'master': bpo-43651: Fix EncodingWarning in sysconfig (GH-25192) https://github.com/python/cpython/commit/3d4af4a876e679431c6a3751667ded

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-05 Thread Inada Naoki
Inada Naoki added the comment: New changeset fb78692f2ad5ee4747f13a73943fbf134b637669 by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25189) https://github.com/python/cpython/commit/fb78692f2ad5ee4747f13a73943fbf

[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-04-05 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-05 Thread Inada Naoki
Inada Naoki added the comment: New changeset 4663e5f39e9f872dcd69545f293e832d5855d084 by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25190) https://github.com/python/cpython/commit/4663e5f39e9f872dcd69545f293e83

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-05 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23943 pull_request: https://github.com/python/cpython/pull/25204 ___ Python tracker <https://bugs.python.org/issue43

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-06 Thread Inada Naoki
Inada Naoki added the comment: New changeset 489c36920e94bfb4988b6f965bd0aafdfaff0d4f by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix pdeps used locale encoding (GH-25204) https://github.com/python/cpython/commit/489c36920e94bfb4988b6f965bd0aa

[issue5758] fileinput.hook_compressed returning bytes from gz file

2021-04-07 Thread Inada Naoki
Change by Inada Naoki : -- versions: +Python 3.10 -Python 3.2, Python 3.3 ___ Python tracker <https://bugs.python.org/issue5758> ___ ___ Python-bugs-list mailin

[issue36865] FileInput does not allow 'rt' mode, but all its existing delegates do

2021-04-07 Thread Inada Naoki
Inada Naoki added the comment: I don't think we should support "text for regular file but binary for compressed file" mode in FileInput. So no need to add 't'. We should just fix #5758. -- nosy: +methane resolution: -> duplicate stage: patch review ->

[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 <https://bugs.python.org/issu

[issue5758] fileinput.hook_compressed returning bytes from gz file

2021-04-07 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane nosy_count: 5.0 -> 6.0 pull_requests: +24008 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25272 ___ Python tracker <https://bugs.python.org/

[issue43731] PEP 597: logging.fileConfig() uses locale encoding.

2021-04-07 Thread Inada Naoki
Inada Naoki added the comment: s/basicConfig/fileConfig/ basicConfig() is fixed by fb7869. -- title: PEP 597: logging.basicConfig() uses locale encoding. -> PEP 597: logging.fileConfig() uses locale encoding. ___ Python tracker <

[issue43731] PEP 597: logging.fileConfig() uses locale encoding.

2021-04-07 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +24009 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25273 ___ Python tracker <https://bugs.python.org/issu

[issue43777] Remove description of "pip search" command from tutorial

2021-04-08 Thread Inada Naoki
Inada Naoki added the comment: You are misreading the error message. > RuntimeError: PyPI's XMLRPC API is currently disabled due to unmanageable > load and will be deprecated in the near future. See > https://status.python.org/ for more information. This error message says

[issue43682] Make static methods created by @staticmethod callable

2021-04-08 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane ___ Python tracker <https://bugs.python.org/issue43682> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43785] bz2 performance issue.

2021-04-08 Thread Inada Naoki
New submission from Inada Naoki : The original issue is reported here. https://discuss.python.org/t/non-optimal-bz2-reading-speed/6869 1. Only BZ2File uses RLock() lzma and gzip don't use RLock(). It adds significant performance overhead. When I removed `with self._lock:`, decompression

[issue43785] bz2 performance issue.

2021-04-08 Thread Inada Naoki
Change by Inada Naoki : -- type: -> performance Added file: https://bugs.python.org/file49949/create.py ___ Python tracker <https://bugs.python.org/issu

[issue43785] bz2 performance issue.

2021-04-08 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +24031 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25299 ___ Python tracker <https://bugs.python.org/issu

[issue43785] Remove RLock from BZ2File

2021-04-09 Thread Inada Naoki
Inada Naoki added the comment: I will create a separated issue for __iter__, because it is same to gzip and lzma. -- title: bz2 performance issue. -> Remove RLock from BZ2File ___ Python tracker <https://bugs.python.org/issu

[issue43787] Optimize BZ2File, GzipFile, and LZMAFile __iter__ method.

2021-04-09 Thread Inada Naoki
New submission from Inada Naoki : __iter__ method of BZ2File, GzipFile, and LZMAFile is IOBase.__iter__. It calls `readline()` for each line. Since `readline()` is defined as Python function, it is slower than C iterator. Adding custom __iter__ method that delegates to underlying buffer

[issue43785] Remove RLock from BZ2File

2021-04-11 Thread Inada Naoki
Inada Naoki added the comment: New changeset cc2ffcdfd78df3a18edae60df81b2f1b044b1634 by Inada Naoki in branch 'master': bpo-43785: Improve BZ2File performance by removing RLock (GH-25299) https://github.com/python/cpython/commit/cc2ffcdfd78df3a18edae60df81b2f

[issue43785] Remove RLock from BZ2File

2021-04-11 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24086 pull_request: https://github.com/python/cpython/pull/25351 ___ Python tracker <https://bugs.python.org/issue43

[issue43787] Optimize BZ2File, GzipFile, and LZMAFile __iter__ method.

2021-04-11 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +24088 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25353 ___ Python tracker <https://bugs.python.org/issu

[issue43787] Optimize BZ2File, GzipFile, and LZMAFile __iter__ method.

2021-04-12 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43787] Optimize BZ2File, GzipFile, and LZMAFile __iter__ method.

2021-04-12 Thread Inada Naoki
Inada Naoki added the comment: New changeset d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e by Inada Naoki in branch 'master': bpo-43787: Add __iter__ to GzipFile, BZ2File, and LZMAFile (GH-25353) https://github.com/python/cpython/commit/d2a8e69c2c605fbaa3656a5f99aa8d

[issue43731] PEP 597: logging.fileConfig() uses locale encoding.

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43731] PEP 597: logging.fileConfig() uses locale encoding.

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: New changeset c2b7a66b91cdb96fbfdb160f96797208ddc5e436 by Inada Naoki in branch 'master': bpo-43731: Add an `encoding` parameter to logging.fileConfig() (GH-25273) https://github.com/python/cpython/commit/c2b7a66b91cdb96fbfdb160f967972

[issue43731] PEP 597: logging.fileConfig() uses locale encoding.

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: If we use `encoding="locale"` by default, EncodingWarning will be not be emitted even when user omit `encoding` option. -- ___ Python tracker <https://bugs.python.o

[issue43785] Remove RLock from BZ2File

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43785] Remove RLock from BZ2File

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: New changeset 695d47b51e3e197de5448a1eb2f618bef6d59ac8 by Inada Naoki in branch 'master': bpo-43785: Update bz2 document (GH-25351) https://github.com/python/cpython/commit/695d47b51e3e197de5448a1eb2f618

[issue43731] PEP 597: logging.fileConfig() uses locale encoding.

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: > Ah, so you want to emit an EncodingWarning when fileConfig(filename) is > called without specifying an encoding, right? Yes, but only when the user uses `PYTHONWARNDEFAULTENCODING`. I already added `export PYTHONWARNDEFAULTENCODING=1` in `.bashrc` in

[issue43682] Make static methods created by @staticmethod callable

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: Strictly speaking, adding any method is "potential" breaking change because hasattr(obj, "new_method") become from False to True. And since Python is dynamic language, any change is "potential" breaking change. But we don't t

[issue43680] Remove undocumented io.OpenWrapper and _pyio.OpenWrapper

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24128 pull_request: https://github.com/python/cpython/pull/25395 ___ Python tracker <https://bugs.python.org/issue43

[issue43777] Remove description of "pip search" command from tutorial

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: New changeset 133705b85cc25d1e6684d32f8943ca288fadfda0 by Bob Kline in branch 'master': bpo-43777: Drop description of "pip search" command from tutorial (GH-25287) https://github.com/python/cpython/commit/133705b85cc25d1e6684

[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/333d10cbb53dd5f28d76f659a49bf0

[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 <https://bugs.python.or

[issue5758] fileinput.hook_compressed returning bytes from gz file

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.o

[issue42152] Use PyDict_Contains() and PyDict_SetDefault() instead of PyDict_GetItemWithError()

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: May I close this issue? -- ___ Python tracker <https://bugs.python.org/issue42152> ___ ___ Python-bugs-list mailing list Unsub

[issue41098] Deprecating PyUnicodeEncodeError_Create

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue42578] Add tip when encountering UnicodeDecode/EncodeError in open()

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue42578> ___ ___

[issue43733] PEP 597: netrc uses locale encoding.

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +xiang.zhang ___ Python tracker <https://bugs.python.org/issue43733> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43777] Remove description of "pip search" command from tutorial

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43733] PEP 597: netrc uses locale encoding.

2021-04-14 Thread Inada Naoki
Inada Naoki added the comment: I googled "netrc UnicodeDecodeError". It is very rare, but I found two cases. * https://stackoverflow.com/questions/54748450/macos-python-3-netrc-operations-end-up-with-unicodedecodeerror This user uses macOS and Python tried UTF-8. But .netrc was

[issue41323] Perform "peephole" optimization directly on control-flow graph.

2021-04-14 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane nosy_count: 4.0 -> 5.0 pull_requests: +24150 pull_request: https://github.com/python/cpython/pull/25419 ___ Python tracker <https://bugs.python.org/issu

[issue41323] Perform "peephole" optimization directly on control-flow graph.

2021-04-15 Thread Inada Naoki
Inada Naoki added the comment: New changeset 8a232c7b17a2e41ae14d8bb7937ddfea69301dce by Inada Naoki in branch 'master': bpo-41323: compiler: Reuse tuple in constant tuple folding (GH-25419) https://github.com/python/cpython/commit/8a232c7b17a2e41ae14d8bb7937ddf

[issue43817] Add typing.get_annotations()

2021-04-16 Thread Inada Naoki
Inada Naoki added the comment: Should this feature implemented in typing module? How about inspect module? Additionally, how about adding `get_annotation_str()`, which returns str always? Some use cases (e.g. `help(f)`) need just string. I want to skip eval() in it. -- nosy: +methane

[issue30800] zlib.compressobj took too much memory on window

2021-04-21 Thread Inada Naoki
Change by Inada Naoki : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue30800> ___ ___ Python-bugs-list

[issue28724] Add method send_io, recv_io to the socket module.

2021-04-21 Thread Inada Naoki
Inada Naoki added the comment: New changeset 660592f67c0d825b06eb4a38ccc04b34a1f01f00 by Saiyang Gou in branch 'master': bpo-28724: Doc: Move socket.send_fds and socket.recv_fds docs to right section (GH-22608) https://github.com/python/cpyt

[issue28724] Add method send_io, recv_io to the socket module.

2021-04-21 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.7 ___ Python tracker <https://bugs.python.or

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2021-04-22 Thread Inada Naoki
Inada Naoki added the comment: I think it is too late. Python 3.9 has been released already. Reverting the change is also breaking change. PEP 100 says: "Search functions are expected to take one argument, the encoding name in all lower case letters and with hyphens and spaces convert

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2021-04-22 Thread Inada Naoki
Inada Naoki added the comment: codecs.register() was added in this commit. https://github.com/python/cpython/commit/e2d67f98d1aade1059b2ff3278672b2ffbaf180e And its docstring has been added in this commit. https://github.com/python/cpython/commit/0ae2981dec3de96a1f7d63b0535992cf1462ac92 Both

[issue43856] Docs for importlib.metadata should mention Python version

2021-04-22 Thread Inada Naoki
Inada Naoki added the comment: New changeset d4fff1f580aed5d26b9b501d0e626f50da9f7bb7 by Jason R. Coombs in branch '3.9': bpo-43856: Add a versionadded directive to the importlib.metadata docs (GH-25445) https://github.com/python/cpython/commit/d4fff1f580aed5d26b9b501d0e626f

[issue43856] Docs for importlib.metadata should mention Python version

2021-04-22 Thread Inada Naoki
Inada Naoki added the comment: New changeset faad2bd87f9e1c24837dd772f0597f4ab9416c66 by Jason R. Coombs in branch '3.8': bpo-43856: Add a versionadded directive to the importlib.metadata docs (GH-25445) https://github.com/python/cpython/commit/faad2bd87f9e1c24837dd772f0597f

[issue43817] Add inspect.get_annotations()

2021-04-24 Thread Inada Naoki
Inada Naoki added the comment: I'm not sure `ONLY_IF_ALL_STR` is worth enough. Will anyone use it after Python 3.10? inspect.signature()? Pydantic? -- ___ Python tracker <https://bugs.python.org/is

[issue43817] Add inspect.get_annotations()

2021-04-24 Thread Inada Naoki
Inada Naoki added the comment: > I think Pydantic would prefer it, because Pydantic wants to see the real > objects at runtime, rather than the stringized annotations. If so, why don't they use `eval_str=True`? I can not find any use cases where `eval_str= ONLY_IF_ALL_STR` is

[issue43817] Add inspect.get_annotations()

2021-04-24 Thread Inada Naoki
Inada Naoki added the comment: > > The difference between eval_str=True and eval_str=ONLY_IF_STRINGIZED: > > def foo(a:int, b:"howdy howdy"): ... > > inspect.get_annotations(foo, eval_str=True) throws an exception. > inspect.get_annotations(foo, eval_str=ONLY_I

[issue41139] cgi uses the locale encoding for log files

2021-04-26 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +24324 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25625 ___ Python tracker <https://bugs.python.org/issu

[issue43817] Add inspect.get_annotations()

2021-04-26 Thread Inada Naoki
Inada Naoki added the comment: > Just to be clear: I would *not* want this new mode to be the *default* > behavior. So far I think ONLY_IF_STRINGIZED is the best compromise for > default behavior. I don't think ONLY_IF_STRINGIZED is the best compromise. I don't think

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2021-04-26 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24336 pull_request: https://github.com/python/cpython/pull/25643 ___ Python tracker <https://bugs.python.org/issue37

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-26 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24337 pull_request: https://github.com/python/cpython/pull/25644 ___ Python tracker <https://bugs.python.org/issue43

<    1   2   3   4   5   6   7   8   9   10   >