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
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/35715d1e72b7e15e337087863c75af
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
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,
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/bec8c787ec72d73b39011bde3f3a93
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/8bbfeb3330c10d52274bb85fce59ae
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/80017752ba938852d53f9d83a404b4
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
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
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/58cffba1874f0e9a9731b25a3e11a0
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
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
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 a
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/ff3c9739bd69aa8b5800
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
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("enc
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/068ebf9729d440cef03e4c57e3db83
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/4827483f47906fecee6b5d9097df2a
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 aw
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 encod
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
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() and
Tex
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/dc8558ef302f1b14b45c21abd7451e
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/1330338583d183250186a8123b99d2
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/8aabfa8550692a76d8a96e138c48fa
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.
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/c71d24f55828e7f0f2c8750d2e1b04
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/7956ef884965ac6f9f7f2a27b835ea
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
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +23441
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24656
___
Python tracker
<https://bugs.python.org/issu
Inada Naoki added the comment:
I checked the warning, and now I think Python traceback is fine.
PyArg_Parse*() is used on top of the C function. So python traceback is enough
to find which function is using '#' without Py_SSI
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 9525a18b5bb317d9fb206c992ab62aa41559b0c8 by Inada Naoki in branch
'master':
bpo-43316: gzip: Fix sys.exit() usage. (GH-24652)
https://github.com/python/cpython/commit/9525a18b5bb317d9fb206c992ab62a
Inada Naoki added the comment:
New changeset adea9b86a97794ca75054603497c195d5ba39aa5 by Miss Islington (bot)
in branch '3.9':
bpo-43316: gzip: CLI uses non-zero return code on error. (GH-24647)
https://github.com/python/cpython/commit/adea9b86a97794ca75054603497c19
Change by Inada Naoki :
--
pull_requests: +23437
pull_request: https://github.com/python/cpython/pull/24652
___
Python tracker
<https://bugs.python.org/issue43
Inada Naoki added the comment:
Thank you for reporting.
@vstinner Can we provide a nice C traceback too?
--
nosy: +vstinner
___
Python tracker
<https://bugs.python.org/issue43
Change by Inada Naoki :
--
nosy: +methane
___
Python tracker
<https://bugs.python.org/issue43321>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
New changeset cc3df6368d4f3f6c9c9b716876c7e7b79c7abf3f by Ruben Vorderman in
branch 'master':
bpo-43316: gzip: CLI uses non-zero return code on error. (GH-24647)
https://github.com/python/cpython/commit/cc3df6368d4f3f6c9c9b716876c7e7
Inada Naoki added the comment:
I prefer `sys.exit("message")`.
--
nosy: +methane
___
Python tracker
<https://bugs.python.org/issue43316>
___
___
Inada Naoki added the comment:
I noticed that namespace package support has been broken since this commit.
https://github.com/python/cpython/commit/bbbcf8693b876daae4469765aa62f8924f39a7d2
Now namespace pacakge has __file__ attribute which is None. But...
try
Inada Naoki added the comment:
New changeset 2d6f2eed14ff5d89155b52771cc8ef957e8145b4 by Inada Naoki in branch
'master':
bpo-36346: Document removal schedule of deprecate APIs (GH-20879)
https://github.com/python/cpython/commit/2d6f2eed14ff5d89155b52771cc8ef
Inada Naoki added the comment:
New changeset 91a639a094978882caef91915c932fbb2fc347de by Inada Naoki in branch
'master':
bpo-36346: Emit DeprecationWarning for PyArg_Parse() with 'u' or 'Z'. (GH-20927)
https://github.com/python/cpython/commit/91a639a094
Inada Naoki added the comment:
I'm +1 for this. Would you create a pull request on GitHub?
--
___
Python tracker
<https://bugs.python.org/issue24275>
___
___
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
New changeset 5a4aa4c03e27ca5007b86c9c1ee62c77ad08a120 by Inada Naoki in branch
'master':
bpo-23882: Doc: Clarify unittest discovery document (GH-21560)
https://github.com/python/cpython/commit/5a4aa4c03e27ca5007b86c9c1ee62c
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 6e2f144f53982d7103d4cfc2d9361fc445a1817e by Inada Naoki in branch
'3.8':
bpo-43260: io: Prevent large data remains in textio buffer. (GH-24592)
https://github.com/python/cpython/commit/6e2f144f53982d7103d4cfc2d9361f
Inada Naoki added the comment:
New changeset d51436f95bf5978f82d917e53e9a456fdaa83a9d by Inada Naoki in branch
'3.9':
bpo-43260: io: Prevent large data remains in textio buffer. (GH-24592)
https://github.com/python/cpython/commit/d51436f95bf5978f82d917e53e9a45
Change by Inada Naoki :
--
pull_requests: +23399
pull_request: https://github.com/python/cpython/pull/24618
___
Python tracker
<https://bugs.python.org/issue43
Change by Inada Naoki :
--
pull_requests: +23398
pull_request: https://github.com/python/cpython/pull/24617
___
Python tracker
<https://bugs.python.org/issue43
Inada Naoki added the comment:
New changeset 01806d5beba3d208bb56adba6829097d803bf54f by Inada Naoki in branch
'master':
bpo-43260: io: Prevent large data remains in textio buffer. (GH-24592)
https://github.com/python/cpython/commit/01806d5beba3d208bb56adba682909
301 - 400 of 3039 matches
Mail list logo