INADA Naoki added the comment:
Nice! VS2017 is much lighter than VS2015 for install size!
https://blogs.msdn.microsoft.com/vcblog/2016/08/22/the-lightweight-visual-studio-15-installer/
--
nosy: +inada.naoki
___
Python tracker
<http://bugs.python.
INADA Naoki added the comment:
w_ref() depends on refcnt already.
I don't think removing *_INTERN opcode makes PYC reproducible.
https://github.com/python/cpython/blob/1f06a680de465be0c24a78ea3b610053955daa99/Python/marshal.c#L269-L271
I think "intern one string, then share it 10
INADA Naoki added the comment:
> We end up interning each reference individually currently.
But interning interned string is much faster. It only checks flag.
Interning normal string requires dict lookup.
--
___
Python tracker
&l
INADA Naoki added the comment:
Maybe, PyDict_ClearFreeList() is not called?
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue31408>
___
___
INADA Naoki added the comment:
The discussion on [1] was for removing pure Python implementation,
not about changing C implementation.
[1]: https://mail.python.org/pipermail/python-dev/2017-September/149147.html
While I withdrawed my suggestion about removing pure Python implementation,
I
INADA Naoki added the comment:
> Just for the record, here is the draft of the post I was going to make on
> python-dev but didn't prove to be necessary.
Thank you for write down your thought.
For move_to_end(), I admit new behavior is *amortized* O(1) and
current behavior is *wors
INADA Naoki added the comment:
> I'm unclear about whether you understand and acknowledge why the
> doubly-linked list was chosen and what kind of workloads it supports (we
> didn't choose it because it was either convenient or fun, we chose it because
> it was an algor
New submission from INADA Naoki:
I used my local patch to profile import time. I think it's useful for
3rd party authors.
For example:
./python -Ximportprofile -c 'import traceback'
- _codecs 71 [us]
- codecs 677 [us]
- encodings.aliases 412 [us]
- encodings 1688 [us]
-
Changes by INADA Naoki :
--
keywords: +patch
pull_requests: +3483
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31415>
___
___
Py
INADA Naoki added the comment:
> Original Raymond's design didn't preserve ordering during deletion.
Original Raymond's pure Python implementation rebuilds index table.
Without it, proving can be very long or infinite loop.
See L89-92 in http://code.activestate.com/recipe
INADA Naoki added the comment:
> Eric Snow added the comment:
>
> On Sun, Sep 10, 2017 at 10:27 PM, Serhiy Storchaka
> wrote:
>> Note that mixed insertion and deletion is worst-case O(n) in current
>> implementation.
>
> Could you elaborate? Note that
INADA Naoki added the comment:
> I would side with Inada in thinking they both give the same amortized
> complexity, but beyond that, benchmarks are the real answer. There is little
> value in keeping the current implementation of OrderedDict *if* benchmarks
> show that it is r
INADA Naoki added the comment:
Interesting optimization. But I don't know how common `for c in s`
or `s[i]` is used for Japanese text.
--
___
Python tracker
<https://bugs.python.org/is
INADA Naoki added the comment:
You reported stack trace on Github pull request.
But discussion should be made here, not in pull request.
As far as reading traceback, your problem is solved already in Python 3.6, by
PEP 528.
--
nosy: +inada.naoki
INADA Naoki added the comment:
It means μs (micro seconds), in ASCII.
On 2017年9月20日(水) 3:35 Brett Cannon wrote:
>
> Brett Cannon added the comment:
>
> What does the "[us]" mean?
>
> --
> nosy: +brett.cannon
>
> _
INADA Naoki added the comment:
I worried about people think we recommend it when we support it, while this is
just a request from one person, not recommendation after wide discussion.
But it doesn't affect to static tools than I suspected. Tools like
autocompletion should su
INADA Naoki added the comment:
My personal opinion is: support abstractmethod only when the descriptor is
useful for define interface with ABC.
In case of cached_property, it's not. It is just a property as interface
level. Caching is just an implementation.
In case of update_wr
INADA Naoki added the comment:
I am not sure PR 4856 is enhancement or bugfix.
But I think it's worth enough to backport to 3.6 and 3.7.
It caused a real UX problem.
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/is
Change by INADA Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue35295>
___
___
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:
> What is also useful to know, is that I'm observing this on a legacy RHEL 6
> system *with a customized kernel* part of the Scyld ClusterWare
> (https://www.penguincomputing.com/products/software/scyld-clusterware/) that
> *cannot* be upda
Change by INADA Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
INADA Naoki added the comment:
I agree that modifying tuple is bad idea in general case.
But in case of constants, in-place modify is the easiest approach.
Our purpose is "merging" constant. On the other hand, "build new tuple and
replace old tuple" approach makes two
Change by INADA Naoki :
--
pull_requests: +10008
___
Python tracker
<https://bugs.python.org/issue34100>
___
___
Python-bugs-list mailing list
Unsubscribe:
INADA Naoki added the comment:
New changeset 82daa60defbd6497efdaa6c1132ecc8563122ed5 by INADA Naoki in branch
'master':
bpo-30167: Remove __cached__ from __main__ when removing __file__ (GH-7415)
https://github.com/python/cpython/commit/82daa60defbd6497efdaa6c1132ecc
Change by INADA Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
INADA Naoki added the comment:
microbench:
$ ./python.patched -m perf timeit --compare-to ./python.master -s 'o="foo"'
'o.encode'
python.master: . 29.3 ns +- 0.6 ns
python.patched: . 30.9 ns +- 1.3 ns
Mean +- std dev:
INADA Naoki added the comment:
$ ./python.patched -m perf timeit --compare-to ./python.master -s 'o="foo"'
'o.encode' --duplicate=1
python.master: . 23.1 ns +- 0.5 ns
python.patched: . 24.6 ns +- 0.5 ns
Mean +- st
INADA Naoki added the comment:
>
> where the *child* process (`self.pid == 0`) get stuck while calling
> _dup2(c2pwrite = 4, 1) which in turn calls os.dup2(a = 4, b = 1).
>
Doesn't child process get stuck while writing stdout?
>
> It would also be interesting to
INADA Naoki added the comment:
> One way to deal with that would be to let a Task have a Future.
> "Prefer composition over inheritance" as they say.
>
> I want to work on PR for this if nobody goes against it...
I'm not against it, unless it doesn't
Change by INADA Naoki :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
versions: +Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.or
INADA Naoki added the comment:
New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt
McCormick) in branch 'master':
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c
INADA Naoki added the comment:
New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt
McCormick) in branch 'master':
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c
INADA Naoki added the comment:
New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt
McCormick) in branch 'master':
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c
INADA Naoki added the comment:
New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt
McCormick) in branch 'master':
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c
INADA Naoki added the comment:
New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt
McCormick) in branch 'master':
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c
INADA Naoki added the comment:
New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt
McCormick) in branch 'master':
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c
INADA Naoki added the comment:
New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt
McCormick) in branch 'master':
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c
INADA Naoki added the comment:
New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt
McCormick) in branch 'master':
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c
INADA Naoki added the comment:
New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt
McCormick) in branch 'master':
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c
INADA Naoki added the comment:
New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt
McCormick) in branch '2.7':
bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)
https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1
INADA Naoki added the comment:
New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt
McCormick) in branch 'master':
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c
INADA Naoki added the comment:
New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt
McCormick) in branch 'master':
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c
INADA Naoki added the comment:
New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt
McCormick) in branch '2.7':
bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)
https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1
INADA Naoki added the comment:
New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt
McCormick) in branch '2.7':
bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)
https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1
INADA Naoki added the comment:
New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt
McCormick) in branch '2.7':
bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)
https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1
INADA Naoki added the comment:
New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt
McCormick) in branch '2.7':
bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)
https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1
INADA Naoki added the comment:
New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt
McCormick) in branch 'master':
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c
INADA Naoki added the comment:
New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt
McCormick) in branch '2.7':
bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)
https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1
INADA Naoki added the comment:
New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt
McCormick) in branch '2.7':
bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)
https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1
INADA Naoki added the comment:
New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt
McCormick) in branch '2.7':
bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)
https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1
INADA Naoki added the comment:
New changeset 000b8093a13f1c5bfe4b65a4dc1b23e0db553a8f by INADA Naoki (Matt
McCormick) in branch '2.7':
bpo-11566: Remove hypot -> _hypot macro for very old compilers (GH-11283)
https://github.com/python/cpython/commit/000b8093a13f1c5bfe4b65a4dc1
INADA Naoki added the comment:
New changeset 87667c54c6650751c5d7bf7b9e465c8c4af45f71 by INADA Naoki (Matt
McCormick) in branch 'master':
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
https://github.com/python/cpython/commit/87667c54c6650751c5d7bf7b9e465c
INADA Naoki added the comment:
No plan for removal. See https://bugs.python.org/issue28886#msg282582
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue35
Change by INADA Naoki :
--
versions: -Python 3.6
___
Python tracker
<https://bugs.python.org/issue16806>
___
___
Python-bugs-list mailing list
Unsubscribe:
INADA Naoki added the comment:
New changeset 995d9b92979768125ced4da3a56f755bcdf80f6e by INADA Naoki (Anthony
Sottile) in branch 'master':
bpo-16806: Fix `lineno` and `col_offset` for multi-line string tokens (GH-10021)
https://github.com/python/cpyt
INADA Naoki added the comment:
Should we backport this to 3.7?
AST changes including bugfix affects existing software unexpectedly.
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue16
INADA Naoki added the comment:
I think it's easy to solve this particular case.
But there may be some other cases.
optionxform must be idempotent? If so, this is document issue.
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.py
INADA Naoki added the comment:
_queue is normal extension module, not builtin module.
In my environment:
>>> import _queue
>>> _queue.__file__
'/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_queue.cpython-37m-da
New submission from INADA Naoki :
GH-6819 (bpo-33504) changed OrderedDict to dict, and removed note about
randomness of dict order in dict.
But it is only for 3.8. Python 3.7 document should remove the note too.
--
assignee: docs@python
components: Documentation
messages: 334609
Change by INADA Naoki :
--
keywords: +patch
pull_requests: +11567
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35865>
___
___
Py
Change by INADA Naoki :
--
keywords: +patch, patch, patch
pull_requests: +11567, 11568, 11569
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by INADA Naoki :
--
keywords: +patch, patch
pull_requests: +11567, 11568
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by INADA Naoki :
--
pull_requests: +11570
___
Python tracker
<https://bugs.python.org/issue33504>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by INADA Naoki :
--
pull_requests: +11570, 11571
___
Python tracker
<https://bugs.python.org/issue33504>
___
___
Python-bugs-list mailing list
Unsub
Change by INADA Naoki :
--
pull_requests: +11570, 11571, 11572
___
Python tracker
<https://bugs.python.org/issue33504>
___
___
Python-bugs-list mailing list
Unsub
INADA Naoki added the comment:
This should be reverted in 3.7.
bpo-33504 changed dict_type from 3.8+, not 3.7.
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue33
INADA Naoki added the comment:
I revert this change in GH-35865.
--
___
Python tracker
<https://bugs.python.org/issue33800>
___
___
Python-bugs-list mailin
INADA Naoki added the comment:
Also revert GH-7542 (bpo-33800) too.
--
___
Python tracker
<https://bugs.python.org/issue35865>
___
___
Python-bugs-list mailin
INADA Naoki added the comment:
I'm sorry. bpo-35865 (GH-11711)
--
___
Python tracker
<https://bugs.python.org/issue33800>
___
___
Python-bugs-list m
INADA Naoki added the comment:
New changeset 0897e0c597c065f043e4286d01f16f473ab664ee by Inada Naoki in branch
'master':
bpo-33504: fix wrong "versionchanged" (GH-11712)
https://github.com/python/cpython/commit/0897e0c597c065f043e4286d01f16f473ab664ee
-
INADA Naoki added the comment:
New changeset 59014449721966a7890f6323616431ad869ec7cc by Inada Naoki in branch
'3.7':
bpo-35865: doc: Remove wrong note and directives (GH-11711)
https://github.com/python/cpython/commit/59014449721966a7890f6323616431
Change by INADA Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by INADA Naoki :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue35825>
___
___
INADA Naoki added the comment:
ref: https://bugs.chromium.org/p/webrtc/issues/detail?id=9269
macOS and iOS don't support pthread_condattr_setclock yet.
--
components: +Interpreter Core -None
versions: +Python 3.8 -Python 3.2, Python 3.3
___
P
Change by INADA Naoki :
--
pull_requests: +11601
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue12822>
___
___
Python-bugs-list mai
Change by INADA Naoki :
--
pull_requests: +11601, 11602
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue12822>
___
___
Python-bugs-lis
INADA Naoki added the comment:
New changeset cd90f6a3692e0f7ef0a13aae651e19a08d1f9b31 by Inada Naoki
(Harmandeep Singh) in branch 'master':
bpo-20001: update pathlib landing image (GH-11304)
https://github.com/python/cpython/commit/cd90f6a3692e0f7ef0a13aae651e19a08d1f9b31
-
Change by INADA Naoki :
--
nosy: -inada.naoki
versions: +Python 3.7, Python 3.8 -Python 3.5, Python 3.6
___
Python tracker
<https://bugs.python.org/issue20
Change by INADA Naoki :
--
pull_requests: +11710, 11711
___
Python tracker
<https://bugs.python.org/issue20001>
___
___
Python-bugs-list mailing list
Unsub
Change by INADA Naoki :
--
pull_requests: +11710
___
Python tracker
<https://bugs.python.org/issue20001>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by INADA Naoki :
--
pull_requests: +11710, 11711, 11712
___
Python tracker
<https://bugs.python.org/issue20001>
___
___
Python-bugs-list mailing list
Unsub
INADA Naoki added the comment:
New changeset 21ab7744ae30bff24bcc9e075a96e98137b90a37 by Inada Naoki in branch
'3.7':
bpo-20001: update pathlib landing image (GH-11304)
https://github.com/python/cpython/commit/21ab7744ae30bff24bcc9e075a96e98137b90a37
--
nosy: +i
INADA Naoki added the comment:
I think this issue is fixed by #21963.
--
resolution: -> fixed
stage: test needed -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
INADA Naoki added the comment:
> Thus, even if this eventually deserves to be closed as a non-issue, I'd
> rather go on the safe side and double check if this is the desirable
> behaviour or if something went wrong with the commits previously mentioned.
As Serhiy mention
INADA Naoki added the comment:
Is this make sense?
>>> set.add(0)
Traceback (most recent call last):
File "", line 1, in
TypeError: descriptor 'add' for type 'set' doesn't apply to type 'int'
>>> set.add.__get__(0)
Trac
Change by INADA Naoki :
--
keywords: +patch
pull_requests: +11954
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36026>
___
___
Py
INADA Naoki added the comment:
@Serhiy Error messages are not changed in 3.7. They are different from 3.6.
Optimization in 3.7 changed "code path", not error message.
So it's difficult to fix this without breaking existing behavior.
Python 3.6.7 (default, Dec 18 2018, 17:32
INADA Naoki added the comment:
BTW, should we have different error message for class methods and instance
mehtods?
* method: "descriptor 'X' for 'Y' objects doesn't apply to a 'Z' object"
* classmethod: "descriptor 'X' for 'Y
INADA Naoki added the comment:
@Amit Please confirm docs.python.org before submitting issue.
#33460 fixed it already.
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue36
INADA Naoki added the comment:
Uh! You meant Python 2.7!!
It doesn't make sense to improve Python 2.7 tutorial.
If you're reading Python 2 tutorial, please read 3.7 tutorial instead!!!
--
___
Python tracker
<https://bugs.python.o
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 001fee14e0f2ba5f41fb733adc69d5965925a094 by Inada Naoki in branch
'master':
bpo-12822: use monotonic clock for condvar if possible (GH-11723)
https://github.com/python/cpython/commit/001fee14e0f2ba5f41fb733adc69d5
Change by INADA Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8 -Python 3.5
___
Python tracker
<https://bugs.python.or
INADA Naoki added the comment:
__new__ is special function too. It is converted as staticmethod when class
creation.
Since manually converting to (static|class)method is allowed, I don't think
automatic conversion should be applied when attach after class creation.
$ python3
Python
Change by INADA Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue22213>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by INADA Naoki :
--
resolution: -> fixed
stage: test needed -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by INADA Naoki :
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue29278>
___
___
Change by INADA Naoki :
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue35822>
___
___
INADA Naoki added the comment:
Fixed in bpo-35257
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
1201 - 1300 of 3039 matches
Mail list logo