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
Change by Inada Naoki :
--
pull_requests: +17140
pull_request: https://github.com/python/cpython/pull/17683
___
Python tracker
<https://bugs.python.org/issue39
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
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 is
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
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
Inada Naoki added the comment:
s/return NULL/return -1/g
--
___
Python tracker
<https://bugs.python.org/issue39087>
___
___
Python-bugs-list mailing list
Unsub
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
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 on
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -Python 3.8
___
Python tracker
<https://bugs.python.or
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/75bb07e92baa7267a61056d03d7e6b
Change by Inada Naoki :
--
pull_requests: +17093
pull_request: https://github.com/python/cpython/pull/17623
___
Python tracker
<https://bugs.python.org/issue39
Change by Inada Naoki :
--
pull_requests: +17092
pull_request: https://github.com/python/cpython/pull/17622
___
Python tracker
<https://bugs.python.org/issue39
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
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
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
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/de4481339dec395d70e350aa2
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/be7489cb43e25b6d8bfa07758
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/5c5d8f63d7d235e557ad20e7d
Change by Inada Naoki :
--
pull_requests: +17074
pull_request: https://github.com/python/cpython/pull/17605
___
Python tracker
<https://bugs.python.org/issue39
Change by Inada Naoki :
--
pull_requests: +17073
pull_request: https://github.com/python/cpython/pull/17604
___
Python tracker
<https://bugs.python.org/issue39
Change by Inada Naoki :
--
pull_requests: +17072
pull_request: https://github.com/python/cpython/pull/17603
___
Python tracker
<https://bugs.python.org/issue39
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/94d2c8df1a7657015a2fcdb4c
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
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue39028>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue36054>
___
___
Python-bugs-list mailing list
Unsubscribe:
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/cpyt
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/efefe25443c56988841ab96cdac013
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
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
Change by Inada Naoki :
--
components: +Library (Lib) -Unicode
___
Python tracker
<https://bugs.python.org/issue33684>
___
___
Python-bugs-list mailing list
Unsub
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/e0f148e6635480521036415bd782c3
Change by Inada Naoki :
--
pull_requests: +16944
pull_request: https://github.com/python/cpython/pull/17465
___
Python tracker
<https://bugs.python.org/issue33
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
-
Change by Inada Naoki :
--
pull_requests: +16941
pull_request: https://github.com/python/cpython/pull/17460
___
Python tracker
<https://bugs.python.org/issue33
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
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/03257949bc02a4afdf2ea1eb07a73f
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() anyway an
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 e65b3fa9f16537d20f5f37c25673ac899fcd7099 by Inada Naoki in branch
'3.7':
bpo-26730: Fix SpooledTemporaryFile data corruption (GH-17400)
https://github.com/python/cpython/commit/e65b3fa9f16537d20f5f37c25673ac
Change by Inada Naoki :
--
pull_requests: +16887
pull_request: https://github.com/python/cpython/pull/17407
___
Python tracker
<https://bugs.python.org/issue26
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/ea9835c5d154ab6a54eed627958473
Change by Inada Naoki :
--
pull_requests: +16880
pull_request: https://github.com/python/cpython/pull/17400
___
Python tracker
<https://bugs.python.org/issue26
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.see
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
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
Change by Inada Naoki :
--
priority: normal -> critical
___
Python tracker
<https://bugs.python.org/issue26730>
___
___
Python-bugs-list mailing list
Un
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 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/cpyt
Change by Inada Naoki :
--
nosy: -inada.naoki
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
New changeset 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/cpyt
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/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:
> 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
lengt
Change by Inada Naoki :
--
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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/138e7bbb0a5ed44bdd54605e8c58c8
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue24084>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Change by Inada Naoki :
--
resolution: -> third party
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue35856>
___
___
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/6cbc84fb99acb33dd659d7adb29a20
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
done.
--
___
Python tracker
<https://bugs.python.org/issue38613>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
<
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
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
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
libr
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 backwar
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
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
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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/9c11029bb41caab5576f354fbf808a
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
Inada Naoki added the comment:
Space is not trimmed. You can confirm there is a space by copy&paste 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
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue38373>
___
___
Python-bugs-list mailing list
Unsubscribe:
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:
>>
Inada Naoki added the comment:
Ah, my bad. I meant `perf stat python ...`.
--
___
Python tracker
<https://bugs.python.org/issue38477>
___
___
Python-bugs-list m
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"
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue38477>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
-
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
Change by Inada Naoki :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue36869>
___
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/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 8f9cc8771ffb8d0e21be287eaed42ae06087acca by Inada Naoki in branch
'master':
bpo-38026: fix inspect.getattr_static (GH-15676)
https://github.com/python/cpython/commit/8f9cc8771ffb8d0e21be287eaed42a
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
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
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue38006>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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/97a31c7b486c45ba9c21cab5fb9633
Change by Inada Naoki :
--
pull_requests: +15295
pull_request: https://github.com/python/cpython/pull/15627
___
Python tracker
<https://bugs.python.org/issue37
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/013e52fd340d9ef558013b546f2545
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 d765d81b8fb5ab707bfe8b079348e5038c298aa3 by Inada Naoki in branch
'master':
bpo-37781: use "z" for PY_FORMAT_SIZE_T (GH-15156)
https://github.com/python/cpython/commit/d765d81b8fb5ab707bfe
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
801 - 900 of 3039 matches
Mail list logo