Change by Inada Naoki :
--
nosy: +ncoghlan, skrah, vstinner
stage: patch review ->
title: Deprecate 'u' type in array module -> array: Deprecate 'u' type in array
module
___
Python tracker
<https
Inada Naoki added the comment:
I don't think calling APIs like _PyDict_CheckConsistency() is super useful.
Can the PR find bugs like issue33803 quickly?
I think calling tp_traverse is better.
static int
check_object(PyObject *obj, void *unused)
{
_PyObject_ASSERT(obj, Py_REFCN
Change by Inada Naoki :
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python
___
Python tracker
<https://bugs.python.org/issu
Change by Inada Naoki :
--
nosy: inada.naoki
priority: normal
severity: normal
status: open
title: Document PendingDeprecationWarning as deprecated
versions: Python 3.8
___
Python tracker
<https://bugs.python.org/issue36
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +12456
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36404>
___
___
Py
Inada Naoki added the comment:
New changeset d3c72a223a5f771f964fc34557c55eb5bfa0f5a0 by Inada Naoki in branch
'master':
bpo-36381: warn when no PY_SSIZE_T_CLEAN defined (GH-12473)
https://github.com/python/cpython/commit/d3c72a223a5f771f964fc34557c55e
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 3d07c1ee1d2d475b74816117981d6ec752c26c23 by Inada Naoki (Zackery
Spytz) in branch 'master':
bpo-36412: fix a possible crash in dictobject.c's new_dict() (GH-12519)
https://github.com/python/cpython/commit/3d07c1ee1d2d475b748161179
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
Thank you, nice catch!
How did you find it?
--
___
Python tracker
<https://bugs.python.org/issue36412>
___
___
Python-bugs-list m
New submission from Inada Naoki :
>>> desc = dict.__dict__['fromkeys']
>>> desc(int, [])
Traceback (most recent call last):
File "", line 1, in
TypeError: descriptor 'fromkeys' requires a subtype of 'dict' but received 'type
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +12502
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36433>
___
___
Py
Inada Naoki added the comment:
My mac is also 10.14.4. I don't have older macOS now. Could someone test this?
$ ulimit -Sa
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbyte
Inada Naoki added the comment:
I created simple program calling setrlimit and it succeeds.
I confirmed setrlimit argument is exactly same.
It's very curious why same Python code fails...
== c code
#include
#include
int
main(int argc, char *argv[])
{
struct rlimit rl;
in
Inada Naoki added the comment:
https://bugs.python.org/issue34602 may be relating to this.
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue34
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 think this issue is duplicate of https://bugs.python.org/issue34602
--
___
Python tracker
<https://bugs.python.org/issue36
Change by Inada Naoki :
--
pull_requests: +12524
___
Python tracker
<https://bugs.python.org/issue32380>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
New changeset bc284f0c7a9a7a9a4bf12c680823023a6770ce06 by Inada Naoki in branch
'master':
bpo-32380: add "versionadded: 3.8" to singledispatchmethod (GH-12580)
https://github.com/python/cpython/commit/bc284f0c7a9a7a9a4bf12c680823023a6770ce
Inada Naoki added the comment:
See https://github.com/python/cpython/pull/11930
I found this while I wrote tests about error messages.
--
___
Python tracker
<https://bugs.python.org/issue36
Change by Inada Naoki :
--
nosy: +lukasz.langa
___
Python tracker
<https://bugs.python.org/issue36457>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
New changeset 796cc6e3ad3617c1ea9e528663aac1a206230a28 by Inada Naoki (Thomas
Perl) in branch 'master':
bpo-36452: dictiter: track maximum iteration count (GH-12596)
https://github.com/python/cpython/commit/796cc6e3ad3617c1ea9e528663aac1
Inada Naoki added the comment:
Thank you. I like your patch.
--
components: +Interpreter Core
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Inada Naoki :
--
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
Getting rid of StringIO seems better approach to me.
.tell(), .seek(), and .truncate() behaviors are very different between
StringIO and TextIOWrapper.
--
nosy: +inada.naoki
___
Python tracker
<ht
Change by Inada Naoki :
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue19879>
___
___
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue24214>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
PEP 562 is implemented.
--
nosy: +inada.naoki
resolution: -> fixed
stage: -> resolved
status: open -> closed
versions: +Python 3.7 -Python 3.5
___
Python tracker
<https://bugs.python.or
Change by Inada Naoki :
--
pull_requests: +12542
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issue17110>
___
___
Python-
Inada Naoki added the comment:
There is no reasonable semantics for values view.
Keep it unimplemented.
--
nosy: +inada.naoki
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
___
Python tracke
Inada Naoki added the comment:
It is const char* now.
--
nosy: +inada.naoki
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
It's const char* for now.
--
nosy: +inada.naoki
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.pyth
Inada Naoki added the comment:
DEBUG_STATIS shows time for gc.
C profiler is needed to C level precise profiling.
--
nosy: +inada.naoki
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bug
Change by Inada Naoki :
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue5340>
___
___
Inada Naoki added the comment:
> Well, surely there are reasonable semantics :), because dict.values ==
> dict.values was comparable before we had view objects.
Because it was list.
Now values view is not sequence-like or set-like.
>>> {"a": "foo", &quo
Change by Inada Naoki :
--
resolution: -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder: -> Crash when RawIOBase.write(b) evaluates b.format
___
Python tracker
<https://bugs.python
Inada Naoki added the comment:
I don't think we need it. So I reject it.
If you believe many Pythonista really need it,
please start discussion on python-dev.
--
___
Python tracker
<https://bugs.python.org/is
Change by Inada Naoki :
--
resolution: -> duplicate
stage: test needed -> resolved
status: open -> closed
superseder: -> unittest fails with "Start directory is not importable" when
trying to run sourceless tests
___
Change by Inada Naoki :
--
versions: +Python 3.8 -Python 3.6
___
Python tracker
<https://bugs.python.org/issue26537>
___
___
Python-bugs-list mailing list
Unsub
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 5f45979b63300338b68709bfe817ddae563b93fd by Inada Naoki (Alexey
Izbyshev) in branch 'master':
bpo-35194: cjkcodec: check the encoded value is not truncated (GH-10432)
https://github.com/python/cpyt
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +12552
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue20844>
___
___
Py
Change by Inada Naoki :
--
resolution: -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder: -> SyntaxError: encoding problem: iso-8859-1 on Windows
___
Python tracker
<https://bugs.python
Inada Naoki added the comment:
Can you reproduce it on 3.7 or master branch?
Python 3.5 is security fix only mode now.
https://devguide.python.org/#status-of-python-branches
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.
Inada Naoki added the comment:
New changeset 38f4e468d4b1e135c67337c18ae142193ba8 by Inada Naoki in branch
'master':
bpo-17110: doc: add note how to get bytes from sys.argv (GH-12602)
https://github.com/python/cpython/commit/38f4e468d4b1e135c67337c18ae142193ba8
-
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.7, Python 3.8 -Python 3.2, Python 3.3, Python 3.4
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
I don' think they are modern-style vs legacy-style.
When explicit default value is present, the default value is documented in
signature like `param=42`.
On the other hand, when default value is not explicit (just an placeholder),
the parameter is expr
Inada Naoki added the comment:
New changeset 62f9588663ebfea1735e9d142ef527395a6c2b95 by Inada Naoki in branch
'master':
bpo-36026: make descr error message consistent (GH-11930)
https://github.com/python/cpython/commit/62f9588663ebfea1735e9d142ef527
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 10654c19b5e6efdf3c529ff9bf7bcab89bdca1c1 by Inada Naoki in branch
'master':
bpo-20844: open script file with "rb" mode (GH-12616)
https://github.com/python/cpython/commit/10654c19b5e6efdf3c529ff9bf7bcab89bdca1c1
-
Change by Inada Naoki :
--
pull_requests: +12579
___
Python tracker
<https://bugs.python.org/issue20844>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
New changeset 8384670615a90418fc52c3881242b7c10d1f2b13 by Inada Naoki in branch
'3.7':
bpo-20844: open script file with "rb" mode (GH-12616)
https://github.com/python/cpython/commit/8384670615a90418fc52
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.7, Python 3.8 -Python 3.4, Python 3.5, Python 3.6
___
Python tracker
<https://bugs.python.or
Change by Inada Naoki :
--
pull_requests: +12585
___
Python tracker
<https://bugs.python.org/issue35838>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
New changeset 04694a306b8f4ab54ef5fc4ba673c26fa53b0ac1 by Inada Naoki in branch
'master':
bpo-35838: document optionxform must be idempotent (GH-12656)
https://github.com/python/cpython/commit/04694a306b8f4ab54ef5fc4ba673c2
Inada Naoki added the comment:
New changeset b8311cf5e5d72f8a8aa688b7da1760d6a74a4d72 by Inada Naoki (Thomas
Perl) in branch 'master':
bpo-36473: add maximum iteration check for dict .values() and .items()
(GH-12619)
https://github.com/python/cpyt
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
title: ConfigParser calls optionxform twice when assigning dict ->
ConfigParser: document optionxform must be idempotent
___
Py
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue36521>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue26415>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Inada Naoki :
New changeset 176d26364bb67801fa522f52f20cbe44420d6942 by Inada Naoki in branch
'master':
bpo-36404: recommend DeprecationWarning over PendingDeprecationWarning
(GH-12505)
https://github.com/python/cpython/commit/176d26364bb67801fa522f52f20cbe
Inada Naoki added the comment:
After discussion on ML, I just recommend DeprecationWarning
over PendingDeprecationWarning in this time.
PendingDeprecationWarning is not deprecated for now.
--
title: Document PendingDeprecationWarning as deprecated -> Docum
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
TextIOWrapper now has reconfigure() method.
Can this issue be closed?
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue14
Inada Naoki added the comment:
New changeset f66e336f455b5a6bb0ca857d61c43be410d0df13 by Inada Naoki (Cheryl
Sabella) in branch 'master':
bpo-29202: improve dict iteration (GH-11900)
https://github.com/python/cpython/commit/f66e336f455b5a6bb0ca857d61c43b
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
Serhiy, can this issue be closed?
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue35459>
___
___
Python-bug
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue36050>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
issue1296004 is too old (512MB RAM machine!) and I can not confirm it.
But I think it was caused by inefficient realloc() in CRT.
See
https://github.com/python/cpython/blob/6c52d76db8b1cb836c136bd6a1044e85bfe8241e/Lib/socket.py#L298-L303
_fileobject called
Inada Naoki added the comment:
Additionally, _safe_read calls fp.read() multiple times to handle EINTR.
But EINTR is handled by socket module now (PEP 475).
Now the function can be very simple.
--
___
Python tracker
<https://bugs.python.
Change by Inada Naoki :
--
keywords: +patch
pull_requests: +12623
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36050>
___
___
Py
Change by Inada Naoki :
--
assignee: -> lemburg
___
Python tracker
<https://bugs.python.org/issue35551>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue36044>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
There is idea about reading docstring lazily, when func.__doc__ is accessed.
I don't think the idea can be implemented by 3.8. But if we change code object
now, I want new API can be used to implement this idea.
One breaking change is better tha
Inada Naoki added the comment:
New changeset a0da131a74acdb147ecd64d729c86d65fecd0cff by Inada Naoki (Dmitry
Marakasov) in branch 'master':
bpo-36527: silence -Wunused-parameter warnings in object.h (GH-12688)
https://github.com/python/cpython/commit/a0da131a74acdb147ecd64d729c86d
Inada Naoki added the comment:
New changeset d6bf6f2d0c83f0c64ce86e7b9340278627798090 by Inada Naoki in branch
'master':
bpo-36050: optimize HTTPResponse.read() (GH-12698)
https://github.com/python/cpython/commit/d6bf6f2d0c83f0c64ce86e7b934027
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 b7eec94c0e86f8ac318b135ca9146fff32b7203a by Inada Naoki (Michael
Felt) in branch 'master':
bpo-36503: remove references to 'aix3' and 'aix4' (GH-12658)
https://github.com/python/cpython/commit/b7eec94c0e
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
Inada Naoki added the comment:
I think this bug is critical, because it may break user's data silently.
If we can not fix this bug soon, how about adding note in document and raise
warning?
--
___
Python tracker
<https://bugs.py
Inada Naoki added the comment:
I concur with Raymond.
If you really need this feature, please discuss on python-dev ML.
--
nosy: +inada.naoki
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracke
Change by Inada Naoki :
--
resolution: -> wont fix
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Inada Naoki added the comment:
I'm +0 too. Since there are no +1 from core dev for a long time,
I close this issue for now.
--
resolution: -> wont fix
stage: patch review -> resolved
status: open -> closed
___
Python t
Inada Naoki added the comment:
Since we didn't raise DeprecationWarning, I think at least one version with
DeprecationWarning is preferable.
--
nosy: +inada.naoki
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/is
Inada Naoki added the comment:
Hm, what happened if subclass of BytesIO overrides `write` but not `writelines`?
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue34
Inada Naoki added the comment:
I agree with Serhiy. Benefit seems too small to add new opcode.
> I could seek another way of implementing the same behaviour without an
> additional opcode?
How about converting `[x for x in it]` to `[*it]`
Inada Naoki added the comment:
$ python3 -m timeit -s 'r=range(1000)' -- '[x for x in r]'
5000 loops, best of 5: 40 usec per loop
$ python3 -m timeit -s 'r=range(1000)' -- '[*r]'
2 loops, best of 5: 17.3 usec per loop
--
__
Inada Naoki added the comment:
> I should have been more explicit, this patch improves the performance of all
> list comprehensions that don’t have an if clause.
But in these cases, overhead of reallocation will be smaller than simpl
Inada Naoki added the comment:
> > This might cause a MemoryError when the __length_hint__ of the source
> > returns a too large value, even when the actual size of the comprehension
> > is smaller, e.g.:
>
> The current implementation of list comprehensions raise nei
Inada Naoki added the comment:
> Try
>
> [x for x in range(2**1000)]
>
> in a REPL. It doesn’t raise anything, it tries to create a list that will
> eventually exceed PY_SIZE_MAX, but it only crashes once it reaches that
> iteration.
It is expected behavior.
> This
Inada Naoki added the comment:
"useful" doesn't mean "use it as-is".
It is just a hint. It will be wrong.
See here for list example:
https://github.com/python/cpython/blob/7a0630c530121725136526a88c49589b54da6492/Objec
Inada Naoki added the comment:
I'm sorry. list_extend raises OverflowError too.
--
___
Python tracker
<https://bugs.python.org/issue36551>
___
___
Pytho
Inada Naoki added the comment:
Maybe, we need C version of memoryview.release() to invalidate pointer in
memoryview object.
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue35
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue15903>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Inada Naoki :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue15994>
___
___
Python-bugs-list mailing list
Unsubscribe:
Inada Naoki added the comment:
New changeset 58721a903074d28151d008d8990c98fc31d1e798 by Inada Naoki (Mickaël
Schoentgen) in branch 'master':
bpo-35416: fix potential resource warnings in distutils (GH-10918)
https://github.com/python/cpython/commit/58721a903074d28151d008d8990c98
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 d012d64b6a513e760abb6745f7f7ce5e6a31f274 by Inada Naoki
(cocoatomo) in branch '2.7':
bpo-30134: add an explanation of BytesWarning (GH-1249)
https://github.com/python/cpython/commit/d012d64b6a513e760abb6745f7f7ce5e6a31f274
-
Change by Inada Naoki :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
1501 - 1600 of 3039 matches
Mail list logo