[issue34945] regression with ./python -m test and pdb

2018-10-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +9522 stage: -> patch review ___ Python tracker ___ ___

[issue16516] argparse types (and actions) must be hashable

2018-10-28 Thread Braden Groom
Change by Braden Groom : -- pull_requests: +9523 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2018-10-28 Thread Romain Geissler
Romain Geissler added the comment: Hi, Yes this bug report is still valid. I just tried compiling Python 3.7.1 on linux with libedit installed (https://thrysoee.dk/editline/) but not libreadline, and indeed the configure script fails to detect I have it installed and falls back on the

[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: > I would like to see Py_LOCAL_INLINE removed, too, fwiw. Oh. Why? Do you want to directly use "static" and "static inline"? I guess that Py_LOCAL and Py_LOCAL_INLINE have been added to use __fastcall with MSVC. ... __fastcall is mostly interesting in x86

[issue35091] Objects/listobject.c: gallop functions rely on signed integer overflow

2018-10-28 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > This doesn't actually matter - the code can never trigger. Yes, I considered this, and wondered why assert wasn't used in the first place, but the explicit check with a comment suggested that possibility of overflow was deemed real. I've submitted a

[issue35091] Objects/listobject.c: gallop functions rely on signed integer overflow

2018-10-28 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- pull_requests: +9520 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21263] test_gdb failures on os x 10.9.2

2018-10-28 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: I am trying to create a PR for this and was thinking of somehow updating test.support, in order for someone to be able to find out what compiler was used to build python. Would that make sense? Also, in case this is indeed something we'd like in

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6015cc50bc38b9e920ce4986ee10658eaa14f561 by Serhiy Storchaka in branch 'master': bpo-32892: Support subclasses of base types in isinstance checks for AST constants. (GH-9934)

[issue35054] Add more index entries for symbols

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9495 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35089] Remove typing.io and typing.re from documentation

2018-10-28 Thread Sebastian Rittau
New submission from Sebastian Rittau : Per the discussion in https://github.com/python/typing/issues/589 and https://github.com/python/typeshed/issues/1652, IO, BinaryIO, TextIO, Pattern, and Match should be imported directly from typing, not from typing.io and typing.re. The documentation

[issue35091] Objects/listobject.c: gallop functions rely on signed integer overflow

2018-10-28 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : gallop_left() and gallop_right() functions explicitly rely on overflowing behavior of Py_ssize_t (https://github.com/python/cpython/blob/6015cc50bc38b9e920ce4986ee10658eaa14f561/Objects/listobject.c#L1361): ofs = (ofs << 1) + 1; if (ofs <= 0)

[issue35090] bz2: Potential division by zero in BZ2_Malloc()

2018-10-28 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: May be we should add a new function (_PyMem_RawMallocItems?) that does the same checks as PyMem_RawCalloc, but doesn't zero-initialize memory? -- ___ Python tracker

[issue35090] Potential division by zero and integer overflow in allocator wrappers

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: I don't want to backport this change. IMHO these wrappers are never called with 0. Otherwise, I'm sure that someone would report the crash... But I applied the change anyway, just to avoid future reports of static analyzers :-) And the cast doesn't hurt :-)

[issue29174] 'NoneType' object is not callable in subprocess.py

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: This bug is now fixed if I understood correctly. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue35091] Objects/listobject.c: gallop functions rely on signed integer overflow

2018-10-28 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- pull_requests: +9507 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35089] Remove typing.io and typing.re from documentation

2018-10-28 Thread Sebastian Rittau
Change by Sebastian Rittau : -- keywords: +patch pull_requests: +9496 stage: -> patch review ___ Python tracker ___ ___

[issue35054] Add more index entries for symbols

2018-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fdf48b6b88f44a3ae6dc3e5eaea40c226c7df6c7 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.7': bpo-35054: Add yet more index entries for symbols. (GH-10121) (GH-10171)

[issue35090] bz2: Potential division by zero in BZ2_Malloc()

2018-10-28 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : BZ2_Malloc() checks for size < 0 at https://github.com/python/cpython/blob/6015cc50bc38b9e920ce4986ee10658eaa14f561/Modules/_bz2module.c#L278 , but doesn't check for size == 0 before dividing by it: if (items < 0 || size < 0) return NULL;

