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/489c36920e94bfb4988b6f965bd0aafdfaff0d4f
Change by Inada Naoki :
--
pull_requests: +23943
pull_request: https://github.com/python/cpython/pull/25204
___
Python tracker
<https://bugs.python.org/issue43
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/4663e5f39e9f872dcd69545f293e832d5855d084
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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/fb78692f2ad5ee4747f13a73943fbf134b637669
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/3d4af4a876e679431c6a3751667ded63cc6f66c1
Change by Inada Naoki :
--
pull_requests: +23934
pull_request: https://github.com/python/cpython/pull/25192
___
Python tracker
<https://bugs.python.org/issue43
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
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` parameter
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
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
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
Change by Inada Naoki :
--
pull_requests: +23932
pull_request: https://github.com/python/cpython/pull/25190
___
Python tracker
<https://bugs.python.org/issue43
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
Change by Inada Naoki :
--
pull_requests: +23931
pull_request: https://github.com/python/cpython/pull/25189
___
Python tracker
<https://bugs.python.org/issue43
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/c8e5eb904e12010d2302364e1037c24a30f5e241
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/ee952b5c7355cb64179ca9bb77b13e7738132d3d
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/de522a89e42a35da9275169b113460c3581e32d7
Change by Inada Naoki :
--
pull_requests: +23923
pull_request: https://github.com/python/cpython/pull/25181
___
Python tracker
<https://bugs.python.org/issue43
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/3caea9adda7f79ab5d4c5a1905ca62b44e0b3b7b
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="l
Change by Inada Naoki :
--
pull_requests: +23912
pull_request: https://github.com/python/cpython/pull/25171
___
Python tracker
<https://bugs.python.org/issue43
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/35715d1e72b7e15e337087863c75af447199e0fb
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/issue41
Change by Inada Naoki :
--
nosy: +methane
___
Python tracker
<https://bugs.python.org/issue41139>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Inada Naoki :
--
title: cgi.log() uses default encoding -> cgi.log() uses locale encoding
___
Python tracker
<https://bugs.python.org/issu
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=
Change by Inada Naoki :
--
pull_requests: +23906
pull_request: https://github.com/python/cpython/pull/25159
___
Python tracker
<https://bugs.python.org/issue43
Change by Inada Naoki :
--
pull_requests: +23905
pull_request: https://github.com/python/cpython/pull/25158
___
Python tracker
<https://bugs.python.org/issue43
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/bec8c787ec72d73b39011bde3f3a93e9bb1174b7
Change by Inada Naoki :
--
pull_requests: +23893
pull_request: https://github.com/python/cpython/pull/25146
___
Python tracker
<https://bugs.python.org/issue43
Change by Inada Naoki :
--
pull_requests: +23892
pull_request: https://github.com/python/cpython/pull/25145
___
Python tracker
<https://bugs.python.org/issue43
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/8bbfeb3330c10d52274bb85fce59ae614f0500bf
Change by Inada Naoki :
--
pull_requests: +23889
pull_request: https://github.com/python/cpython/pull/25142
___
Python tracker
<https://bugs.python.org/issue43
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/80017752ba938852d53f9d83a404b4ecd9ff2baa
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/c0ec4486dc7dd70fea39d1473ac9a9ac568378fe
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/036fc7de24cc961d65b60fba266104009feb2797
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
Change by Inada Naoki :
--
pull_requests: +23875
pull_request: https://github.com/python/cpython/pull/25128
___
Python tracker
<https://bugs.python.org/issue43
Change by Inada Naoki :
--
pull_requests: +23874
pull_request: https://github.com/python/cpython/pull/25127
___
Python tracker
<https://bugs.python.org/issue43
Change by Inada Naoki :
--
pull_requests: +23873
pull_request: https://github.com/python/cpython/pull/25126
___
Python tracker
<https://bugs.python.org/issue43
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/58cffba1874f0e9a9731b25a3e11a011bfbbf95f
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/55f31be44b7e3ee24a67134f99543512a9b630e4
cated by malloc().
You should try jemalloc. Trying jemalloc is not hard. You don't need
to rebuild Python.
Google " jemalloc LD_PRELOAD".
--
Inada Naoki
--
https://mail.python.org/mailman/listinfo/python-list
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://github.com/p
Change by Inada Naoki :
--
pull_requests: +23853
pull_request: https://github.com/python/cpython/pull/25109
___
Python tracker
<https://bugs.python.org/issue43
Change by Inada Naoki :
--
pull_requests: +23852
pull_request: https://github.com/python/cpython/pull/25108
___
Python tracker
<https://bugs.python.org/issue43
Inada Naoki added the comment:
I'm sorry, I was wrong. Allowing `encoding="locale"` didn't help OpenWrapper.
See GH-25107.
If we use `encoding = text_encoding(encoding)` in binary mode, `open(filename,
"rb")` will be warned. This doesn't make sense at all.
Add
Change by Inada Naoki :
--
pull_requests: +23851
pull_request: https://github.com/python/cpython/pull/25107
___
Python tracker
<https://bugs.python.org/issue43
Inada Naoki added the comment:
New changeset ff3c9739bd69aa8b58007e63c9e40e6708b4761e by Inada Naoki in branch
'master':
bpo-43510: PEP 597: Accept `encoding="locale"` in binary mode (GH-25103)
https://github.com/python/cpython/commit/ff3c9739bd69aa8b58007e63c9e40e
Change by Inada Naoki :
--
pull_requests: +23848
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/25103
___
Python tracker
<https://bugs.python.org/issu
Change by Inada Naoki :
--
superseder: -> PEP 597: Implemente encoding="locale" option and EncodingWarning
___
Python tracker
<https://bugs.pytho
ats).
That is all I can advise.
--
Inada Naoki
--
https://mail.python.org/mailman/listinfo/python-list
Inada Naoki added the comment:
In bpo-43651, I found code pattern that it's difficult to use
io.text_encoding():
class OpenWrapper:
def __new__(cls, *args, **kwargs):
return open(*args, **kwargs)
`kwargs["encoding"] = text_encoding(kwargs.get("encoding
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +23841
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25097
___
Python tracker
<https://bugs.python.org/issu
Inada Naoki added the comment:
I created bpo-43651 to track fixing EncodingError in Python stdlibs.
I close this issue for now.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracke
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
New changeset 068ebf9729d440cef03e4c57e3db83c851146172 by Inada Naoki in branch
'master':
bpo-33164: blake2: Fix Coverity scan (GH-25060)
https://github.com/python/cpython/commit/068ebf9729d440cef03e4c57e3db83c851146172
Inada Naoki added the comment:
https://en.wikipedia.org/wiki/Interval_(mathematics)
See "Notations for intervals" section in the Wikipedia page.
--
nosy: +methane
___
Python tracker
<https://bugs.python.o
Change by Inada Naoki :
--
keywords: +patch
nosy: +methane
nosy_count: 13.0 -> 14.0
pull_requests: +23809
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/19481
___
Python tracker
<https://bugs.p
Change by Inada Naoki :
--
nosy: methane
priority: normal
severity: normal
status: open
title: PEP 597: Fix EncodingError
versions: Python 3.10
___
Python tracker
<https://bugs.python.org/issue43
Inada Naoki added the comment:
New changeset 4827483f47906fecee6b5d9097df2a69a293a85c by Inada Naoki in branch
'master':
bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481)
https://github.com/python/cpython/commit/4827483f47906fecee6b5d9097df2a69a293a85c
Change by Inada Naoki :
--
pull_requests: +23808
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/25060
___
Python tracker
<https://bugs.python.org/issu
Inada Naoki added the comment:
> Why is it being specified that the current LC_CTYPE encoding should be
> ignored in Windows when a "locale" encoding is requested?
Because `encoding="locale"` must be replacement of the current `encoding=None`
(i.e. locale.
Inada Naoki added the comment:
> Please address UTF-8 mode explicitly in open() or elsewhere. The locale
> module is about the state of the lib C, not what Python enforces via
> options in its own I/O layers.
I agree with you. APIs in locale module shouldn't aware U
Inada Naoki added the comment:
> (1) "UTF-8" in the UTF-8 Mode, or the locale encoding
> (2) Always use the locale encoding, ignore the UTF-8 Mode
>
> What I don't expect is the current behavior, before PEP 597. Who uses open()
> without specifying an encodi
Inada Naoki added the comment:
> Since the final goal is to move everybody towards to UTF-8, I'm not sure how
> it's a good thing.
The final goal (the third motivation of the pep 597) is changing the default
encoding (i.e. encoding used when it is not specified) to UTF-8.
But f
Inada Naoki added the comment:
> Is it about the current implementation of the PEP 597, or are you thinking at
> the future Python which would use UTF-8 by default?
I had forgot to consider about UTF-8 mode while finishing PEP 597. If possible,
I want to ignore UTF-8 mode when `en
Inada Naoki added the comment:
> I created this issue while reviewing the implementation of the PEP 597: PR
> 19481.
What I want is same to `locale.getpreferredencoding(False)` but ignores UTF-8
mode.
Background: PEP 597 adds new `encoding="locale"`option to open() an
Inada Naoki added the comment:
locale-specific encoding is not good especially for Windows.
But we used it for a long time. Changing the encoding for pth files is breaking
change.
--
resolution: -> not a bug
stage: patch review -> resolved
status: open -&g
Inada Naoki added the comment:
PEP 597 is accepted. May I close this?
--
___
Python tracker
<https://bugs.python.org/issue42578>
___
___
Python-bugs-list mailin
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
New changeset dc8558ef302f1b14b45c21abd7451e4fb56b4604 by Miss Islington (bot)
in branch '3.8':
bpo-43506: Doc: Update removal schedule for Py_UNICODE encoder APIs (GH-24885)
https://github.com/python/cpython/commit/dc8558ef302f1b14b45c21abd7451e4fb56b4604
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +23653
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/19481
___
Python tracker
<https://bugs.python.org/issu
Inada Naoki added the comment:
New changeset 1330338583d183250186a8123b99d2283e945b4f by Inada Naoki in branch
'master':
bpo-43506: Doc: Update removal schedule for Py_UNICODE encoder APIs (GH-24885)
https://github.com/python/cpython/commit/1330338583d183250186a8123b99d2283e945b4f
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Inada Naoki :
PEP 597 is accepted.
--
components: IO
messages: 388809
nosy: methane
priority: normal
severity: normal
status: open
title: PEP 597: Implemente encoding="locale" option and EncodingWarning
versions: P
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +23646
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24885
___
Python tracker
<https://bugs.python.org/issu
New submission from Inada Naoki :
They are documented as "will be removed in 4.0" now.
--
components: C API
messages: 388800
nosy: methane
priority: normal
severity: normal
status: open
title: PEP 624: Update document for removal schedule
versions: Python 3.10,
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +23602
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24837
___
Python tracker
<https://bugs.python.org/issu
Change by Inada Naoki :
--
superseder: -> Use io.open_code for .pth files
___
Python tracker
<https://bugs.python.org/issue43214>
___
___
Python-bugs-list mai
Inada Naoki added the comment:
$ ./python -m pyperf compare_to -G --min-speed=3 master.json pytype.json
Slower (1):
- unpack_sequence: 62.2 ns +- 0.6 ns -> 66.1 ns +- 0.9 ns: 1.06x slower
Faster (29):
- nbody: 182 ms +- 1 ms -> 152 ms +- 2 ms: 1.19x faster
- regex_effbot: 4.00 ms +- 0
Inada Naoki added the comment:
> Maybe as a global setting, the better thing to copy is the button at the end
> of installation that offers to change the long path policy?
I tried it but there is no enough space.
See GH-24813 and attached screenshot.
--
Added file:
Change by Inada Naoki :
--
pull_requests: +23579
pull_request: https://github.com/python/cpython/pull/24813
___
Python tracker
<https://bugs.python.org/issue43
Inada Naoki added the comment:
I created a new vote for naming.
https://discuss.python.org/t/vote-new-function-for-reading-json-from-path/7603
--
___
Python tracker
<https://bugs.python.org/issue43
Inada Naoki added the comment:
This idea is discussed several times. Last discussion thread is:
https://mail.python.org/archives/list/python-id...@python.org/thread/YHO575YY4FQC3GBDF4SKOWIEAUSY3OQX/#YHO575YY4FQC3GBDF4SKOWIEAUSY3OQX
--
nosy: +methane
Change by Inada Naoki :
--
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
New changeset 8aabfa8550692a76d8a96e138c48faf5a7b2752c by Zackery Spytz in
branch 'master':
bpo-43405: Fix DeprecationWarnings in test_unicode (GH-24754)
https://github.com/python/cpython/commit/8aabfa8550692a76d8a96e138c48faf5a7b2752c
Change by Inada Naoki :
--
title: Add shortcut to enable UTF-8 mode in start menu. -> Windows: Make UTF-8
mode more accessible
___
Python tracker
<https://bugs.python.org/issu
Inada Naoki added the comment:
User may install Python from python.org installer, scoop, conda, and Windows
Store.
So envvar is not a right tool to configure only one installation.
Anyway, adding more complex way to configure Python can be discussed later.
Paul Moore againsted adding more
Change by Inada Naoki :
--
pull_requests: +23513
pull_request: https://github.com/python/cpython/pull/24743
___
Python tracker
<https://bugs.python.org/issue43
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +23512
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24742
___
Python tracker
<https://bugs.python.org/issu
Inada Naoki added the comment:
> You can run "[WindowsFolder]System32\setx.exe" directly. It's not a shell
> command.
Thank you. I will do.
> For modifying an environment variable, please clone the entire path MSI and
> use an Environment element to update it. Shou
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
New changeset c71d24f55828e7f0f2c8750d2e1b04d04539beff by Inada Naoki in branch
'master':
bpo-43321: Fix SystemError in getargs.c (GH-24656)
https://github.com/python/cpython/commit/c71d24f55828e7f0f2c8750d2e1b04d04539beff
Change by Inada Naoki :
--
nosy: -methane
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -Python 3.6, Python 3.7, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
New changeset 7956ef884965ac6f9f7f2a27b835ea80e471c886 by Ruben Vorderman in
branch 'master':
bpo-43317: Use io.DEFAULT_BUFFER_SIZE instead of 1024 in gzip CLI (#24645)
https://github.com/python/cpython/commit/7956ef884965ac6f9f7f2a27b835ea80e471c886
Change by Inada Naoki :
--
nosy: +methane
nosy_count: 17.0 -> 18.0
pull_requests: +23442
pull_request: https://github.com/python/cpython/pull/24657
___
Python tracker
<https://bugs.python.org/issu
301 - 400 of 3179 matches
Mail list logo