[issue21592] Make statistics.median run in linear time

2018-05-05 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +6408 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue33412] Tkinter hangs if using multiple threads and event handlers

2018-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: When I closed the main thread by clicking [x], thus destroying root, both event threads raised instead of hanging. So my experiment involved calling root.destroy instead of setting running to False. The better result when running under IDLE might be due to

[issue20087] Mismatch between glibc and X11 locale.alias

2018-05-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +6407 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue20087] Mismatch between glibc and X11 locale.alias

2018-05-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +6406 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue20087] Mismatch between glibc and X11 locale.alias

2018-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cedc9b74202d8c1ae39bca261cbb45d42ed54d45 by Serhiy Storchaka in branch 'master': bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (ПР-6708) https://github.com/python/cpython/commit/cedc9b74202d8c1ae39bca261cbb45d42ed54

[issue33426] Behavior of os.path.join does not match documentation

2018-05-05 Thread Michael Klatt
Michael Klatt added the comment: For me, the ambiguity is due to the phrases "exactly one directory separator" and "the only way to produce a trailing separator". I would suggest: "The return value is the concatenation of path and any members of *paths so that there is a directory separator

[issue14384] Add "default" kw argument to operator.itemgetter and operator.attrgetter

2018-05-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here are a few more thoughts and a concrete example for clarity. Itemgetter/Attrgetter were designed to make multiple lookups (possibly multi-level) and to return a tuple that need not be homogenous. A single default value likely doesn't make sense in any

[issue33422] Fix and update string/byte literals in help()

2018-05-05 Thread Andrés Delfino
Change by Andrés Delfino : -- pull_requests: +6405 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33241] Tooltip not display with macOS 64-bit installer 3.6.5 but work with macOS 64-bit/32-bit installer

2018-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: #33429, now closed, is Raymond's report about IDLE tooltips not working in 2.7.15, released earlier this week, after working in 2.7.14. -- ___ Python tracker ___

[issue33241] Tooltip not display with macOS 64-bit installer 3.6.5 but work with macOS 64-bit/32-bit installer

2018-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: This affects the popup tool tip in IDLE also. Raymond, am I correct in thinking that the labels appearing in dialogs (Preferences, Search) still work? A IDLE tool tip is a Toplevel. Its parent is a Text widget. It contains a non-blank Label widget. It is n

[issue31628] test_emails failure on FreeBSD

2018-05-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +belopolsky, lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue33422] Fix and update string/byte literals in help()

2018-05-05 Thread miss-islington
miss-islington added the comment: New changeset 0ba812b1bee65a6cad16f153a7f5074bc271e0e5 by Miss Islington (bot) in branch '3.6': bpo-33422: Fix quotation marks getting deleted when looking up byte/string literals on pydoc. (GH-6701) https://github.com/python/cpython/commit/0ba812b1bee65a6cad

[issue33427] Dead link in "The Python Standard Library" page

2018-05-05 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +6404 stage: needs patch -> patch review ___ Python tracker ___ ___ Python

[issue33422] Fix and update string/byte literals in help()

2018-05-05 Thread miss-islington
miss-islington added the comment: New changeset 351782b9927c610ff531100dbdcbbd19d91940a3 by Miss Islington (bot) in branch '3.7': bpo-33422: Fix quotation marks getting deleted when looking up byte/string literals on pydoc. (GH-6701) https://github.com/python/cpython/commit/351782b9927c610ff5

[issue33422] Fix and update string/byte literals in help()

2018-05-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +6403 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33422] Fix and update string/byte literals in help()

2018-05-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +6402 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33422] Fix and update string/byte literals in help()

2018-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b2043bbe6034b53f5ad337887f4741b74b70b00d by Serhiy Storchaka (Andrés Delfino) in branch 'master': bpo-33422: Fix quotation marks getting deleted when looking up byte/string literals on pydoc. (GH-6701) https://github.com/python/cpython/commit/

[issue20087] Mismatch between glibc and X11 locale.alias

2018-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Benjamin's patch did two things: 1) made the glibc alias table taking precedence over the X11 one; 2) updated the alias mapping with new glibc. The first part is controversial, but updating the alias mapping with new glibc is made regularly. PR 6708 updates

[issue20087] Mismatch between glibc and X11 locale.alias

2018-05-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6401 stage: test needed -> patch review ___ Python tracker ___ ___ P

[issue33419] Add functools.partialclass

2018-05-05 Thread Nick Coghlan
Nick Coghlan added the comment: Note that Neil did start with a python-ideas discussion, and was directed over here, since the idea seemed simple enough, and worth pursuing. As Serhiy notes though, there are many more subtleties to be addressed here than I first thought. That said, as long a

[issue20087] Mismatch between glibc and X11 locale.alias

2018-05-05 Thread Licht Takeuchi
Licht Takeuchi added the comment: Hi all, The locale in the latest Ubuntu 18.04 contains en_IL as valid locale, but Python cannot resolve this. This makes test failure in pandas. https://github.com/pandas-dev/pandas/issues/20957 en_IL has significant impact because this is English locale and

[issue33433] ipaddress is_private misleading for IPv4 mapped IPv6 addresses

2018-05-05 Thread Thomas Kriechbaumer
New submission from Thomas Kriechbaumer : ipaddress.IPv4Address and ipaddress.IPv6Address provide a is_private function that indicates if the address (or network) is part of a "private" IP range, as designated by the IANA special-use registry. The current documentation is as follows: > is_priv

[issue33296] datetime.datetime.utcfromtimestamp call decimal causes precision loss

2018-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think this issue is not just related to issue23607, but a duplicate of it. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Inconsistency in datetime.utcfromtimestamp(Decimal) _

