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
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
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
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
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +13018
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36684>
___
___
Py
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
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?
---
Inada Naoki added the comment:
Could you paste how the test fails?
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue36778>
___
___
Pytho
Change by Inada Naoki :
--
nosy: +pitrou
___
Python tracker
<https://bugs.python.org/issue36694>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 =
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
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
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
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
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
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
Change by Inada Naoki :
--
versions: +Python 3.8 -Python 3.6
___
Python tracker
<https://bugs.python.org/issue36694>
___
___
Python-bugs-list mailing list
Unsub
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
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +12923
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36748>
___
___
Py
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
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue36694>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Inada Naoki :
--
nosy: -inada.naoki
___
Python tracker
<https://bugs.python.org/issue36715>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
New changeset 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
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
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
New changeset 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
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
Change by Inada Naoki :
--
pull_requests: +12809
___
Python tracker
<https://bugs.python.org/issue26219>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
New changeset 6fec905de5c139017f36b212e54cac46959808fe by Inada Naoki in branch
'master':
bpo-36642: make unicodedata const (GH-12855)
https://github.com/python/cpython/commit/6fec905de5c139017f36b212e54cac
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
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +12781
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36642>
___
___
Py
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
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +12780
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36641>
___
___
Py
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
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
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
Change by Inada Naoki :
--
pull_requests: +12775
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue27987>
___
___
Python-bugs-list mai
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
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
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
Change by Inada Naoki :
--
pull_requests: +12762
___
Python tracker
<https://bugs.python.org/issue36404>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Change by Inada Naoki :
--
pull_requests: +12761
___
Python tracker
<https://bugs.python.org/issue27860>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Inada Naoki :
--
pull_requests: +12757
___
Python tracker
<https://bugs.python.org/issue27860>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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.
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
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue16254>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue15035>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Inada Naoki :
--
resolution: -> out of date
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue17068>
___
___
Python-bugs-list mailing list
Unsubscribe:
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:
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
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
-
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue27987>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
I never used the serialno too.
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue36611>
___
___
Python-bug
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
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue35279>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Change by Inada Naoki :
--
pull_requests: +12721
___
Python tracker
<https://bugs.python.org/issue20180>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Inada Naoki :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> doctest: Change example under warnings section
___
Python tracker
<https://bugs.python
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
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
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
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
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
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.
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue32949>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
New changeset ac31da8f3710f9f9b8dbb4c36b2108fb1e5b4a48 by Inada Naoki in branch
'3.7':
bpo-36597: fix random doctest failure (GH-12778)
https://github.com/python/cpython/commit/ac31da8f3710f9f9b8dbb4c36b2108
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
Change by Inada Naoki :
--
pull_requests: +12706
___
Python tracker
<https://bugs.python.org/issue36597>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Inada Naoki :
--
pull_requests: +12705
___
Python tracker
<https://bugs.python.org/issue36597>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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:
>
> """
Change by Inada Naoki :
--
pull_requests: +12703
___
Python tracker
<https://bugs.python.org/issue36597>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
>
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
Change by Inada Naoki :
--
pull_requests: +12701
___
Python tracker
<https://bugs.python.org/issue27860>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +12670
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36575>
___
___
Py
1101 - 1200 of 3039 matches
Mail list logo