[issue34672] '%Z' strftime specifier never works with musl

2018-10-28 Thread Xiang Zhang
Change by Xiang Zhang : -- pull_requests: +9499 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35090] bz2: Potential division by zero in BZ2_Malloc()

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: Check other wrappers to memory allocators: * zlib: "zst.zalloc = PyZlib_Malloc" which calls PyMem_RawMalloc * _lzma: "self->alloc.alloc = PyLzma_Malloc" which calls PyMem_RawMalloc * _bz2: "bzalloc = BZ2_Malloc" which calls PyMem_RawMalloc()

[issue35042] Use the role :pep: for the PEP \d+

2018-10-28 Thread Julien Palard
Change by Julien Palard : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34364] problem with traceback for syntax error in f-string

2018-10-28 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +9494 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35092] test_socket fails in MacOS High Sierra when running with -Werror

2018-10-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thank you very much for the quick response, @Ned! :) -- ___ Python tracker ___ ___

[issue35089] Remove typing.io and typing.re from documentation

2018-10-28 Thread miss-islington
miss-islington added the comment: New changeset c516dc6e57341f24d2494514c650f4a240c1c95f by Miss Islington (bot) in branch '3.7': bpo-35089: Don't mention typing.io and typing.re (GH-10173) https://github.com/python/cpython/commit/c516dc6e57341f24d2494514c650f4a240c1c95f -- nosy:

[issue35089] Remove typing.io and typing.re from documentation

2018-10-28 Thread miss-islington
miss-islington added the comment: New changeset a36f04cedbbbe776deb478114c1bc0e4a6fe9380 by Miss Islington (bot) in branch '3.6': bpo-35089: Don't mention typing.io and typing.re (GH-10173) https://github.com/python/cpython/commit/a36f04cedbbbe776deb478114c1bc0e4a6fe9380 --

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-10-28 Thread miss-islington
miss-islington added the comment: New changeset 8dccb00c197e7b4f6ce65950a9ed6802fa217094 by Miss Islington (bot) in branch '3.7': bpo-1529353: Explain Shell text squeezing in the IDLE doc. (GH-10169) https://github.com/python/cpython/commit/8dccb00c197e7b4f6ce65950a9ed6802fa217094

[issue34672] '%Z' strftime specifier never works with musl

2018-10-28 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 163eca34c48f1b25e1504e37f4656773fd0fdc78 by Xiang Zhang in branch 'master': bpo-34672: fix a compiler warning in timemodule.c (GH-10176) https://github.com/python/cpython/commit/163eca34c48f1b25e1504e37f4656773fd0fdc78 -- nosy:

[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing

2018-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 9951 is simpler, but it makes invoking NewType() slower, because retrieving the module from the caller frame is slow in comparison with other operations. $ ./python -m timeit -s "import typing" -- "UserId = typing.NewType('UserId', int)" PR 9808:

[issue34794] Memory leak in Tkinter

2018-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9504 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35054] Add more index entries for symbols

2018-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9505 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +9493 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35064] COUNT_ALLOCS build export inc_count() and dec_count() functions which don't have a "Py_" prefix

2018-10-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 49c75a8086c3df9add0779d2479b8f09b95cdf3b by Pablo Galindo in branch 'master': bpo-35064 prefix smelly symbols that appear with COUNT_ALLOCS with _Py_ (GH-10152)

[issue35092] test_socket fails in MacOS High Sierra when running with -Werror

2018-10-28 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : == ERROR: testCmsgTruncLen0Plus1 (test.test_socket.RecvmsgIntoSCMRightsStreamTest) -- Traceback (most recent

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-10-28 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35090] Potential division by zero and integer overflow in allocator wrappers

2018-10-28 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- title: bz2: Potential division by zero in BZ2_Malloc() -> Potential division by zero and integer overflow in allocator wrappers ___ Python tracker

[issue35090] Potential division by zero and integer overflow in allocator wrappers

