[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2019-12-24 Thread Inada Naoki
Inada Naoki added the comment: > I like this idea, but I think that we should at least notify Python-Dev about > all additions to the public C API. If somebody have objections or better > idea, it is better to know earlier. I created a post about this issue in discuss.python.o

[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2019-12-23 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +17140 pull_request: https://github.com/python/cpython/pull/17683 ___ Python tracker <https://bugs.python.org/issue39

[issue39117] Performance regression for making bound methods

2019-12-23 Thread Inada Naoki
Inada Naoki added the comment: Is this regression is large enough to revive the free_list for bound methods? -- ___ Python tracker <https://bugs.python.org/issue39

[issue36051] Drop the GIL during large bytes.join operations?

2019-12-22 Thread Inada Naoki
Inada Naoki added the comment: https://github.com/python/cpython/blob/068768faf6b82478de239d7ab903dfb249ad96a4/Objects/stringlib/join.h#L105-L126 It seems we can release GIL during iterating the buffer array. Even though there is no one big chunk, it would be beneficial if the output size

[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2019-12-19 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +17127 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17659 ___ Python tracker <https://bugs.python.org/issu

[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2019-12-19 Thread Inada Naoki
Inada Naoki added the comment: > Don't you need to DECREF bytes somehow, at least, in case of failure? Thanks. I will create a pull request with suggested changes. -- ___ Python tracker <https://bugs.python.org/issu

[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2019-12-19 Thread Inada Naoki
Inada Naoki added the comment: s/return NULL/return -1/g -- ___ Python tracker <https://bugs.python.org/issue39087> ___ ___ Python-bugs-list mailing list Unsub

[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2019-12-19 Thread Inada Naoki
Inada Naoki added the comment: > Would it be possible to use a "container" object like a Py_buffer? Is there a > way to customize the code executed when a Py_buffer is "released"? It looks nice idea! Py_buffer.obj is decref-ed when releasing the buffer. https

[issue39087] No efficient API to get UTF-8 string from unicode object.

2019-12-18 Thread Inada Naoki
New submission from Inada Naoki : Assume you are writing an extension module that reads string. For example, HTML escape or JSON encode. There are two courses: (a) Support three KINDs in the flexible unicode representation. (b) Get UTF-8 data from the unicode. (a) will be the fastest

[issue39028] ENH: Fix performance issue in keyword extraction

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

[issue39028] ENH: Fix performance issue in keyword extraction

2019-12-17 Thread Inada Naoki
Inada Naoki added the comment: New changeset 75bb07e92baa7267a61056d03d7e6b475588e793 by Inada Naoki (Sebastian Berg) in branch 'master': bpo-39028: Performance enhancement in keyword extraction (GH-17576) https://github.com/python/cpython/commit/75bb07e92baa7267a61056d03d7e6b475588e793

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-15 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +17093 pull_request: https://github.com/python/cpython/pull/17623 ___ Python tracker <https://bugs.python.org/issue39

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-15 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +17092 pull_request: https://github.com/python/cpython/pull/17622 ___ Python tracker <https://bugs.python.org/issue39

[issue39051] Python not working on Windows 10

2019-12-15 Thread Inada Naoki
Inada Naoki added the comment: Many files and directories in the "C:\Developing\Python\Lib" are disappeared. I don't know why. But since you tried clean install, I suppose your antivirus killed Python. -- ___ Python track

[issue39051] Python not working on Windows 10

2019-12-15 Thread Inada Naoki
Inada Naoki added the comment: Where did you install the portion? What is in the C:\Developing\Python and C:\Developing\Python\Lib? What happen when you unset both environment variables? Do you use any antivirus software? -- ___ Python tracker

[issue39051] Python not working on Windows 10

2019-12-15 Thread Inada Naoki
Inada Naoki added the comment: The most common cause of this error is the PYTHONPATH and PYTHONHOME environment variables. You can see what environment variables are set by the "set" command. -- nosy: +inada.naoki ___ Python track

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Inada Naoki added the comment: New changeset de4481339dec395d70e350aa2e22d7990d2b3635 by Inada Naoki in branch '2.7': bpo-39035: travis: Don't use beta group (GH-17605) https://github.com/python/cpython/commit/de4481339dec395d70e350aa2e22d7990d2b3635

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Inada Naoki added the comment: New changeset be7489cb43e25b6d8bfa077589c18cc0a2367efd by Inada Naoki in branch '3.7': bpo-39035: travis: Don't use beta group (GH-17604) https://github.com/python/cpython/commit/be7489cb43e25b6d8bfa077589c18cc0a2367efd

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Inada Naoki added the comment: New changeset 5c5d8f63d7d235e557ad20e7d722b22772681759 by Inada Naoki in branch '3.8': bpo-39035: travis: Don't use beta group (GH-17603) https://github.com/python/cpython/commit/5c5d8f63d7d235e557ad20e7d722b22772681759

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +17074 pull_request: https://github.com/python/cpython/pull/17605 ___ Python tracker <https://bugs.python.org/issue39

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +17073 pull_request: https://github.com/python/cpython/pull/17604 ___ Python tracker <https://bugs.python.org/issue39

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +17072 pull_request: https://github.com/python/cpython/pull/17603 ___ Python tracker <https://bugs.python.org/issue39

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Inada Naoki added the comment: New changeset 94d2c8df1a7657015a2fcdb4c4d43392f91f8348 by Inada Naoki in branch 'master': bpo-39035: travis: Don't use beta group (GH-17602) https://github.com/python/cpython/commit/94d2c8df1a7657015a2fcdb4c4d43392f91f8348

[issue39035] Travis CI fail on backports: pyvenv not installed

2019-12-14 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +17071 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17602 ___ Python tracker <https://bugs.python.org/issu

[issue39028] ENH: Fix performance issue in keyword extraction

2019-12-12 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.org/issue39028> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2019-12-11 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.org/issue36054> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29636] Specifying indent in the json.tool command

2019-12-07 Thread Inada Naoki
Inada Naoki added the comment: New changeset 15fb7fa88187f5841088721a43609bffe64a8dc7 by Inada Naoki (Daniel Himmelstein) in branch 'master': bpo-29636: json.tool: Add document for indentation options. (GH-17482) https://github.com/python/cpython/commit

[issue27413] Add an option to json.tool to bypass non-ASCII characters.

2019-12-05 Thread Inada Naoki
Inada Naoki added the comment: New changeset efefe25443c56988841ab96cdac01352123ba268 by Inada Naoki (wim glenn) in branch 'master': bpo-27413: json.tool: Add --no-ensure-ascii option. (GH-17472) https://github.com/python/cpython/commit/efefe25443c56988841ab96cdac01352123ba268

[issue27413] Add an option to json.tool to bypass non-ASCII characters.

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

[issue33684] parse failed for mutibytes characters, encode will show in \xxx

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

[issue33684] parse failed for mutibytes characters, encode will show in \xxx

2019-12-04 Thread Inada Naoki
Change by Inada Naoki : -- components: +Library (Lib) -Unicode ___ Python tracker <https://bugs.python.org/issue33684> ___ ___ Python-bugs-list mailing list Unsub

[issue33684] parse failed for mutibytes characters, encode will show in \xxx

2019-12-04 Thread Inada Naoki
Inada Naoki added the comment: New changeset e0f148e6635480521036415bd782c3424fe6c619 by Inada Naoki in branch '3.7': bpo-33684: json.tool: Use utf-8 for infile and outfile. (GH-17460) https://github.com/python/cpython/commit/e0f148e6635480521036415bd782c3424fe6c619

[issue33684] parse failed for mutibytes characters, encode will show in \xxx

2019-12-04 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +16944 pull_request: https://github.com/python/cpython/pull/17465 ___ Python tracker <https://bugs.python.org/issue33

[issue33684] parse failed for mutibytes characters, encode will show in \xxx

2019-12-04 Thread Inada Naoki
Inada Naoki added the comment: New changeset 808769f3a4cbdc47cf1a5708dd61b1787bb192d4 by Inada Naoki in branch 'master': bpo-33684: json.tool: Use utf-8 for infile and outfile. (GH-17460) https://github.com/python/cpython/commit/808769f3a4cbdc47cf1a5708dd61b1787bb192d4 -- nosy

[issue33684] parse failed for mutibytes characters, encode will show in \xxx

2019-12-03 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +16941 pull_request: https://github.com/python/cpython/pull/17460 ___ Python tracker <https://bugs.python.org/issue33

[issue29636] Specifying indent in the json.tool command

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

[issue29636] Specifying indent in the json.tool command

2019-12-03 Thread Inada Naoki
Inada Naoki added the comment: New changeset 03257949bc02a4afdf2ea1eb07a73f8128129579 by Inada Naoki (Daniel Himmelstein) in branch 'master': bpo-29636: Add --(no-)indent arguments to json.tool (GH-345) https://github.com/python/cpython/commit/03257949bc02a4afdf2ea1eb07a73f8128129579

[issue26730] SpooledTemporaryFile rollover corrupts data silently when Unicode characters are written

2019-11-27 Thread Inada Naoki
Inada Naoki added the comment: > Do we need to explicitly document the return value change of _file which is > documented with a separate versionchanged directive for 3.7 and 3.8? I feel it is too detailed. Note that the _file attribute may be TextIOWrapper after rollover()

[issue26730] SpooledTemporaryFile rollover corrupts data silently when Unicode characters are written

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

[issue26730] SpooledTemporaryFile rollover corrupts data silently when Unicode characters are written

2019-11-27 Thread Inada Naoki
Inada Naoki added the comment: New changeset e65b3fa9f16537d20f5f37c25673ac899fcd7099 by Inada Naoki in branch '3.7': bpo-26730: Fix SpooledTemporaryFile data corruption (GH-17400) https://github.com/python/cpython/commit/e65b3fa9f16537d20f5f37c25673ac899fcd7099

[issue26730] SpooledTemporaryFile rollover corrupts data silently when Unicode characters are written

2019-11-27 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +16887 pull_request: https://github.com/python/cpython/pull/17407 ___ Python tracker <https://bugs.python.org/issue26

[issue26730] SpooledTemporaryFile rollover corrupts data silently when Unicode characters are written

2019-11-27 Thread Inada Naoki
Inada Naoki added the comment: New changeset ea9835c5d154ab6a54eed627958473b6768b28cc by Inada Naoki in branch 'master': bpo-26730: Fix SpooledTemporaryFile data corruption (GH-17400) https://github.com/python/cpython/commit/ea9835c5d154ab6a54eed627958473b6768b28cc

[issue26730] SpooledTemporaryFile rollover corrupts data silently when Unicode characters are written

2019-11-26 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +16880 pull_request: https://github.com/python/cpython/pull/17400 ___ Python tracker <https://bugs.python.org/issue26

[issue26730] SpooledTemporaryFile rollover corrupts data silently when Unicode characters are written

2019-11-26 Thread Inada Naoki
Inada Naoki added the comment: @Serhiy, would you create a pull request based on your patch? Or may I? @James it doesn't make sense at all. It breaks the file even when only ASCII characters are used. f = SpooledTemporaryFile(mode="w+") f.write("foobar") f.seek(3)

[issue26730] SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written

2019-11-26 Thread Inada Naoki
Inada Naoki added the comment: But poor performance is better than silent data corruption. If we can not fix the rollover right now, stop the spooling is a considerable option for next bugfix release. -- ___ Python tracker <ht

[issue26730] SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written

2019-11-26 Thread Inada Naoki
Inada Naoki added the comment: Creating files is slow on Windows too. But I think we should fix the data corruption ASAP. While Serhiy's patch looks good to me, there is a more quick and safe way to fix the data corruption. Use TemporaryFile at first if it is text mode

[issue26730] SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written

2019-11-26 Thread Inada Naoki
Change by Inada Naoki : -- priority: normal -> critical ___ Python tracker <https://bugs.python.org/issue26730> ___ ___ Python-bugs-list mailing list Un

[issue27145] long_add and long_sub might return a new int where _ints[x] could be returned

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

[issue27145] long_add and long_sub might return a new int where _ints[x] could be returned

2019-11-25 Thread Inada Naoki
Inada Naoki added the comment: New changeset 036fe85bd3e6cd01093d836d71792a1966f961e8 by Inada Naoki (HongWeipeng) in branch 'master': bpo-27145: small_ints[x] could be returned in long_add and long_sub (GH-15716) https://github.com/python/cpython/commit

[issue38328] Speed up the creation time of constant list and set literals.

2019-11-25 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

[issue38328] Speed up the creation time of constant list and set literals.

2019-11-25 Thread Inada Naoki
Inada Naoki added the comment: New changeset 6dd9b64770af8905bef293c81d541eaaf8d8df52 by Inada Naoki (Brandt Bucher) in branch 'master': bpo-38328: Speed up the creation time of constant list and set display. (GH-17114) https://github.com/python/cpython/commit

[issue38625] SpooledTemporaryFile does not seek correctly after being rolled over

2019-11-24 Thread Inada Naoki
Inada Naoki added the comment: SpooledTemporaryFile has very serious bug which causes data corruption (#26730). Please don't use it with text mode until it is fixed. -- ___ Python tracker <https://bugs.python.org/issue38

[issue38866] test_pyclbr replace asyncore

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

[issue37073] clarify functions docs in IO modules and Bytes Objects

2019-11-22 Thread Inada Naoki
Inada Naoki added the comment: > The function actually copies `len` bytes from string v instead of the whole > string. "and length *len*" means it. So it is not a bug. If you want to rewrite it to "the first *len* bytes of", you should remove "and

[issue37073] clarify functions docs in IO modules and Bytes Objects

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

[issue38866] test_pyclbr replace asyncore

2019-11-22 Thread Inada Naoki
Inada Naoki added the comment: New changeset 138e7bbb0a5ed44bdd54605e8c58c8f3d3865321 by Inada Naoki (jacksonriley) in branch 'master': bpo-38866: Remove asyncore from test_pyclbr.py (GH-17316) https://github.com/python/cpython/commit/138e7bbb0a5ed44bdd54605e8c58c8f3d3865321

[issue24084] pstats: sub-millisecond display

2019-11-22 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.org/issue24084> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38784] ip_network does not clear/update the broadcast_address cache when network_address is changed.

2019-11-13 Thread Inada Naoki
Inada Naoki added the comment: It is documented, if you read it carefully. "Network objects are hashable, so they can be used as keys in dictionaries." https://docs.python.org/3/library/ipaddress.html#network-objects """ An object is hashable if it has a hash

[issue38784] ip_network does not clear/update the broadcast_address cache when network_address is changed.

2019-11-13 Thread Inada Naoki
Inada Naoki added the comment: All classes in the ipaddress module are designed as immutable. While it is not documented, you can see __hash__ is overridden. It means you must not change the object state. -- assignee: -> docs@python components: +Documentation nosy: +docs@pyt

[issue35856] bundled pip syntaxwarning

2019-11-12 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35856> ___ ___

[issue38613] Optimize some set operations in dictkeys object

2019-11-07 Thread Inada Naoki
Inada Naoki added the comment: New changeset 6cbc84fb99acb33dd659d7adb29a20adbe62b74a by Inada Naoki in branch 'master': bpo-38613: Optimize set operations of dict keys. (GH-16961) https://github.com/python/cpython/commit/6cbc84fb99acb33dd659d7adb29a20adbe62b74a

[issue38613] Optimize some set operations in dictkeys object

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

[issue38613] Optimize some set operations in dictkeys object

2019-10-30 Thread Inada Naoki
Inada Naoki added the comment: done. -- ___ Python tracker <https://bugs.python.org/issue38613> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38613] Optimize some set operations in dictkeys object

2019-10-29 Thread Inada Naoki
Inada Naoki added the comment: > How does it work with dict subclasses? PySet_New(iterable) uses fast path only when `PyDict_CheckExact(iterable)` is true. So there is no change for dict subclasses. -- ___ Python tracker <

[issue38613] Optimize some set operations in dictkeys object

2019-10-28 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +16489 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16961 ___ Python tracker <https://bugs.python.org/issu

[issue38613] Optimize some set operations in dictkeys object

2019-10-28 Thread Inada Naoki
New submission from Inada Naoki : -, |, and ^ of dictkeys are implemented as: PyObject *result = PySet_New(self); // Call set.difference_update, set.update, set.symmetric_difference_update with other. PySet_New(iterable) has optimized step for iterable is dict. But since iterable is dictkeys

[issue38604] Schedule Py_UNICODE API removal

2019-10-28 Thread Inada Naoki
Inada Naoki added the comment: I want to remove them in 3.10 too. If we chose the annual release cycle, I'm OK to postpone the removal to 3.11. FWIW, ujson is apopular extension that uses these APIs. But it is not maintained for a long time, and there are many alternative JSON libraries

[issue38538] dictobject dictviews don't return NotImplemented for unrecognized types.

2019-10-28 Thread Inada Naoki
Inada Naoki added the comment: > but it's not that simple as the __or__ of dictviews is less strict that the > __or__ of set: __or__ of dictview accept any iterable, __or__ of set only > accepts sets. I want to make it same to set. But it is a backward inc

[issue38538] dictobject dictviews don't return NotImplemented for unrecognized types.

2019-10-21 Thread Inada Naoki
Inada Naoki added the comment: > Strangely enough, it worked in Python 2.7 It is not strange since dict.keys() in Python 2.7 returns list. >>> {}.viewkeys() | Ror() Traceback (most recent call last): File "", line 1, in TypeError: itera

[issue38525] Strange reversed dict behavior

2019-10-19 Thread Inada Naoki
Inada Naoki added the comment: When dict is empty, di_pos of reverse iterator must be -1, not 0. Additionally, di_pos must be initialized from ma_used when dict is key sharing dict. diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 64876e0519..6c4b41700b 100644 --- a/Objects

[issue37587] JSON loads performance improvement for long strings

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

[issue38503] bug: string search can find \n, but can NEVER find \r

2019-10-17 Thread Inada Naoki
Inada Naoki added the comment: It is "universal newline". See https://docs.python.org/3/library/functions.html#open and https://docs.python.org/3/glossary.html#term-universal-newlines -- nosy: +inada.naoki resolution: -> not a bug stage: -> resolved status

[issue37587] JSON loads performance improvement for long strings

2019-10-17 Thread Inada Naoki
Inada Naoki added the comment: New changeset 9c11029bb41caab5576f354fbf808a5e91325bb0 by Inada Naoki in branch 'master': bpo-37587: json: Use _PyUnicodeWriter when scanning string. (GH-15591) https://github.com/python/cpython/commit/9c11029bb41caab5576f354fbf808a5e91325bb0

[issue38495] print built-in function docs bug

2019-10-16 Thread Inada Naoki
Inada Naoki added the comment: https://github.com/sphinx-doc/sphinx/pull/6401/files Recent Sphinx uses . So we can add style like this: .sig-paren { font-family: monospace, sans-serif; font-style: normal; } -- ___ Python tracker

[issue38495] print built-in function docs bug

2019-10-16 Thread Inada Naoki
Inada Naoki added the comment: Space is not trimmed. You can confirm there is a space by copy it from rendered HTML. print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)ΒΆ So this is caused by rendering sep=' '. I don't like , but I'm not sure this can be customized by theme

[issue38373] List overallocation strategy

2019-10-16 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.org/issue38373> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38477] magiccube2x2 permutations 28% slower with Python 3.8.0rc1 vs 3.7

2019-10-16 Thread Inada Naoki
Inada Naoki added the comment: Deadsneak Python 3.8: >>> sysconfig.get_config_var('CFLAGS') '-Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security' Disco /usr/bin/python3.7: >>> sysconfig.get_

[issue38477] magiccube2x2 permutations 28% slower with Python 3.8.0rc1 vs 3.7

2019-10-16 Thread Inada Naoki
Inada Naoki added the comment: Ah, my bad. I meant `perf stat python ...`. -- ___ Python tracker <https://bugs.python.org/issue38477> ___ ___ Python-bugs-list m

[issue38477] magiccube2x2 permutations 28% slower with Python 3.8.0rc1 vs 3.7

2019-10-16 Thread Inada Naoki
Inada Naoki added the comment: I can not confirm performance regression in 3.8.0. $ time ~/pyenv/versions/3.7.3/bin/python permutations2x2 --max_depth 6 | egrep "^# Total_Time" ; time ~/pyenv/versions/3.8.0/bin/python permutations2x2 --max_depth 6 | egrep "^# Total_Time"

[issue38477] magiccube2x2 permutations 28% slower with Python 3.8.0rc1 vs 3.7

2019-10-15 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.org/issue38477> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38486] Dead links in mailbox doc

2019-10-15 Thread Inada Naoki
New submission from Inada Naoki : Reported on mailing list: https://mail.python.org/archives/list/d...@python.org/thread/NIXFQMWFNSNO6RXPINY56CQQ5L7QIRUV/ qmail.org is dead. The mailbox doc [1] contains two links to man pages in qmail.org. Can we just remove them? [1] https

[issue26219] implement per-opcode cache in ceval

2019-10-08 Thread Inada Naoki
Inada Naoki added the comment: On Mon, Oct 7, 2019 at 9:41 PM Mark Shannon wrote: > > Mark Shannon added the comment: > > Given that > def foo(): int; str; bytes; float; int; str; bytes; float > can be trivially be rewritten as > def foo(): pass > I think that benchma

[issue35696] remove unnecessary operation in long_compare()

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

[issue35696] remove unnecessary operation in long_compare()

2019-09-18 Thread Inada Naoki
Inada Naoki added the comment: New changeset 42acb7b8d29d078bc97b0cfd7c4911b2266b26b9 by Inada Naoki (HongWeipeng) in branch 'master': bpo-35696: Simplify long_compare() (GH-16146) https://github.com/python/cpython/commit/42acb7b8d29d078bc97b0cfd7c4911b2266b26b9 -- nosy

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2019-09-12 Thread Inada Naoki
Inada Naoki added the comment: $ ./python -m pyperf timeit --compare-to ./python-master 'dict()' python-master: . 89.9 ns +- 1.2 ns python: . 72.5 ns +- 1.6 ns Mean +- std dev: [python-master] 89.9 ns +- 1.2 ns -> [python] 72.5 ns +- 1.6 ns: 1.

[issue36869] Avoid warning of unused variables

2019-09-10 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue36869> ___

[issue33418] Memory leaks in functions

2019-09-10 Thread Inada Naoki
Inada Naoki added the comment: I'm OK to revert it in 3.8. But I am worrying about func.func_closure. Can it create cyclic reference in real life applications? -- ___ Python tracker <https://bugs.python.org/issue33

[issue38026] inspect.getattr_static should avoid dynamic lookup

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

[issue38026] inspect.getattr_static should avoid dynamic lookup

2019-09-04 Thread Inada Naoki
Inada Naoki added the comment: New changeset 8f9cc8771ffb8d0e21be287eaed42ae06087acca by Inada Naoki in branch 'master': bpo-38026: fix inspect.getattr_static (GH-15676) https://github.com/python/cpython/commit/8f9cc8771ffb8d0e21be287eaed42ae06087acca

[issue38026] inspect.getattr_static should avoid dynamic lookup

2019-09-04 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +15336 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15676 ___ Python tracker <https://bugs.python.org/issu

[issue38026] inspect.getattr_static should avoid dynamic lookup

2019-09-04 Thread Inada Naoki
New submission from Inada Naoki : Reported here: https://github.com/python/cpython/commit/feaefc7f60cd3be7bf4ecc2b73e77d2bfe048403 I merged GH-5351 but it broke inspect.getattr_static behavior. It should be reverted. -- components: Library (Lib) keywords: 3.8regression messages

[issue38006] Crash in remove() weak reference callback of weakref.WeakValueDictionary at Python exit

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

[issue38004] Duplicated sections in changelog

2019-09-02 Thread Inada Naoki
New submission from Inada Naoki : See TOC in https://docs.python.org/3.7/whatsnew/changelog.html Some releases (*) have multiple "Library" and "Security" sections. (*) e.g. 3.6.0a3, 3.6.0a2, 3.6.0a1, 3.5.3rc1, 3.5.2rc1 -- assignee: docs@python components: Do

[issue37990] gc.collect prints debug stats incorrectly

2019-08-30 Thread Inada Naoki
Inada Naoki added the comment: Thank you for finding it! My eyes were too focused on portability issue of "%zd"... -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <h

[issue37990] gc.collect prints debug stats incorrectly

2019-08-30 Thread Inada Naoki
Inada Naoki added the comment: New changeset 97a31c7b486c45ba9c21cab5fb96337859a60275 by Inada Naoki in branch '3.8': [3.8] bpo-37990: fix gc stats (GH-15626) https://github.com/python/cpython/commit/97a31c7b486c45ba9c21cab5fb96337859a60275

[issue37990] gc.collect prints debug stats incorrectly

2019-08-30 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +15295 pull_request: https://github.com/python/cpython/pull/15627 ___ Python tracker <https://bugs.python.org/issue37

[issue37990] gc.collect prints debug stats incorrectly

2019-08-30 Thread Inada Naoki
Inada Naoki added the comment: New changeset 013e52fd340d9ef558013b546f25456f94ee1804 by Inada Naoki in branch 'master': bpo-37990: fix gc stats (GH-15626) https://github.com/python/cpython/commit/013e52fd340d9ef558013b546f25456f94ee1804

[issue37781] Use "z" for PY_FORMAT_SIZE_T

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

[issue37781] Use "z" for PY_FORMAT_SIZE_T

2019-08-30 Thread Inada Naoki
Inada Naoki added the comment: New changeset d765d81b8fb5ab707bfe8b079348e5038c298aa3 by Inada Naoki in branch 'master': bpo-37781: use "z" for PY_FORMAT_SIZE_T (GH-15156) https://github.com/python/cpython/commit/d765d81b8fb5ab707bfe8b079348e5

[issue37990] gc.collect prints debug stats incorrectly

2019-08-30 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +15294 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15626 ___ Python tracker <https://bugs.python.org/issu

<    4   5   6   7   8   9   10   11   12   13   >