[issue36299] array: Deprecate 'u' type in array module

2019-03-22 Thread Inada Naoki
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

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-03-22 Thread Inada Naoki
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

[issue36404] Document PendingDeprecationWarning as deprecated

2019-03-22 Thread Inada Naoki
Change by Inada Naoki : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker <https://bugs.python.org/issu

[issue36404] Document PendingDeprecationWarning as deprecated

2019-03-22 Thread Inada Naoki
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

[issue36404] Document PendingDeprecationWarning as deprecated

2019-03-22 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12456 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36404> ___ ___ Py

[issue36381] Deprecate "#" argument format without PY_SSIZE_T_CLEAN

2019-03-23 Thread Inada Naoki
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

[issue36381] Deprecate "#" argument format without PY_SSIZE_T_CLEAN

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

[issue36412] A possible crash in dictobject.c's new_dict()

2019-03-23 Thread Inada Naoki
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

[issue36412] A possible crash in dictobject.c's new_dict()

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

[issue36412] A possible crash in dictobject.c's new_dict()

2019-03-23 Thread Inada Naoki
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

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-26 Thread Inada Naoki
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

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-26 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12502 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36433> ___ ___ Py

[issue36432] Running python test suite fails on macOS 10.14.4 with resource.RLIMIT_STACK error

2019-03-26 Thread Inada Naoki
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

[issue36432] Running python test suite fails on macOS 10.14.4 with resource.RLIMIT_STACK error

2019-03-26 Thread Inada Naoki
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

[issue34602] python3 resource.setrlimit strange behaviour under macOS

2019-03-26 Thread Inada Naoki
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

[issue36433] Unhelpful error message in classmethoddescr_call()

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

[issue36432] Running python test suite fails on macOS 10.14.4 with resource.RLIMIT_STACK error

2019-03-26 Thread Inada Naoki
Inada Naoki added the comment: I think this issue is duplicate of https://bugs.python.org/issue34602 -- ___ Python tracker <https://bugs.python.org/issue36

[issue32380] functools.singledispatch interacts poorly with methods

2019-03-27 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12524 ___ Python tracker <https://bugs.python.org/issue32380> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32380] functools.singledispatch interacts poorly with methods

2019-03-27 Thread Inada Naoki
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

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-27 Thread Inada Naoki
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

[issue36457] functools.singledispatchmethod interacts poorly with subclasses

2019-03-27 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +lukasz.langa ___ Python tracker <https://bugs.python.org/issue36457> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36452] Detect dict iteration "overflow" when changing keys

2019-03-27 Thread Inada Naoki
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

[issue36452] Detect dict iteration "overflow" when changing keys

2019-03-27 Thread Inada Naoki
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

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

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

[issue26730] SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written

2019-03-28 Thread Inada Naoki
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

[issue19879] imageop: bug in error handler

2019-03-28 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue19879> ___ ___

