[issue40551] PRs should be rebased on top of master before running the build/tests

2020-05-08 Thread Inada Naoki
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

[issue40551] PRs should be rebased on top of master before running the build/tests

2020-05-09 Thread Inada Naoki
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

[issue40575] _PyDict_GetItemIdWithError() should call _PyDict_GetItem_KnownHash()

2020-05-09 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.org/issue40575> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36346] Prepare for removing the legacy Unicode C API

2020-05-10 Thread Inada Naoki
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

[issue42525] Optimize class/module level annotation

2020-12-01 Thread Inada Naoki
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

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

2020-12-07 Thread Inada Naoki
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

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-12-14 Thread Inada Naoki
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

[issue31904] Python should support VxWorks RTOS

2020-12-15 Thread Inada Naoki
Change by Inada Naoki : -- nosy: -methane ___ Python tracker <https://bugs.python.org/issue31904> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-12-15 Thread Inada Naoki
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:

[issue42246] Implement PEP 626 -- Precise line numbers for debugging

2020-12-21 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane ___ Python tracker <https://bugs.python.org/issue42246> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42707] Python uses ANSI CP for stdio on Windows console instead of using console or OEM CP

2020-12-22 Thread Inada Naoki
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

[issue42707] Python uses ANSI CP for stdio on Windows console instead of using console or OEM CP

2020-12-22 Thread Inada Naoki
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

[issue29708] support reproducible Python builds

2020-12-30 Thread Inada Naoki
Inada Naoki added the comment: See bpo-34093 too. -- ___ Python tracker <https://bugs.python.org/issue29708> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29708] support reproducible Python builds

2020-12-31 Thread Inada Naoki
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

[issue29708] support reproducible Python builds

2020-12-31 Thread Inada Naoki
Change by Inada Naoki : -- dependencies: +Reproducible pyc: FLAG_REF is not stable. ___ Python tracker <https://bugs.python.org/issue29708> ___ ___ Python-bug

[issue43030] signed/unsigned mismatch in Py_UNICODE_ISSPACE macro

2021-01-26 Thread Inada Naoki
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://

[issue24275] lookdict_* give up too soon

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

[issue35295] Please clarify whether PyUnicode_AsUTF8AndSize() or PyUnicode_AsUTF8String() is preferred

2021-02-04 Thread Inada Naoki
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

[issue35295] Please clarify whether PyUnicode_AsUTF8AndSize() or PyUnicode_AsUTF8String() is preferred

2021-02-04 Thread Inada Naoki
Change by Inada Naoki : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue35295> ___ ___ Python-bugs-list mailing list Unsub

[issue35295] Please clarify whether PyUnicode_AsUTF8AndSize() or PyUnicode_AsUTF8String() is preferred

2021-02-04 Thread Inada Naoki
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

[issue35295] Please clarify whether PyUnicode_AsUTF8AndSize() or PyUnicode_AsUTF8String() is preferred

2021-02-04 Thread Inada Naoki
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

[issue35295] Please clarify whether PyUnicode_AsUTF8AndSize() or PyUnicode_AsUTF8String() is preferred

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

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-08 Thread Inada Naoki
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

[issue42217] compiler: merge co_code and co_lnotab

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

[issue42217] compiler: merge co_code and co_lnotab

2021-02-09 Thread Inada Naoki
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

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-09 Thread Inada Naoki
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

[issue43188] multiple operations of dict causes core dump of Python interpreter.

2021-02-10 Thread Inada Naoki
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'

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-11 Thread Inada Naoki
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

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-11 Thread Inada Naoki
Inada Naoki added the comment: May I backport this for Python 3.9? -- ___ Python tracker <https://bugs.python.org/issue43174> ___ ___ Python-bugs-list mailin

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-11 Thread Inada Naoki
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

[issue43174] Windows: Use /utf-8 compiler flag

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

[issue43214] site: Potential UnicodeDecodeError when handling pth file

2021-02-13 Thread Inada Naoki
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

[issue43214] site: Potential UnicodeDecodeError when handling pth file

2021-02-13 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +easy ___ Python tracker <https://bugs.python.org/issue43214> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43246] Dict copy optimization violates subclass invariant

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

[issue43246] Dict copy optimization violates subclass invariant

2021-02-18 Thread Inada Naoki
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

[issue43260] Never release buffer when MemoryError in print()

2021-02-19 Thread Inada Naoki
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(&

[issue43260] Never release buffer when MemoryError in print()

2021-02-19 Thread Inada Naoki
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

[issue43260] Never release buffer when MemoryError in print()

2021-02-19 Thread Inada Naoki
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) {

[issue43260] Never release buffer when MemoryError in print()

2021-02-19 Thread Inada Naoki
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)) <=

[issue43260] Never release buffer when MemoryError in print()

2021-02-21 Thread Inada Naoki
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

[issue43260] Never release buffer when MemoryError in print()

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

[issue43260] Never release buffer when MemoryError in print()

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

[issue43260] Never release buffer when MemoryError in print()

2021-02-21 Thread Inada Naoki
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

[issue43260] Never release buffer when MemoryError in print()

2021-02-21 Thread Inada Naoki
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

[issue43260] Never release buffer when MemoryError in print()

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

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-21 Thread Inada Naoki
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

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-22 Thread Inada Naoki
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

[issue24275] lookdict_* give up too soon

