[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-09 Thread Inada Naoki
Inada Naoki added the comment: > I dislike lying in the locale module. This change is basically useless with > my PR 13230. Note that Python produce "cpNNN" encoding name, not Windows. https://github.com/python/cpython/blob/137be34180a20dba53948d126b961069f299f153/Modules

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-08 Thread Inada Naoki
Inada Naoki added the comment: @Eryk I didn't say new Terminal will cause this issue. I know ConsoeIO too. I just meant Microsoft use cp65001 more widely for better UTF-8 support nowadays. So I want to make cp65001 as alias of UTF-8. > Python could similarly special case CP_UTF8 a

[issue33153] interpreter crash when multiplying large tuples

2019-05-07 Thread Inada Naoki
Inada Naoki added the comment: This bug is happened only on x86, not amd64. -- ___ Python tracker <https://bugs.python.org/issue33153> ___ ___ Python-bugs-list m

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-06 Thread Inada Naoki
Inada Naoki added the comment: FYI, I expect cp65001 will be used more widely in near future, because non UTF-8 default encoding reduced Developer eXperience, and Microsoft try to improve DX recent years. Today, Microsoft announced new Terminal application. It seems use `SetConsoleOutputCP

[issue36684] codecov.io code coverage has not updated since 2019-04-13

2019-05-05 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +13018 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36684> ___ ___ Py

[issue36684] codecov.io code coverage has not updated since 2019-04-13

2019-05-05 Thread Inada Naoki
Inada Naoki added the comment: FYI, https://github.com/python/cpython/pull/7773#issuecomment-398262396 -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.org/issue36

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is not cp1252

2019-05-02 Thread Inada Naoki
Inada Naoki added the comment: @Victor It seems you added cp65001 as Windows-only encoding in bpo-13216. How do you think about removing cp65001 encoding, and add 'cp65001' -> 'utf_8' alias which is available on all platforms? ---

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is not cp1252

2019-05-02 Thread Inada Naoki
Inada Naoki added the comment: Could you paste how the test fails? -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.org/issue36778> ___ ___ Pytho

[issue36694] Excessive memory use or memory fragmentation when unpickling many small objects

2019-05-01 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue36694> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36694] Excessive memory use or memory fragmentation when unpickling many small objects

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: I'm using 1/10 version of dump.py I removed total_size() because it creates some garbages. sys._debugmallocstats() after load.py: master: # arenas allocated total =1,223 # arenas reclaimed =

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: You didn't explain why people not only you need it. "Could you elaborate?" Unless clear use cases, I'm strong -1 on adding it in typing module. -- ___ Python tracker <https://bug

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: > I'm using it both for comparisons which needed to build an abstract base > class and typing. Currently there are 2 ways, i need to create a dummy abc > and put type() calls everywhere or i need to set a constant to my module and > _ab

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: > I'm working on a project that is a custom byte code interpreter for some extended types. I needed ABCData there I still don't understand why you need _abc_data. > Isn't types module exposing some types that are implementation detail su

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: It's implementation detail of abc. I don't want expose it in public. (Note that we maintain pure Python version of abc module too.) Why you need it in types module? I don't think all types exposed via types module. Only useful types sho

[issue36694] Excessive memory use or memory fragmentation when unpickling many small objects

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: I confirmed this fragmentation is caused by memo in Unpickler. Pickler memos "reduce"-ed tuples while it is just a temporary object. I am not sure that this behavior is good. -- ___ Python track

[issue36694] Excessive memory use or memory fragmentation when unpickling many small objects

2019-04-30 Thread Inada Naoki
Inada Naoki added the comment: Memory allocation pattern is: alloc 24 # float alloc 24 alloc 24 alloc 64 # temporary tuple alloc 72 free 64 # free temporary tuples free 64 free 64 This cause some sort of fragmentation. Some pools in arenas are unused. This prevents pymalloc to return

[issue36694] Excessive memory use or memory fragmentation when unpickling many small objects

2019-04-30 Thread Inada Naoki
Change by Inada Naoki : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue36694> ___ ___ Python-bugs-list mailing list Unsub

[issue25430] speed up ipaddress __contain__ method

2019-04-30 Thread Inada Naoki
Inada Naoki added the comment: New changeset 3bbcc92577f8e616bc94c679040043bacd00ebf1 by Inada Naoki (gescheit) in branch 'master': bpo-25430: improve performance of IPNetwork.__contains__ (GH-1785) https://github.com/python/cpython/commit/3bbcc92577f8e616bc94c679040043

[issue36748] Optimize textio write buffering

2019-04-28 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12923 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36748> ___ ___ Py

[issue36748] Optimize textio write buffering

2019-04-28 Thread Inada Naoki
New submission from Inada Naoki : textio uses list of textio for internal buffering. There are two inefficiency: * When textio is line buffered and all written strings are line (it's very common), list object is allocated and freed. * We convert texts into bytes, and call b&#

[issue36694] Excessive memory use or memory fragmentation when unpickling many small objects

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

[issue36715] Dictionary initialization

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

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

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

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2019-04-23 Thread Inada Naoki
Inada Naoki added the comment: New changeset 359bd4f61b9e1493081f4f67882554247b53926a by Inada Naoki (Zackery Spytz) in branch 'master': bpo-18372: Add missing PyObject_GC_Track() calls in the pickle module (GH-8505) https://github.com/python/cpyt

[issue36696] possible multiple regressions on AIX

2019-04-22 Thread Inada Naoki
Inada Naoki added the comment: Maybe, XLC doesn't support -D name. -Dname should be used instead. -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.org/is

[issue36523] Add docstring to io.IOBase.writelines

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

[issue36523] Add docstring to io.IOBase.writelines

2019-04-22 Thread Inada Naoki
Inada Naoki added the comment: New changeset 1100ae8f3fb1d5a8f6f5638919196bd8fab66de9 by Inada Naoki (Marcin Niemira) in branch '3.7': bpo-36523: Add docstring to io.IOBase.writelines (GH-12683) https://github.com/python/cpython/commit/1100ae8f3fb1d5a8f6f5638919196b

[issue36523] Add docstring to io.IOBase.writelines

2019-04-22 Thread Inada Naoki
Inada Naoki added the comment: New changeset ab86521a9d731e39bd9056420bb7774fd144 by Inada Naoki (Marcin Niemira) in branch 'master': bpo-36523: Add docstring to io.IOBase.writelines (GH-12683) https://github.com/python/cpython/commit/ab86521a9d731e39bd9056420b

[issue26219] implement per-opcode cache in ceval

2019-04-20 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12809 ___ Python tracker <https://bugs.python.org/issue26219> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36642] make unicodedata "const"

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

[issue36641] make docstring in C const

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

[issue36642] make unicodedata "const"

2019-04-16 Thread Inada Naoki
Inada Naoki added the comment: New changeset 6fec905de5c139017f36b212e54cac46959808fe by Inada Naoki in branch 'master': bpo-36642: make unicodedata const (GH-12855) https://github.com/python/cpython/commit/6fec905de5c139017f36b212e54cac

[issue36641] make docstring in C const

2019-04-16 Thread Inada Naoki
Inada Naoki added the comment: New changeset 926b0cb5f688808dc11448a0bf3e452d1b92c232 by Inada Naoki in branch 'master': bpo-36641: Add "const" to PyDoc_VAR macro (GH-12854) https://github.com/python/cpython/commit/926b0cb5f688808dc114

[issue36642] make unicodedata "const"

2019-04-16 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12781 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36642> ___ ___ Py

[issue36642] make unicodedata "const"

2019-04-16 Thread Inada Naoki
New submission from Inada Naoki : diff --git a/Tools/unicode/makeunicodedata.py b/Tools/unicode/makeunicodedata.py index 9327693a17..2550b8f940 100644 --- a/Tools/unicode/makeunicodedata.py +++ b/Tools/unicode/makeunicodedata.py @@ -1249,7 +1249,7 @@ class Array: size = getsize

[issue36641] make docstring in C const

2019-04-16 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12780 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36641> ___ ___ Py

[issue36641] make docstring in C const

2019-04-16 Thread Inada Naoki
Inada Naoki added the comment: Without any configure options: $ size python python-const textdata bss dec hex filename 2980860 448880 131672 3561412 3657c4 python 3185372 244464 131664 3561500 36581c python-const

[issue36641] make docstring in C const

2019-04-16 Thread Inada Naoki
New submission from Inada Naoki : In most case, docstring in C is constant. Can we add "const"? If we can, it can avoid allocating and copying several KBs. --- a/Include/pymacro.h +++ b/Include/pymacro.h @@ -69,4 +69,4 @@ /* Define macros for inline documentation. */ -#define PyDo

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-04-16 Thread Inada Naoki
Inada Naoki added the comment: > In 3.8, the union used to ensure alignment on a C double is gone. Note that two uintptr_t is aligned 16bytes on 64bit platforms and 8bytes on 32bit platforms. Python 3.7 is worse than 3.8. It used "double dummy" to align by 8 bytes, not 16 byt

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-04-15 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12775 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue27987> ___ ___ Python-bugs-list mai

[issue27860] Improvements to ipaddress module

2019-04-15 Thread Inada Naoki
Inada Naoki added the comment: I merged all cleanups. I don't merge accepting any IP representations as mask, because I'm not expert of this module. At least, I don't want to pass prefix/netmask by something like IPv4Netwo

[issue27860] Improvements to ipaddress module

2019-04-15 Thread Inada Naoki
Inada Naoki added the comment: New changeset 6fa84bd12c4b83bee6a41b989363230d5c03b96c by Inada Naoki in branch 'master': bpo-27860: ipaddress: fix Interface missed some attributes (GH-12836) https://github.com/python/cpython/commit/6fa84bd12c4b83bee6a41b98936323

[issue31954] Don't prevent dict optimization by coupling with OrderedDict

2019-04-15 Thread Inada Naoki
Inada Naoki added the comment: @Serhiy > It the pure Python implementation PyDict_GetItem also > returns value, not node of linked list. I missed pure Python implementation used two dicts. @Eric > Please don't miss the fact that the main reason for mirroring the dict table

[issue36404] Document PendingDeprecationWarning is not so useful.

2019-04-15 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12762 ___ Python tracker <https://bugs.python.org/issue36404> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-04-15 Thread Inada Naoki
Inada Naoki added the comment: I had not noticed bpo-33374 changed Python 2.7. I don't know why it caused segv only for Python 2.7. -- ___ Python tracker <https://bugs.python.org/is

[issue27860] Improvements to ipaddress module

2019-04-15 Thread Inada Naoki
Inada Naoki added the comment: I am not owner of ipaddress module, so I don't know we should support more form of masks. On the other hand, IPv4Interface and IPv6Interface expose netmask and hostmask attributes when address is not bytes or int. These attributes are not documented. I a

[issue27860] Improvements to ipaddress module

2019-04-15 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12761 ___ Python tracker <https://bugs.python.org/issue27860> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27860] Improvements to ipaddress module

2019-04-15 Thread Inada Naoki
Inada Naoki added the comment: New changeset 2430d532e240dea55f0082d1e9bf2e0f3d7505be by Inada Naoki in branch 'master': bpo-27860: use cached_property (GH-12832) https://github.com/python/cpython/commit/2430d532e240dea55f0082d1e9bf2e

[issue27860] Improvements to ipaddress module

2019-04-14 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12757 ___ Python tracker <https://bugs.python.org/issue27860> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31954] Don't prevent dict optimization by coupling with OrderedDict

2019-04-13 Thread Inada Naoki
Inada Naoki added the comment: There are some more aggressive ideas. When Eric created C version of OrderedDict, he intended to use it for PEP 468. Unlike pure Python implementation, PyDict_GetItem returns value, not node of linked list. But now, PEP 468 is implemented in regular dict. How

[issue1402289] Allow mappings as globals (was: Fix dictionary subclass ...)

2019-04-13 Thread Inada Naoki
Inada Naoki added the comment: 13 years past from this proposed. Is this still good feature for Python? Personally, I dislike adding more dynamic flexibility to Python name space. Python is very dynamic language, and it made difficult to make Python faster. For example, PHP is not so

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-04-13 Thread Inada Naoki
Inada Naoki added the comment: Now PyGC_Head is 16byte on 64bit platform. Maybe, should we just change obmalloc in Python 3.8? How about 32bit platforms? What can we do for Python 3.7 and 2.7? -- ___ Python tracker <https://bugs.python.

[issue16254] Make PyUnicode_AsWideCharString() increase temporary

2019-04-13 Thread Inada Naoki
Inada Naoki added the comment: fixed by #30863 -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: +Python 3.8 -Python 3.5 ___ Python tracker <https://bugs.python.or

[issue16254] Make PyUnicode_AsWideCharString() increase temporary

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

[issue15035] array.array of UCS2 values

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

[issue15917] hg hook to detect unmerged changesets

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

[issue17068] peephole optimization for constant strings

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

[issue2007] cookielib lacks FileCookieJar class for Internet Explorer

2019-04-13 Thread Inada Naoki
Inada Naoki added the comment: I don't think adding MSIE support is not worth enough for now. -- nosy: +inada.naoki resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker <https:

[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2019-04-13 Thread Inada Naoki
Inada Naoki added the comment: * rubenvb is not maintained. * https://forums.embarcadero.com/message.jspa?messageID=581594 is dead link. * When PY_SSIZE_T is not defined, we use intptr_t, not int. Original issue report doesn't make sense to me. But we can't confirm

[issue35734] Remove unused _BaseV4._is_valid_netmask in ipaddress

2019-04-13 Thread Inada Naoki
Inada Naoki added the comment: New changeset e59ec1b05d3e1487ca7754530d3748446c9b7dfd by Inada Naoki (Rémi Lapeyre) in branch 'master': bpo-35734: ipaddress: remove unused methods (GH-11591) https://github.com/python/cpython/commit/e59ec1b05d3e1487ca7754530d3748446c9b7dfd -

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

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

[issue36611] Debug memory allocators: remove useless "serialno" field to reduce memory footprint

2019-04-12 Thread Inada Naoki
Inada Naoki added the comment: I never used the serialno too. -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.org/issue36611> ___ ___ Python-bug

[issue35279] asyncio uses too many threads by default

2019-04-12 Thread Inada Naoki
Inada Naoki added the comment: node.js default threadpool size is 4 regardless number of cores. https://nodejs.org/api/cli.html#cli_uv_threadpool_size_size Since we has GIL, I think fixed-size pool is better idea. -- ___ Python tracker <ht

[issue35279] asyncio uses too many threads by default

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

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2019-04-12 Thread Inada Naoki
Inada Naoki added the comment: New changeset 9e4f2f3a6b8ee995c365e86d976937c141d867f8 by Inada Naoki in branch 'master': bpo-20180: Use argument clinic for dict.pop() and dict.popitem() (GH-12792) https://github.com/python/cpython/commit/9e4f2f3a6b8ee995c365e86d976937

[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2019-04-12 Thread Inada Naoki
Inada Naoki added the comment: Is this issue still alive? May I close this issue as "out of date"? -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.o

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12721 ___ Python tracker <https://bugs.python.org/issue20180> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36599] doctest document says dict order is unstable

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> doctest: Change example under warnings section ___ Python tracker <https://bugs.python

[issue36599] doctest document says dict order is unstable

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: Oh, #34839 had fixed this already. It was not backported to 3.7 yet. -- ___ Python tracker <https://bugs.python.org/issue36

[issue2281] Enhanced cPython profiler with high-resolution timer

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: I think https://bugs.python.org/issue36575 fixed this. -- nosy: +inada.naoki resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.o

[issue36378] Add support to load from paths to json.load

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: I close this because PR is closed already, and same idea was discussed on -ideas ML. -- nosy: +inada.naoki resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracke

[issue16712] collections.abc.Sequence should not provide __reversed__

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: I close this issue because Reversible ABC was added. It's sad that Sequnce.__reversed__ is just makes reversed() slow without any benefit. But removing it without breaking backward compatibility is not easy for now. -- resolution: -> wont f

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: https://github.com/Homebrew/homebrew-core/blob/b2aff6271caa04508fb1529fdd5edbb22f4e7f21/Formula/python%402.rb#L75-L82 Homebrew checks compiler version too. I don't think it's worth enough to add more code to avoid this trouble. -- resolution

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: I'm using Mojave. I don't have regression. $ /usr/local/bin/python2 x.py # Homebrew python@2 1.681729 $ /usr/bin/python x.py # System python2 1.891549 Could someone using High Sierra or Sierra test it? x.py is test script in https://bugs.

[issue32949] Simplify "with"-related opcodes

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

[issue36597] Travis CI: doctest failure

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

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: New changeset ac31da8f3710f9f9b8dbb4c36b2108fb1e5b4a48 by Inada Naoki in branch '3.7': bpo-36597: fix random doctest failure (GH-12778) https://github.com/python/cpython/commit/ac31da8f3710f9f9b8dbb4c36b2108

[issue36416] bytes.rpartition bug in online documentation

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

[issue36599] doctest document says dict order is unstable

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- title: weakref document says dict order is unstable -> doctest document says dict order is unstable ___ Python tracker <https://bugs.python.org/issu

[issue36575] Use _PyTime_GetPerfCounter() in lsprof

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: New changeset 536a35b3f14888999f1ffa5be7239d0c26b73d7a by Inada Naoki in branch 'master': bpo-36575: lsprof: Use _PyTime_GetPerfCounter() (GH-8378) https://github.com/python/cpython/commit/536a35b3f14888999f1ffa5be7239d

[issue36575] Use _PyTime_GetPerfCounter() in lsprof

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

[issue36599] weakref document says dict order is unstable

2019-04-11 Thread Inada Naoki
New submission from Inada Naoki : https://docs.python.org/3/library/doctest.html#warnings "For example, when printing a dict, Python doesn’t guarantee that the key-value pairs will be printed in any particular order," This example should be rewritten with set. -- assi

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: New changeset b3c92c6ae923ffb2b9ac5f80b28ecd689de48662 by Inada Naoki in branch 'master': bpo-36597: fix weakref example code (GH-12779) https://github.com/python/cpython/commit/b3c92c6ae923ffb2b9ac5f80b28ecd

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12706 ___ Python tracker <https://bugs.python.org/issue36597> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12705 ___ Python tracker <https://bugs.python.org/issue36597> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: New changeset 57b1a2862a99677f09614e9e456d36aae9ddd87c by Inada Naoki in branch 'master': bpo-36597: fix random doctest failure (GH-12776) https://github.com/python/cpython/commit/57b1a2862a99677f09614e9e456d36

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: I think PR-12776 fixed "obj dead or exiting" error. https://travis-ci.org/python/cpython/jobs/518656385 -- ___ Python tracker <https://bugs.python.o

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: On Thu, Apr 11, 2019 at 5:19 PM STINNER Victor wrote: > Really? When I click on https://travis-ci.org/python/cpython/jobs/518572326 > (the second link of my first message), I still see: > > """

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12703 ___ Python tracker <https://bugs.python.org/issue36597> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: https://github.com/python/cpython/blob/master/Doc/library/weakref.rst#finalizer-objects >>> obj = Object() >>> weakref.finalize(obj, print, "obj dead or exiting") #doctest

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: > See the beginning of my first message, the doctest prevents me to merge a PR. You did not show travis build link which failed other than "obj dead or exiting" error. Don't all other errors happened only on your environment? If no, plea

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: > > It seems it is caused by non English locale. > > Right, but why did it start to fail since yesterday? Is it an error start to fail since yesterday? As far as reading your first report, this is happen only in your local environment. > > Y

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Inada Naoki
Inada Naoki added the comment: On Thu, Apr 11, 2019 at 11:49 AM STINNER Victor wrote: > > File "library/unittest.mock-examples.rst", line ?, in default > Failed example: > m.one().two().three() > Expected: > > Got: > obj dead or exiting >

[issue36416] bytes.rpartition bug in online documentation

2019-04-10 Thread Inada Naoki
Inada Naoki added the comment: New changeset efc48701496ef020e896fc6a91af3c0c612ac69a by Inada Naoki (pewscorner) in branch 'master': bpo-36416: Correct bytes.rpartition documentation (GH-12543) https://github.com/python/cpython/commit/efc48701496ef020e896fc6a91af3c

[issue27860] Improvements to ipaddress module

2019-04-10 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12701 ___ Python tracker <https://bugs.python.org/issue27860> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24116] --with-pydebug has no effect when the final python binary is compiled

2019-04-10 Thread Inada Naoki
Inada Naoki added the comment: gcc is not compiler, but linker when `-o python`. So LDFLAGS is used instead of CFLAGS. I don't think we can document and maintain all configure & make behavior. I'm +1 on close this. -- nosy: +inada.naoki

[issue36346] Prepare for removing the legacy Unicode C API

2019-04-10 Thread Inada Naoki
Inada Naoki added the comment: I think these ABI incompatible options are used many people. But it is helpful to find extensions which using legacy APIs before Python 3.10 is released. I had found ujson and MarkupSafe used legacy APIs. I fixed MarkupSafe. I don't care ujson because

[issue27860] Improvements to ipaddress module

2019-04-10 Thread Inada Naoki
Inada Naoki added the comment: @moritzs Would you create a pull request on GitHub? Or may I create a pull request for your patch? -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.org/issue27

[issue36559] "import random" should import hashlib on demand (nor load OpenSSL)

2019-04-10 Thread Inada Naoki
Inada Naoki added the comment: * Is hashlib large, slow to import library? -- Yes. * random module use hashlib only for specific (rare) use case? -- Yes. * Does user of random module needs hashlib in most case? -- No. For example, tmpfile user may not need hashlib. I'm +1 on PR

[issue36575] Use _PyTime_GetPerfCounter() in lsprof

2019-04-09 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12670 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36575> ___ ___ Py

<    7   8   9   10   11   12   13   14   15   16   >