Inada Naoki added the comment:
> See also
> https://mail.python.org/archives/list/python-committ...@python.org/thread/WEU5CQKIA4LIHWHT53YA7HHNUY5H2FUT/.
> This was a problem with other CI GitHub actions when a change had to be
> merged to master with which all PRs need to
Inada Naoki added the comment:
On Sat, May 9, 2020 at 6:08 PM Filipe Laíns wrote:
>
> > * Travis-CI, at least, does test against "merge commit", not HEAD of PR
> > branch.
>
> Where? https://github.com/python/cpython/blob/master/.travis.yml
https://docs.t
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue40575>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
New changeset d5d9a718662e67e2b1ac7874dda9df2d8d71d415 by Inada Naoki in branch
'master':
bpo-36346: array: Don't use deprecated APIs (GH-19653)
https://github.com/python/cpython/commit/d5d9a718662e67e2b1ac7874d
Inada Naoki added the comment:
I agree with Batuhan.
Although bytecode for class annotations seems inefficient, it is difficult to
optimize without breaking backward compatibility.
You can write arbitrary code in class/module block which dynamically manipulate
__annotations__.
```
class
Inada Naoki added the comment:
How do you think about PEP-597?
https://www.python.org/dev/peps/pep-0597/
--
nosy: +methane
___
Python tracker
<https://bugs.python.org/issue42
Inada Naoki added the comment:
pidigits and regex_v8 are LOAD_ATTR heavy benchmarks?
I will run benchmarks in my machine to confirm the results.
--
___
Python tracker
<https://bugs.python.org/issue42
Change by Inada Naoki :
--
nosy: -methane
___
Python tracker
<https://bugs.python.org/issue31904>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
$ ./python -m pyperf compare_to master.json load_method.json -G --min-speed=1
Slower (15):
- unpack_sequence: 63.2 ns +- 0.8 ns -> 68.5 ns +- 14.8 ns: 1.08x slower (+8%)
- pathlib: 23.1 ms +- 0.3 ms -> 24.4 ms +- 0.4 ms: 1.05x slower (+5%)
- scimark_fft:
Change by Inada Naoki :
--
nosy: +methane
___
Python tracker
<https://bugs.python.org/issue42246>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
I think using Console codepage for stdio is better. But I am afraid about
breaking existing code.
How about treating only UTF-8 and leave legacy environment as-is?
* When GetConsoleCP() returns CP_UTF8, use UTF-8 for stdin. Otherwise, use ANSI.
* When
Inada Naoki added the comment:
> Okay, and also when GetConsoleCP() fails because there's no console (e.g.
> python.exe w/ DETACHED_PROCESS creation flag, or pythonw.exe).
When there is no console, stdio should use the default textio encoding that is
ANSI for now.
> Howeve
Inada Naoki added the comment:
See bpo-34093 too.
--
___
Python tracker
<https://bugs.python.org/issue29708>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
> note the optimized .pyc is deterministic. As far as I know only __debug__ is
> set to False, or is there something else different?
There is no difference between normal pyc and optimized pyc.
* frozenset is deterministic if PYTHONHASHSEED is set
* FL
Change by Inada Naoki :
--
dependencies: +Reproducible pyc: FLAG_REF is not stable.
___
Python tracker
<https://bugs.python.org/issue29708>
___
___
Python-bug
Inada Naoki added the comment:
Just replacing "128U" with "128" enough?
Will `ch < 128` emit warning on platforms wchar_t is unsigned?
--
___
Python tracker
<https://
Change by Inada Naoki :
--
nosy: +methane
___
Python tracker
<https://bugs.python.org/issue24275>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
> 1a. Declare both functions equally acceptable. Remove comments claiming that
> PyUnicode_AsUTF8AndSize() should be avoided.
>
> 1b. 1a, and change the implementation of PyUnicode_AsUTF8AndSize() to avoid
> allocating the string twice if
Change by Inada Naoki :
--
versions: +Python 3.10 -Python 3.8
___
Python tracker
<https://bugs.python.org/issue35295>
___
___
Python-bugs-list mailing list
Unsub
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +23253
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24453
___
Python tracker
<https://bugs.python.org/issu
Inada Naoki added the comment:
New changeset d938816acf71a74f1bd13fdf0534b3d9ea962e44 by Inada Naoki in branch
'master':
bpo-35295: Remove outdated comment. (GH-24453)
https://github.com/python/cpython/commit/d938816acf71a74f1bd13fdf0534b3
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Inada Naoki :
When building Python on Windows Japanese environment, several warnings are
shown.
```
C:\Users\songo\source\repos\cpython\Modules\_sha3\kcp\KeccakSponge.h(1,1):
warning C4819: ファイルは、現在のコード ページ (932) で表示できない文字を含んでいます。データの損失を防ぐために、ファイルを
Unicode 形式で保存してください。
[C
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 bdb941be423bde8b02a5695ccf51c303d6204bed by Inada Naoki in branch
'master':
bpo-42217: compiler: merge same co_code and co_linetable objects (GH-23056)
https://github.com/python/cpython/commit/bdb941be423bde8b02a5695ccf51c3
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +23287
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24498
___
Python tracker
<https://bugs.python.org/issu
Inada Naoki added the comment:
Is this the crash you are reporting?
```
Exception ignored in: .Mutating.__del__ at 0x100d35af0>
Traceback (most recent call last):
File "/Users/methane/work/python/cpython/PC/xxx.py", line 5, in __del__
mutate(d)
TypeError: 'str'
Inada Naoki added the comment:
New changeset fedd86df2448370cdf62a229fd6f31dc92daf379 by Inada Naoki in branch
'master':
bpo-43174: Windows: Use /utf-8 compiler option. (GH-24498)
https://github.com/python/cpython/commit/fedd86df2448370cdf62a229fd6f31
Inada Naoki added the comment:
May I backport this for Python 3.9?
--
___
Python tracker
<https://bugs.python.org/issue43174>
___
___
Python-bugs-list mailin
Inada Naoki added the comment:
New changeset 68d6bc798b34eccabdfbf94e563273759c4cef1f by Miss Islington (bot)
in branch '3.9':
bpo-43174: Windows: Use /utf-8 compiler option. (GH-24498)
https://github.com/python/cpython/commit/68d6bc798b34eccabdfbf94e563273
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.9
___
Python tracker
<https://bugs.python.or
New submission from Inada Naoki :
https://github.com/python/cpython/blob/4230bd52e3f9f289f02e41ab17a95f50ed4db5a6/Lib/site.py#L160
```
f = io.TextIOWrapper(io.open_code(fullname))
```
When default text encoding is not UTF-8 and pth file contains non-ASCII
character, it will raise
Change by Inada Naoki :
--
keywords: +easy
___
Python tracker
<https://bugs.python.org/issue43214>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Inada Naoki :
--
nosy: +methane
___
Python tracker
<https://bugs.python.org/issue43246>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
I am not sure this should be fixed.
If so, I think we should use PyDict_CheckExact() instead of PyDict_Check() &&
(tp_iter is overridden || keys() is overridden || sq_item is overridden).
--
nosy: +rh
Inada Naoki added the comment:
This is not the problem only in the optimization. _textiowrapper_writeflush
need to create buffer bytes object anyway and if it cause MemoryError, the
TextIOWrapper can not flush internal buffer forever.
stdout.write("small text")
stdout.write(&
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +23372
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24592
___
Python tracker
<https://bugs.python.org/issu
Inada Naoki added the comment:
In your code, huge data passed to .write(huge) may be remained in the internal
buffer.
```
[NEW PRE-FLUSH]
else if ((self->pending_bytes_count + bytes_len) > self->chunk_size) {
if (_textiowrapper_writeflush(self) < 0) {
Inada Naoki added the comment:
You are right. I misunderstood.
```
if (PyUnicode_IS_ASCII(text) &&
(PyUnicode_GET_LENGTH(text) +
(self->pending_bytes ? self->pending_bytes_count : 0)) <=
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
Change by Inada Naoki :
--
pull_requests: +23398
pull_request: https://github.com/python/cpython/pull/24617
___
Python tracker
<https://bugs.python.org/issue43
Change by Inada Naoki :
--
pull_requests: +23399
pull_request: https://github.com/python/cpython/pull/24618
___
Python tracker
<https://bugs.python.org/issue43
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
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
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 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
versions: +Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.or
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>
___
___
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:
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:
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:
I prefer `sys.exit("message")`.
--
nosy: +methane
___
Python tracker
<https://bugs.python.org/issue43316>
___
___
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
Change by Inada Naoki :
--
nosy: +methane
___
Python tracker
<https://bugs.python.org/issue43321>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 :
--
pull_requests: +23437
pull_request: https://github.com/python/cpython/pull/24652
___
Python tracker
<https://bugs.python.org/issue43
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
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
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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 :
--
keywords: +patch
pull_requests: +23441
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24656
___
Python tracker
<https://bugs.python.org/issu
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
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
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
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
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 :
--
keywords: +patch
pull_requests: +23512
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24742
___
Python tracker
<https://bugs.python.org/issu
Change by Inada Naoki :
--
pull_requests: +23513
pull_request: https://github.com/python/cpython/pull/24743
___
Python tracker
<https://bugs.python.org/issue43
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 :
--
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:
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 :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Inada Naoki :
--
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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:
> 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:
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:
Would you close this issue?
--
___
Python tracker
<https://bugs.python.org/issue40328>
___
___
Python-bugs-list mailing list
Unsub
Inada Naoki added the comment:
I use it often when I investigate memory usage.
It provides some useful information even in release Python build. For example:
* Which size class is most allocated?
* How many block are allocated?
* Which size class have most free blocks? (e.g. Inner
Inada Naoki added the comment:
I think it's time to abandon chm file. It is too old. MS doesn't maintain it
anymore.
Let's promote ePub and PDF instead.
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.pyt
Inada Naoki added the comment:
Thanks.
--
nosy: +inada.naoki
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
New changeset 47a23fc63fa5df2da8dbc542e78e521d4a7f10c9 by Hai Shi in branch
'master':
bpo-40898: Remove redundant if statements in tp_traverse (GH-20692)
https://github.com/python/cpython/commit/47a23fc63fa5df2da8dbc542e78e52
Inada Naoki added the comment:
> Would the best way to address this be adding new KeysProxy, ValuesProxy, and
> ItemsProxy types?
I feel it is too much. Until real high need is demonstrated, I don't want to
introduce such complexity.
--
nosy: +
Change by Inada Naoki :
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue34023>
___
___
Inada Naoki added the comment:
+1.
--
___
Python tracker
<https://bugs.python.org/issue40890>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Inada Naoki :
--
nosy: -inada.naoki
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
New changeset 07d81128124f2b574808e33267c38b104b42ae2a by Dennis Sweeney in
branch 'master':
bpo-40889: Optimize dict.items() ^ dict.items() (GH-20718)
https://github.com/python/cpython/commit/07d81128124f2b574808e33267c38b104b42ae2a
-
Inada Naoki added the comment:
I feel ABC is too much for just single dunder method.
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue35
Inada Naoki added the comment:
New changeset 2145c8c9724287a310bc77a2760d4f1c0ca9eb0c by native-api in branch
'master':
bpo-33944: site: Add site-packages tracing in verbose mode (GH-12110)
https://github.com/python/cpython/commit/2145c8c9724287a310bc77a2760d4f1c0ca9eb0c
-
Change by Inada Naoki :
--
pull_requests: +20065
pull_request: https://github.com/python/cpython/pull/20878
___
Python tracker
<https://bugs.python.org/issue36
Change by Inada Naoki :
--
pull_requests: +20066
pull_request: https://github.com/python/cpython/pull/20879
___
Python tracker
<https://bugs.python.org/issue36
Inada Naoki added the comment:
New changeset de4304dad8e035dbbb57d653e685312eead816df by Zackery Spytz in
branch 'master':
bpo-19569: Add a macro to suppress deprecation warnings (GH-9004)
https://github.com/python/cpython/commit/de4304dad8e035dbbb57d653e685312eead816df
-
Change by Inada Naoki :
--
pull_requests: +20106
pull_request: https://github.com/python/cpython/pull/20927
___
Python tracker
<https://bugs.python.org/issue36
Inada Naoki added the comment:
New changeset 2c4928d37edc5e4aeec3c0b79fa3460b1ec9b60d by Inada Naoki in branch
'master':
bpo-36346: Add Py_DEPRECATED to deprecated unicode APIs (GH-20878)
https://github.com/python/cpython/commit/2c4928d37edc5e4aeec3c0b79fa346
Change by Inada Naoki :
--
pull_requests: +20112
pull_request: https://github.com/python/cpython/pull/20933
___
Python tracker
<https://bugs.python.org/issue36
Inada Naoki added the comment:
Oh, why I can not use C99?
```
/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Include/cpython/unicodeobject.h:
In function ‘Py_UNICODE_FILL’:
/home/buildbot/buildarea/3.x.cstratak-RHEL7-ppc64le/build/Include/cpython/unicodeobject.h:56:5:
error: ‘for
Change by Inada Naoki :
--
pull_requests: +20113
pull_request: https://github.com/python/cpython/pull/20934
___
Python tracker
<https://bugs.python.org/issue36
Inada Naoki added the comment:
New changeset 8e34e92caa73259620dd242b92d26edd0949b4ba by Inada Naoki in branch
'master':
bpo-36346: Make unicodeobject.h C89 compatible (GH-20934)
https://github.com/python/cpython/commit/8e34e92caa73259620dd242b92d26e
601 - 700 of 3039 matches
Mail list logo