2021-02-22 Thread Inada Naoki
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> ___ ___

[issue36346] Prepare for removing the legacy Unicode C API

2021-02-22 Thread Inada Naoki
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

[issue36346] Prepare for removing the legacy Unicode C API

2021-02-22 Thread Inada Naoki
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

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2021-02-22 Thread Inada Naoki
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

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread Inada Naoki
Inada Naoki added the comment: I prefer `sys.exit("message")`. -- nosy: +methane ___ Python tracker <https://bugs.python.org/issue43316> ___ ___

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread Inada Naoki
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

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

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

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

2021-02-25 Thread Inada Naoki
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

[issue43316] python -m gzip handles error incorrectly

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

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread Inada Naoki
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

[issue43316] python -m gzip handles error incorrectly

2021-02-25 Thread Inada Naoki
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

[issue43316] python -m gzip handles error incorrectly

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

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

2021-02-25 Thread Inada Naoki
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

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

2021-02-25 Thread Inada Naoki
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

[issue41282] Deprecate and remove distutils

2021-02-25 Thread Inada Naoki
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

[issue43317] python -m gzip could use a larger buffer

2021-02-26 Thread Inada Naoki
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

[issue43317] python -m gzip could use a larger buffer

2021-02-26 Thread Inada Naoki
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

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

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

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

2021-02-27 Thread Inada Naoki
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

[issue43364] Add shortcut to enable UTF-8 mode in start menu.

2021-03-02 Thread Inada Naoki
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.

[issue43364] Add shortcut to enable UTF-8 mode in start menu.

2021-03-04 Thread Inada Naoki
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

[issue43364] Add shortcut to enable UTF-8 mode in start menu.

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

[issue43364] Add shortcut to enable UTF-8 mode in start menu.

2021-03-04 Thread Inada Naoki
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

[issue43364] Windows: Make UTF-8 mode more accessible

2021-03-04 Thread Inada Naoki
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

[issue43405] DeprecationWarnings in test_unicode

2021-03-06 Thread Inada Naoki
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

[issue43405] DeprecationWarnings in test_unicode

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

[issue31466] No easy way to change float formatting when subclassing encoder.JSONEncoder

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

[issue43457] Include simple file loading and saving functions in JSON standard library.

2021-03-09 Thread Inada Naoki
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

[issue43457] Include simple file loading and saving functions in JSON standard library.

2021-03-09 Thread Inada Naoki
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

[issue43364] Windows: Make UTF-8 mode more accessible

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

[issue43364] Windows: Make UTF-8 mode more accessible

2021-03-10 Thread Inada Naoki
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:

[issue43452] Microoptimize PyType_Lookup for cache hits

2021-03-11 Thread Inada Naoki
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

[issue40328] Add tools for generating mappings_XX.h

2020-05-24 Thread Inada Naoki
Inada Naoki added the comment: Would you close this issue? -- ___ Python tracker <https://bugs.python.org/issue40328> ___ ___ Python-bugs-list mailing list Unsub

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread Inada Naoki
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

[issue35228] Index search in CHM help crashes viewer

2020-06-01 Thread Inada Naoki
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

[issue40898] Remove redundant if statements in tp_traverse

2020-06-07 Thread Inada Naoki
Inada Naoki added the comment: Thanks. -- nosy: +inada.naoki resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40898] Remove redundant if statements in tp_traverse

2020-06-07 Thread Inada Naoki
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

[issue40890] Dict views should be introspectable

2020-06-07 Thread Inada Naoki
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: +

[issue34023] timedelta(seconds=x) strange results when type(x) == np.int32

2020-06-07 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue34023> ___ ___

[issue40890] Dict views should be introspectable

2020-06-09 Thread Inada Naoki
Inada Naoki added the comment: +1. -- ___ Python tracker <https://bugs.python.org/issue40890> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40889] Symmetric difference on dict_views is inefficient

2020-06-09 Thread Inada Naoki
Change by Inada Naoki : -- nosy: -inada.naoki resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40889] Symmetric difference on dict_views is inefficient

2020-06-09 Thread Inada Naoki
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 -

[issue35019] Allow ipaddres.IPv4/v6Address in asyncio.create_server

2020-06-11 Thread Inada Naoki
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

[issue33944] Deprecate and remove code execution in pth files

2020-06-11 Thread Inada Naoki
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 -

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-14 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +20065 pull_request: https://github.com/python/cpython/pull/20878 ___ Python tracker <https://bugs.python.org/issue36

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-14 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +20066 pull_request: https://github.com/python/cpython/pull/20879 ___ Python tracker <https://bugs.python.org/issue36

[issue19569] Use __attribute__((deprecated)) to warn usage of deprecated functions and macros

2020-06-15 Thread Inada Naoki
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 -

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-16 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +20106 pull_request: https://github.com/python/cpython/pull/20927 ___ Python tracker <https://bugs.python.org/issue36

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-17 Thread Inada Naoki
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

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-17 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +20112 pull_request: https://github.com/python/cpython/pull/20933 ___ Python tracker <https://bugs.python.org/issue36

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-17 Thread Inada Naoki
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

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-17 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +20113 pull_request: https://github.com/python/cpython/pull/20934 ___ Python tracker <https://bugs.python.org/issue36

[issue36346] Prepare for removing the legacy Unicode C API

2020-06-17 Thread Inada Naoki
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

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