2018-10-28 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Thanks, Victor. Regarding backporting, what about integer overflow? Do you think it's guaranteed that the multiple of items and size always fits in 32-bit types, in case of BZ2_Malloc and PyZlib_Malloc? -- resolution: fixed -> status: closed ->

[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing

2018-10-28 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Serhiy, thanks for benchmarks and good suggestions! > If make NewType a class, I would make the repr looking like a call This is a nice idea, it indeed looks better. We can probably also use `_type_repr()` helper for the argument (for consistency). >

[issue35054] Add more index entries for symbols

2018-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35090] Potential division by zero and integer overflow in allocator wrappers

2018-10-28 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Sorry for changing the status, it's browser caching again. -- resolution: -> fixed status: open -> closed versions: -Python 3.6, Python 3.7 ___ Python tracker

[issue20216] Misleading docs for sha1, sha256, sha512, md5 modules

2018-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f29bded3d3b0de63b45819eec292f5007c0cd3cf by Serhiy Storchaka in branch '3.6': [3.6] bpo-20216: Correct docstrings of digest() methods in hashlib. (GH-9873). (GH-10183)

[issue35088] Update idlelib.help.copy_string docstring

2018-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35087] IDLE: update idlelib help files for current doc build

2018-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35090] bz2: Potential division by zero in BZ2_Malloc()

2018-10-28 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +9497 stage: -> patch review ___ Python tracker ___ ___

[issue35083] Fix documentation for __instancecheck__

2018-10-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: python-ideas thread for the issue : https://mail.python.org/pipermail/python-ideas/2018-October/054335.html -- nosy: +xtreak ___ Python tracker

[issue35089] Remove typing.io and typing.re from documentation

2018-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23828] test_socket testCmsgTruncLen0 gets "received malformed or improperly-truncated ancillary data" warning under OS X

2018-10-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 68d6dc0770288075504635a8e42696070823fd69 by Terry Jan Reedy in branch 'master': bpo-1529353: Explain Shell text squeezing in the IDLE doc. (#10169) https://github.com/python/cpython/commit/68d6dc0770288075504635a8e42696070823fd69 --

[issue35090] Potential division by zero and integer overflow in allocator wrappers

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3d4fabb2a424cb04ae446ebe4428090c386f45a5 by Victor Stinner (Alexey Izbyshev) in branch 'master': bpo-35090: Fix potential division by zero in allocator wrappers (GH-10174)

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9503 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9502 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35090] Potential division by zero and integer overflow in allocator wrappers

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: > Regarding backporting, what about integer overflow? Do you think it's > guaranteed that the multiple of items and size always fits in 32-bit types, > in case of BZ2_Malloc and PyZlib_Malloc? I don't know. Serhiy: What do you think? --

[issue20216] Misleading docs for sha1, sha256, sha512, md5 modules

2018-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9506 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-10-28 Thread miss-islington
miss-islington added the comment: New changeset 69ab28d2a616ae0234b6e412a979400523b2a6d9 by Miss Islington (bot) in branch '3.6': bpo-1529353: Explain Shell text squeezing in the IDLE doc. (GH-10169) https://github.com/python/cpython/commit/69ab28d2a616ae0234b6e412a979400523b2a6d9

[issue34198] Additional encoding options to tkinter.filedialog

2018-10-28 Thread Narito Takizawa
Change by Narito Takizawa : -- pull_requests: -7955 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34198] Additional encoding options to tkinter.filedialog

2018-10-28 Thread Narito Takizawa
Change by Narito Takizawa : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue35099] IDLE: say more about Shell - console differences

2018-10-28 Thread Terry J. Reedy
New submission from Terry J. Reedy : Differences added in initial PR: * threading.activeCount()`` returns 2 instead of 1; * run user code in separate process; * user-created subprocesses do not inherit sys.stdxxx objects; must run IDLE from console for such to have i/o connection; * Shell

[issue35099] IDLE: say more about IDLE - console differences

2018-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: say more about Shell - console differences -> IDLE: say more about IDLE - console differences ___ Python tracker ___

[issue35100] urllib.parse.unquote_to_bytes: needs "escape plus" option

