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

2018-10-28 Thread Daniel Lovell
Daniel Lovell added the comment: Thanks for the reply xtreak. I agree that changing the example to include main() isn't necessary - I unintentionally included that from my example of the case where the current version isn't functional. In the PR I submitted on Github (https://github.com/pyt

[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 ___ __

[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 ___ __

[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 ___ ___

[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: https://

[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 ___ ___ P

[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 ne

[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: https://ma

[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) https://github.com/python/cpython/commit/6015cc50bc38b9e920ce4986ee

[issue35054] Add more index entries for symbols

2018-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 913876d824d969f8c7431e8a9d4610a9a11a786e by Serhiy Storchaka in branch 'master': bpo-35054: Add yet more index entries for symbols. (GH-10121) https://github.com/python/cpython/commit/913876d824d969f8c7431e8a9d4610a9a11a786e --

[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 ___ ___ Python-bugs

[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;

[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 ___ ___ Python-bugs-

[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 __

[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)

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

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

[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:

[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) https://github.com/python/cpython/commit/49c75a8086c3df9add0779d2479b8f09b95

[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
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[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 c

[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: https://ma

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

2018-10-28 Thread Ned Deily
Ned Deily added the comment: This is a longstanding minor issue as described in Issue23828. A twist here is that running with -Werror causes a test failure where normally there is just a warning. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: ->

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

2018-10-28 Thread Ned Deily
Ned Deily added the comment: Duplicate Issue35092 notes that running the tests with -Werror turns these warnings into test failures. -- components: +macOS nosy: +ronaldoussoren versions: +Python 3.6, Python 3.7, Python 3.8 -Python 3.4, Python 3.5 _

[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() https://bugs.pyth

[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: https://mail.

[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 ___ ___ Python-

[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: https:/

[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: +xiang.zha

[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 __

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

2018-10-28 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset c8a8d6b347d5a6899feb7c810d28f22f3cb151b8 by Ivan Levkivskyi (Sebastian Rittau) in branch 'master': bpo-35089: Don't mention typing.io and typing.re (GH-10173) https://github.com/python/cpython/commit/c8a8d6b347d5a6899feb7c810d28f22f3cb151b8 -

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

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9500 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

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

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9501 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

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

2018-10-28 Thread STINNER Victor
STINNER Victor 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? Please don't add new functions to the Python memory allocators. We already have too many of them :-( https://do

[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: 1

[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 -- ___

[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: +m

[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 _

[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) https://github.com/python/cpython/commit/fdf48b6b88f44a3ae6dc3e5eaea4

[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 -- _

[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: https://

[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: https://

[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) https://github.com/python/cpython/commit/3d4fabb2a424cb04ae446ebe4428090c

[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 :-)

[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: https://

[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: https://

[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 -> ope

[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). > Shoul

[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
Change by Serhiy Storchaka : -- pull_requests: +9506 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[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? -- ___

[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 -

[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 -

[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: https://m

[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 ___ _

[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) https://github.com/python/cpython/commit/f29bded3d3b0de63b45819eec292f5007

[issue35054] Add more index entries for symbols

2018-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5b2e1cfde28cce7f4b9275ec1b3757c561eef94e by Serhiy Storchaka in branch '3.6': [3.6] bpo-35054: Add yet more index entries for symbols. (GH-10121). (GH-10182) https://github.com/python/cpython/commit/5b2e1cfde28cce7f4b9275ec1b3757c561eef94e -

[issue34794] Memory leak in Tkinter

2018-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset aaea2802da0a074c695ab86911d8bcc0b2dd5ec5 by Serhiy Storchaka in branch '2.7': [2.7] bpo-34794: Fix a leak in Tkinter. (GH-10025) (GH-10181) https://github.com/python/cpython/commit/aaea2802da0a074c695ab86911d8bcc0b2dd5ec5 -- ___

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

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

[issue1154351] add get_current_dir_name() to os module

2018-10-28 Thread Anthony Sottile
Anthony Sottile added the comment: Does this actually make sense for the `os` module? `PWD` is a variable set by your interactive shell and doesn't really make sense outside that context. I expect this function to be too easily confused with `os.getcwd()` and a source of bugs when the latter

[issue25750] tp_descr_get(self, obj, type) is called without owning a reference to "self"

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: The cast warning is not specific to this issue, it's a more general issue that will be address in bpo-33012. I close again the bug. -- status: open -> closed ___ Python tracker

[issue28009] core logic of uuid.getnode() is broken for AIX - all versions

2018-10-28 Thread Michael Felt
Michael Felt added the comment: re; the current status of PR8672 - which I shall probably close as it no longer merges. @taleinat re: the need for lambda As _find_mac_netstat() is only called once the need for the last two arguments may be unnecessary. My reason for including them was to kee

[issue28009] core logic of uuid.getnode() is broken for AIX - all versions

2018-10-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue1154351] add get_current_dir_name() to os module

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: The glibc has a get_current_dir_name() function which returns the same value that getcwd(), the difference is that get_current_dir_name() allocates memory. If someone wants to add a function using PWD env var, a different function name should be found.

[issue34160] ElementTree not preserving attribute order

2018-10-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Diego, I've taken care of the ElementTree case. Would you like to make a PR for the other occurrences (minidom, html, etc)? -- ___ Python tracker __

[issue34160] ElementTree not preserving attribute order

2018-10-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e3685fd5fdd8808acda81bfc12fb9702d4b59a60 by Raymond Hettinger in branch 'master': bpo-34160: Preserve user specified order of Element attributes (GH-10163) https://github.com/python/cpython/commit/e3685fd5fdd8808acda81bfc12fb9702d4b59a60 --

[issue34931] os.path.splitext with more dots

2018-10-28 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: IMHO this is not a bug. Every file starting with a dot is hidden by default, so this is somewhat correct behaviour. Since it is documented correctly I don't this something needs to change here. Yet again, could someone more experienced offer their opinio

[issue1154351] add get_current_dir_name() to os module

2018-10-28 Thread Marc Adam Anderson
Change by Marc Adam Anderson : -- nosy: -marcadam ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34160] ElementTree not preserving attribute order

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: Nice enhancement! I was always annoyed by XML libraries in PHP and Python which don't respect the "insertion order". -- nosy: +vstinner ___ Python tracker _

[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 pytho

[issue35093] IDLE: document the help document viewer

2018-10-28 Thread Terry J. Reedy
New submission from Terry J. Reedy : Implement issue 33396 item 6: document the IDLE Doc viewer. -- assignee: docs@python components: Documentation, IDLE messages: 328725 nosy: docs@python, terry.reedy priority: normal severity: normal stage: needs patch status: open title: IDLE: docume

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

2018-10-28 Thread Mark Harfouche
Mark Harfouche added the comment: My workaround has been to use neither readline nor libedit. On Sun, Oct 28, 2018 at 2:40 PM Romain Geissler wrote: > > Romain Geissler added the comment: > > Hi, > > Yes this bug report is still valid. I just tried compiling Python 3.7.1 on > linux with lib

[issue35093] IDLE: document the help document viewer

2018-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: docs@python -> terry.reedy components: -Documentation ___ Python tracker ___ ___ Python-bug

[issue34160] ElementTree not preserving attribute order

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

[issue14956] custom PYTHONPATH may break apps embedding Python

2018-10-28 Thread Romain Geissler
Romain Geissler added the comment: Hi, Just updating this 6 year old bug report. The last comment says it's not possible to ignore environment when using the C-API. I don't know back then, but today it is possible. I have just built gdb 8.2 against python 3.7.1, and patched gdb with this si

[issue22021] shutil.make_archive() root_dir do not work

2018-10-28 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +9509 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35094] Improved algorithms for random.sample

2018-10-28 Thread Paul Crowley
New submission from Paul Crowley : random.sample currently uses either a Fisher-Yates shuffle, or rejection sampling, to achieve sampling without replacement. I propose using reservoir sampling or "cardchoose"; these are similar performance or sometimes faster, and don't need to allocate anyt

[issue35094] Improved algorithms for random.sample

2018-10-28 Thread Paul Crowley
Change by Paul Crowley : -- keywords: +patch pull_requests: +9510 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue35094] Improved algorithms for random.sample

2018-10-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +mark.dickinson, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue34794] Memory leak in Tkinter

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

[issue35095] Implement pathlib.Path.append_bytes and pathlib.Path.append_text

2018-10-28 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Right now we have: Path.read_bytes Path.read_text Path.write_bytes Path.write_text as opening the file, appending something and closing the file is also a very typical operation to do it would be nice to have: Path.append_bytes Path.append_text --

[issue35095] Implement pathlib.Path.append_bytes and pathlib.Path.append_text

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

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

2018-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is worth to backport. Perhaps it is possible even to create a reproducer for integer overflow, but I afraid it will be too slow for using in tests. -- ___ Python tracker

[issue35084] binascii.Error: Incorrect padding

2018-10-28 Thread TestUser
TestUser added the comment: The file contained the following code: 0x11a3ff119c\xe3\x50\x89\xe2\x53\x89\xe1\xb0\x0b\xcd\x80#%^ciuqrfiqrYWJjMTIzIT8kKiYoKSctPUB- abc123! On Sun, Oct 28, 2018 at 1:35 AM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Singaravelan added

[issue35094] Improved algorithms for random.sample

2018-10-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, this has been discussed and rejected multiple times. Reservoir sampling makes far too many calls to the underlying random number generator. -- assignee: -> rhettinger resolution: -> rejected stage: patch review -> resolved status: open ->

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

2018-10-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> tim.peters nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35093] IDLE: document the help document viewer

2018-10-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +9513 stage: needs patch -> patch review ___ Python tracker ___ ___ Py

[issue35085] FileNotFoundError: [Errno 2] No such file or directory:

2018-10-28 Thread TestUser
TestUser added the comment: How can that be CLI useful. Lucky I guess as this does not generate a Crash Report. OK. Bad/Missing File would have been my preferred. Then again? Thanks On Sun, Oct 28, 2018 at 1:48 AM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Sin

[issue35084] binascii.Error: Incorrect padding

2018-10-28 Thread TestUser
TestUser added the comment: FYI: This error generates an Ubuntu Crash Report. Every time I use it on the CLI. I wonder how many of these are generated? On Sun, Oct 28, 2018 at 3:49 PM TestUser wrote: > > TestUser added the comment: > > The file contained the following code: > > 0x11a3ff119c

[issue35094] Improved algorithms for random.sample

2018-10-28 Thread Paul Crowley
Paul Crowley added the comment: I would be very grateful for your help finding those dicussions! I've tried this search: https://www.google.com/search?q=python+%22Reservoir+sampling%22+rhettinger and found this discussion: https://mail.python.org/pipermail/python-ideas/2016-April/039708.htm

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

2018-10-28 Thread Romain Geissler
Romain Geissler added the comment: Yes in my case the build works, but then I have a resulting python interpreter with limited readline functionality. That's why I have some interest in having this patch rebased and included into trunk. -- ___ Pyt

[issue33234] Improve list() pre-sizing for inputs with known lengths

2018-10-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 372d705d958964289d762953d0a61622755f5386 by Pablo Galindo in branch 'master': bpo-33234 Improve list() pre-sizing for inputs with known lengths (GH-9846) https://github.com/python/cpython/commit/372d705d958964289d762953d0a61622755f5386

[issue33396] IDLE: Improve and document help doc viewer

2018-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: #35063 implements item 6, (initially) doc the help viewer. When we improve the help viewer, we should revise the doc at the same time. -- dependencies: +Checking for abstractmethod implementation fails to consider MRO for builtins _

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

2018-10-28 Thread STINNER Victor
Change by STINNER Victor : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9514 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list maili

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

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9515 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35093] IDLE: document the help document viewer

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9516 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35093] IDLE: document the help document viewer

2018-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +9517 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

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

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "I think it is worth to backport." Ok. I asked the bot to create 3.6 and 3.7 backports, and I just approved them. I checked: Python 2.7 is not affected. -- versions: +Python 3.6, Python 3.7 ___ Python trac

[issue33234] Improve list() pre-sizing for inputs with known lengths

2018-10-28 Thread STINNER Victor
STINNER Victor added the comment: > bpo-33234 Improve list() pre-sizing for inputs with known lengths (GH-9846) Oh. Can you please document the optimization in the following doc as well? https://docs.python.org/dev/whatsnew/3.8.html#optimizations -- __

  1   2   >