[issue33432] No locale alias mapping key for en_IL

2018-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This should be discussed in issue20087. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue33432] No locale alias mapping key for en_IL

2018-05-05 Thread Licht Takeuchi
Licht Takeuchi added the comment: en_IL has significant impact because this is English locale and now supported in the latest Ubuntu. Is there any plan to add only en_IL? -- ___ Python tracker __

[issue33296] datetime.datetime.utcfromtimestamp call decimal causes precision loss

2018-05-05 Thread Dong-hee Na
Dong-hee Na added the comment: Looks like this issue is related with bpo-23607. Since a decimal object is failed on PyFloat_Check(obj) of _PyTime_ObjectToDenominator, This regression bug is happened due to no chance to get float value from a Decimal object. https://bugs.python.org/issue23607

[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

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

[issue32857] tkinter after_cancel does not behave correctly when called with id=None

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

[issue32857] tkinter after_cancel does not behave correctly when called with id=None

2018-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3a04598f63960e72025a91c682aec51b6b460413 by Serhiy Storchaka (Cheryl Sabella) in branch '2.7': bpo-32857: Raise error when tkinter after_cancel() is called with None. (GH-5701) (GH-6620) https://github.com/python/cpython/commit/3a04598f63960e7

[issue33432] No locale alias mapping key for en_IL

2018-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue20087. The patch that adds an alias for en_IL was merged, but then reverted. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Mismatch between glib

[issue33432] No locale alias mapping key for en_IL

2018-05-05 Thread Licht Takeuchi
Change by Licht Takeuchi : -- keywords: +patch pull_requests: +6400 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue33432] No locale alias mapping key for en_IL

2018-05-05 Thread Licht Takeuchi
New submission from Licht Takeuchi : The new locale en_IL is added to glibc. But there is no key for this in the locale alias mapping. https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=146ffc146fe3bf97cd3bc1a649f1ffa8acfa4a0d https://github.com/python/cpython/blob/master/Lib/locale.py#L850 The

[issue33429] IDLE tooltips stopped working between 2.7.14 and 2.7.15 on MacOS

2018-05-05 Thread Ned Deily
Change by Ned Deily : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Tooltip not display with macOS 64-bit installer 3.6.5 but work with macOS 64-bit/32-bit installer ___ Python tracker

[issue33419] Add functools.partialclass

2018-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I'm not sure that this should be in the stdlib. The three-line function can > be enough for your simple case, and it is too simple for including it in the > stdlib. But for general stdlib quality solution it lacks many details. > > 1. It doesn't work with

[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

2018-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4a1bc26832048325aecc01a4783a4984496d52d2 by Serhiy Storchaka (Bo Bayles) in branch '2.7': [2.7] bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223) (GH-6646) https://github.com/python/cpython/commit/4a1bc2683204832

[issue33431] Change description about doc in programming, faq.

2018-05-05 Thread lvhuiyang
Change by lvhuiyang : -- keywords: +patch pull_requests: +6398 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue33431] Change description about doc in programming, faq.

2018-05-05 Thread lvhuiyang
Change by lvhuiyang : -- assignee: docs@python components: Documentation nosy: docs@python, lvhuiyang priority: normal severity: normal status: open title: Change description about doc in programming, faq. type: performance versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python

[issue33430] Import secrets module in secrets examples

2018-05-05 Thread Daniel Chimeno
Change by Daniel Chimeno : -- keywords: +patch pull_requests: +6397 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue33429] IDLE tooltips stopped working between 2.7.14 and 2.7.15 on MacOS

2018-05-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tooltips still work fine on Windows and given Serhiy's edit, I presume the same is true on Linux. As far as I remember and have recorded in NEWS.txt, IDLE on 2.7 is unchanged for over a year, since sometime before 2.7.13 was released. It is too easy to brea

[issue33430] Import secrets module in secrets examples

2018-05-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: I've always expected that documentation for a module can assume that the module itself, and/or the function being described, has been imported. On the other hand, I have no objection to making this explicit, especially in the recipes section where it might n

[issue33430] Import secrets module in secrets examples

2018-05-05 Thread Daniel Chimeno
Daniel Chimeno added the comment: Relevant link: https://docs.python.org/3.7/library/secrets.html#recipes-and-best-practices -- ___ Python tracker ___

[issue33430] Import secrets module in secrets examples

2018-05-05 Thread Daniel Chimeno
New submission from Daniel Chimeno : In the secrets module documentation, the examples in `15.3.4. Recipes and best practices` need change things, I think this examples must run after a copy & paste into user terminal. Options for first example: 1: import string from secrets import choice

[issue33429] IDLE tooltips stopped working between 2.7.14 and 2.7.15

2018-05-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list maili

[issue33429] IDLE tooltips stopped working between 2.7.14 and 2.7.15 on MacOS

2018-05-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: IDLE tooltips stopped working between 2.7.14 and 2.7.15 -> IDLE tooltips stopped working between 2.7.14 and 2.7.15 on MacOS ___ Python tracker __

[issue33411] All console message are in the error output in bash interpretor

2018-05-05 Thread Martin Panter
Martin Panter added the comment: The exception message and stack trace is documented to go to stderr: . Whether the prompt “>>>” goes to stderr or stdout depends on quirks of the environment. Issue 1927 currently proposes to make it a

[issue33429] IDLE tooltips stopped working between 2.7.14 and 2.7.15

2018-05-05 Thread Raymond Hettinger
New submission from Raymond Hettinger : When upgrading from 2.7.14 to 2.7.15 on MacOS, the tooltips have stopped showing up: >>> range( ^--- formerly a tooltip box would pop-up at this point -- assignee: terry.reedy components: IDLE messages: 316198 nosy: rhettinge