2018-10-28 Thread Henry Zhu
New submission from Henry Zhu : `urllib.parse.unquote_to_bytes` should have an "escape plus" option, just like `urllib.parse.unquote_plus` does. It's very necessary in some cases: ``` # Say I have a url string: 'a+%2b%c0'. # In Python2, I can parse it into b'a +\xc0' with

[issue35099] IDLE: say more about IDLE - console differences

2018-10-28 Thread Ned Deily
Ned Deily added the comment: Just a comment on usage, for what it's worth: I don't know how common the term "console" is on modern Windows systems, but I think the term has a very different meaning on Unix and macOS. In those environments, if used at all, a "console" *might* refer to a

[issue35101] inspect.findsource breaks on class frame objects

2018-10-28 Thread orlnub123
New submission from orlnub123 : If you pass a frame object belonging to a class into findsource, it'll incorrectly give you the starting line number of the first function above it or 0 if no functions are defined. Here's some code to reproduce the issue: import inspect def test_func():

[issue35101] inspect.findsource breaks on class frame objects

2018-10-28 Thread orlnub123
Change by orlnub123 : -- keywords: +patch pull_requests: +9527 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35099] Improve the IDLE - console differences doc

2018-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: By 'console' I mean the text-interface window that Python normally runs in, whether in batch or interactive mode, whether started directly from an icon or menu or file listing or indirectly by entering 'python' in a shell program running in the console.

[issue35099] Improve the IDLE - console differences doc

2018-10-28 Thread Ned Deily
Ned Deily added the comment: Thanks for the explanation. That's what I thought you meant but it's good to make sure. I'm not sure what the best solution is and others might have a different opinion. It might be good to solicit some feedback from a wider audience of users who do not have

[issue35099] Improve the IDLE - console differences doc

2018-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35098] Deleting __new__ does not restore previous behavior

2018-10-28 Thread Joy Diamond
Joy Diamond added the comment: Its quite valid to assign to __new__ to replace the behavior of how an instance is created. (Obviously you would not really assign `0` to it; my example was just to show the `del Color.__new__` fails - so what was assigned was not relevant). Here is a more

[issue35097] IDLE add doc subsection for editor windows

2018-10-28 Thread miss-islington
miss-islington added the comment: New changeset 1a3f18e2c58367157d904f5c077ccf5a3e076f7d by Miss Islington (bot) in branch '3.7': bpo-35097: Add IDLE doc subsection explaining editor windows. (GH-10206) https://github.com/python/cpython/commit/1a3f18e2c58367157d904f5c077ccf5a3e076f7d

[issue35097] IDLE add doc subsection for editor windows

2018-10-28 Thread miss-islington
miss-islington added the comment: New changeset 9bdadc163f306ddb4659c6732ea24401957488db by Miss Islington (bot) in branch '3.6': bpo-35097: Add IDLE doc subsection explaining editor windows. (GH-10206) https://github.com/python/cpython/commit/9bdadc163f306ddb4659c6732ea24401957488db

[issue35098] Deleting __new__ does not restore previous behavior

2018-10-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: I think the real WTF here is that you can write to arbitrary dunder attributes even if they aren't listed in __slots__. py> Color.__NOBODY_expects_the_Spanish_Inquisition__ = "What?" py> Color.__NOBODY_expects_the_Spanish_Inquisition__ 'What?' I think that

[issue35099] Improve the IDLE - console differences doc

2018-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I thought of 'IDLE versus standard Python', or 'default Python', but the contrast is not correct, as IDLE uses the same Python. The intended contrast is between the result of different methods of running Python code with a particular Python binary. 'How

[issue35088] Update idlelib.help.copy_string docstring

2018-10-28 Thread miss-islington
miss-islington added the comment: New changeset 0e6329db493d4bef6aa35ae613c3c6a8453066a5 by Miss Islington (bot) in branch '3.6': bpo-35088: Update idlelib.help.copy_string docstring (GH-10164) https://github.com/python/cpython/commit/0e6329db493d4bef6aa35ae613c3c6a8453066a5 --

[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. So the current example in the docs works fine since root is in global namespace. But this seems to be a sensible change to use self.master which references root instead of relying on root to be global though I don't know we

<    1   2