[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

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

[issue23126] Add Python hook function to replace NameError

2019-03-28 Thread Inada Naoki
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

[issue17110] sys.argv docs should explaining how to handle encoding issues

2019-03-28 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12542 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue17110> ___ ___ Python-

[issue12445] dict view values objects are missing tp_richcmp and tp_as_number

2019-03-28 Thread Inada Naoki
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

[issue21019] PyMethodDef ml_name is char* instead of const char*

2019-03-28 Thread Inada Naoki
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

[issue21022] PyMemberDef doc is char* instead of const char*

2019-03-28 Thread Inada Naoki
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

[issue32950] profiling python gc

2019-03-28 Thread Inada Naoki
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

[issue5340] Change in cgi behavior breaks existing software

2019-03-28 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue5340> ___ ___

[issue12445] dict view values objects are missing tp_richcmp and tp_as_number

2019-03-28 Thread Inada Naoki
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

[issue34826] io.BufferedReader crashes in 2.7 on memoryview attribute access

2019-03-28 Thread Inada Naoki
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

[issue12445] dict view values objects are missing tp_richcmp and tp_as_number

2019-03-28 Thread Inada Naoki
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

[issue32419] Add unittest support for pyc projects

2019-03-28 Thread Inada Naoki
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 ___

[issue26537] ConfigParser has optionxform, but not sectionxform

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

[issue35194] A typo in a constant in cp932 codec

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

[issue35194] A typo in a constant in cp932 codec

2019-03-29 Thread Inada Naoki
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

[issue20844] SyntaxError: encoding problem: iso-8859-1 on Windows

2019-03-29 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12552 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue20844> ___ ___ Py

[issue27797] ASCII file with UNIX line conventions and enough lines throws SyntaxError when ASCII-compatible codec is declared

2019-03-29 Thread Inada Naoki
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

[issue36469] Stuck during interpreter exit, attempting to take the GIL

2019-03-29 Thread Inada Naoki
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.

[issue17110] sys.argv docs should explaining how to handle encoding issues

2019-03-29 Thread Inada Naoki
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 -

[issue17110] sys.argv docs should explaining how to handle encoding issues

2019-03-29 Thread Inada Naoki
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

[issue36490] Modernize function signature format in Archiving section of shutil doc

2019-03-31 Thread Inada Naoki
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

[issue36026] Different error message when sys.settrace is used

2019-04-01 Thread Inada Naoki
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

[issue36026] Different error message when sys.settrace is used

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

[issue20844] SyntaxError: encoding problem: iso-8859-1 on Windows

2019-04-01 Thread Inada Naoki
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 -

[issue20844] SyntaxError: encoding problem: iso-8859-1 on Windows

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

[issue20844] SyntaxError: encoding problem: iso-8859-1 on Windows

2019-04-01 Thread Inada Naoki
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

[issue20844] SyntaxError: encoding problem: iso-8859-1 on Windows

2019-04-01 Thread Inada Naoki
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

[issue35838] ConfigParser calls optionxform twice when assigning dict

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

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-04-02 Thread Inada Naoki
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

[issue36473] dictkeysobject: Add maximum iteration check for .values() and .items()

2019-04-02 Thread Inada Naoki
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

[issue36473] dictkeysobject: Add maximum iteration check for .values() and .items()

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

[issue35838] ConfigParser: document optionxform must be idempotent

2019-04-02 Thread Inada Naoki
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

[issue36521] Consider removing docstrings from co_consts in code objects

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

[issue26415] Excessive peak memory consumption by the Python parser

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

[issue36404] Document PendingDeprecationWarning as deprecated

2019-04-05 Thread Inada Naoki
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

[issue36404] Document PendingDeprecationWarning is not so useful.

2019-04-05 Thread Inada Naoki
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

[issue36404] Document PendingDeprecationWarning is not so useful.

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

[issue14017] Make it easy to create a new TextIOWrapper based on an existing

2019-04-05 Thread Inada Naoki
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

[issue29202] Improve dict iteration

2019-04-05 Thread Inada Naoki
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

[issue29202] Improve dict iteration

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

[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-04-05 Thread Inada Naoki
Inada Naoki added the comment: Serhiy, can this issue be closed? -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.org/issue35459> ___ ___ Python-bug

[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

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

[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2019-04-05 Thread Inada Naoki
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

[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2019-04-05 Thread Inada Naoki
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.

[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

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

[issue35551] Encoding and alias issues

2019-04-05 Thread Inada Naoki
Change by Inada Naoki : -- assignee: -> lemburg ___ Python tracker <https://bugs.python.org/issue35551> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue36044] PROFILE_TASK for PGO build is not a good workload

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

[issue36521] Consider removing docstrings from co_consts in code objects

2019-04-05 Thread Inada Naoki
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

[issue36527] unused parameter warnings in Include/object.h (affecting building third party code)

2019-04-06 Thread Inada Naoki
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

[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2019-04-06 Thread Inada Naoki
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

[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

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

[issue36527] unused parameter warnings in Include/object.h (affecting building third party code)

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

[issue36503] remove references to aix3 and aix4 in \*.py

2019-04-07 Thread Inada Naoki
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

[issue36503] remove references to aix3 and aix4 in \*.py

2019-04-07 Thread Inada Naoki
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

[issue26730] SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written

2019-04-07 Thread Inada Naoki
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

[issue31155] Encode set, frozenset, bytearray, and iterators as json arrays

2019-04-08 Thread Inada Naoki
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

[issue32534] Speed-up list.insert: use memmove()

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

[issue33228] Use Random.choices in tempfile

2019-04-08 Thread Inada Naoki
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

[issue33461] json.loads(encoding=) does not emit deprecation warning.

2019-04-08 Thread Inada Naoki
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

[issue34488] improve performance of BytesIO.writelines() by avoiding creation of unused PyLongs

2019-04-08 Thread Inada Naoki
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

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-04-08 Thread Inada Naoki
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]`

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-04-08 Thread Inada Naoki
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 -- __

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-04-08 Thread Inada Naoki
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

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-04-08 Thread Inada Naoki
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

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-04-08 Thread Inada Naoki
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

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-04-08 Thread Inada Naoki
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

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-04-08 Thread Inada Naoki
Inada Naoki added the comment: I'm sorry. list_extend raises OverflowError too. -- ___ Python tracker <https://bugs.python.org/issue36551> ___ ___ Pytho

[issue35210] Use bytes + memoryview + resize instead of bytesarray + array in io.RawIOBase.read

2019-04-08 Thread Inada Naoki
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

[issue15903] Make rawiobase_read() read directly to bytes object

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

[issue15994] memoryview to freed memory can cause segfault

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

[issue35416] Fix potential resource warnings in distutils

2019-04-08 Thread Inada Naoki
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

[issue35416] Fix potential resource warnings in distutils

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

[issue30134] BytesWarning is missing from the documents

2019-04-08 Thread Inada Naoki
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 -

[issue30134] BytesWarning is missing from the documents

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

<    11   12   13   14   15   16   17   18   19   20   >