[issue4080] unittest: display time used by each test case

2019-03-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Hello. This is something I needed so I decided to implement it by taking inspiration from pytest's --durations=N argument, which basically does the same (except that it uses 0.XX precision instead of 0.XXX). PR at:

[issue4080] unittest: display time used by each test case

2019-03-10 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- pull_requests: +12254 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36259] exception text is being sourced from the wrong file

2019-03-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I noticed a similar report in the past where using chdir causes pdb to use the file path relative to the directory where it chdir to . I am not sure if both are same but the issue I am talking about is issue33139 -- nosy: +xtreak

[issue36216] urlsplit does not handle NFKC normalization

2019-03-10 Thread Larry Hastings
Larry Hastings added the comment: New changeset c0d95113b070799679bcb9dc49d4960d82e8bb08 by larryhastings (Steve Dower) in branch '3.5': bpo-36216: Add check for characters in netloc that normalize to separators (GH-12201) (#12223)

[issue36216] urlsplit does not handle NFKC normalization

2019-03-10 Thread Larry Hastings
Larry Hastings added the comment: New changeset 62d36547f97210a26cc6051da78714fd078e158c by larryhastings (Steve Dower) in branch '3.4': bpo-36216: Add check for characters in netloc that normalize to separators (GH-12201) (#12224)

[issue35647] Cookie path check returns incorrect results

2019-03-10 Thread Larry Hastings
Larry Hastings added the comment: Yes, I'd like backports to 3.5 and 3.4. Note that I tag and release 3.4.10 final this weekend, which will be the final release ever of 3.4, so if it can't be ready for merging before then, you might as well skip the 3.4 PR. --

[issue36176] Fix IDLE Autocomplete / Calltip Window Colors

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

[issue36259] exception text is being sourced from the wrong file

2019-03-10 Thread Steven D'Aprano
Change by Steven D'Aprano : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36184] [EASY] test_gdb.test_threads() is specific to _POSIX_THREADS, fail on FreeBSD

2019-03-10 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: Hi, I would like to try to solve this issue. Does this occur on the latest version of FreeBSD? -- nosy: +zitterbewegung ___ Python tracker

[issue36259] exception text is being sourced from the wrong file

2019-03-10 Thread rhubarbdog x
New submission from rhubarbdog x : Hi i have a directory containing a directory `bug` and the python program `bad.py`. The code for `bad.py` is ``` import os os.chdir('bug') print(7/0) ``` directory `bug` contains a file `bad.py` this file contents are ``` test 1 test 2 test 3 test 4 test 5

[issue36176] Fix IDLE Autocomplete / Calltip Window Colors

2019-03-10 Thread miss-islington
miss-islington added the comment: New changeset ea1627008e2ccca3eefa8f4f8123ad74d34c7500 by Miss Islington (bot) in branch '3.7': bpo-36176: Fix IDLE autocomplete & calltip popup colors. (GH-12262) https://github.com/python/cpython/commit/ea1627008e2ccca3eefa8f4f8123ad74d34c7500 --

[issue36176] Fix IDLE Autocomplete / Calltip Window Colors

2019-03-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 491ef53c1548c2b593d3c35d1e7bf25ccb443019 by Terry Jan Reedy in branch 'master': bpo-36176: Fix IDLE autocomplete & calltip popup colors. (#12262) https://github.com/python/cpython/commit/491ef53c1548c2b593d3c35d1e7bf25ccb443019 --

[issue36176] Fix IDLE Autocomplete / Calltip Window Colors

2019-03-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +12253 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36258] Incorrect docstring of the ssl module

2019-03-10 Thread Ofek Lev
New submission from Ofek Lev : The docstring refers to the function `fetch_server_certificate` that no longer exists. Context from https://github.com/python/cpython/pull/12168#issuecomment-469488585: """ In the commit on 8/28/2007, the ssl.py module was first added and it contained the

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-03-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's a text only link to the patch: https://patch-diff.githubusercontent.com/raw/python/cpython/pull/12089.patch -- ___ Python tracker

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-03-10 Thread Henry Chen
Change by Henry Chen : -- nosy: +scotchka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36257] configure with --with-icc --with-cxx-main=icpc

2019-03-10 Thread Alain Miniussi
New submission from Alain Miniussi : Hi, I'm trying to install 3.7.2 on CentOS 7.5 and intel 19: [alainm@pollux Python-3.7.2]$ ./configure --prefix=/trinity/shared/OCA/softs/pyton-3.7-intel19 --with-icc --with-cxx-main=icpc --enable-optimizations Configure look ok but then compilation

[issue34347] AIX: test_utf8_mode.test_cmd_line fails

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this be backported to version 3.7? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34373] test_time errors on AIX

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this alos be backported to Version 3.7 and 3.6 - thx! -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___

[issue11192] test_socket error on AIX

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this also be backported to Version 3.7 and 3.6 (I do not expect it to be backported to 2.7, but I had mistakenly removed it 2.7 when I changed it to 3.8 - and should have added 3.6 and 3.7 then). -- versions: +Python 2.7, Python 3.6, Python 3.7

[issue34711] Lib/http/server.py: Return HTTPStatus.NOT_FOUND if path.endswith(/) and not a directory

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this also be backported to Version 3.7 and 3.6? -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___

[issue35647] Cookie path check returns incorrect results

2019-03-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The backport to 3.5 might require manual work since I used f-strings for tests that are not present in 3.5 and below. 2.7 is also affected and as I backported the tests and cookie set with path=/foo is sent on request to /foobad/foo . The module

[issue34490] transport.get_extra_info('sockname') of test_asyncio fails on AIX

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this also be backported to Version 3.6? -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this also be backported to version 3.6? -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue34720] Fix test_importlib.test_bad_traverse for AIX

2019-03-10 Thread Michael Felt
Michael Felt added the comment: could this be backported to versions 3.7, and if applicable, to version 3.6 -- ___ Python tracker ___

[issue34720] Fix test_importlib.test_bad_traverse for AIX

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this also be backported to 3.6 and 3.7 please? -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___

[issue35704] On AIX, test_unpack_archive_xztar fails with default MAXDATA settings

2019-03-10 Thread Michael Felt
Michael Felt added the comment: Could this also be backported to 3.7 and 3.6 please? -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-03-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Steven, are you okay with applying this PR so we can put this to rest, cleanly and permanently? -- ___ Python tracker ___

[issue28956] return list of modes for a multimodal distribution instead of raising a StatisticsError

2019-03-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: See the competing proposal and PR at https://bugs.python.org/issue35892 and https://github.com/python/cpython/pull/12089 -- nosy: +rhettinger ___ Python tracker

[issue35647] Cookie path check returns incorrect results

2019-03-10 Thread miss-islington
miss-islington added the comment: New changeset 97c7d78fda49e03fc773c171ce0c736d02bb73f5 by Miss Islington (bot) in branch '3.7': bpo-35647: Fix path check in cookiejar (GH-11436) https://github.com/python/cpython/commit/97c7d78fda49e03fc773c171ce0c736d02bb73f5 -- nosy:

[issue35647] Cookie path check returns incorrect results

2019-03-10 Thread Senthil Kumaran
Change by Senthil Kumaran : -- versions: +Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35647] Cookie path check returns incorrect results

2019-03-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +12252 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35647] Cookie path check returns incorrect results

2019-03-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 0e1f1f01058bd4a9b98cfe443214adecc019a38c by Senthil Kumaran (Xtreak) in branch 'master': bpo-35647: Fix path check in cookiejar (#11436) https://github.com/python/cpython/commit/0e1f1f01058bd4a9b98cfe443214adecc019a38c --

[issue35647] Cookie path check returns incorrect results

2019-03-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +12251 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28956] return list of modes for a multimodal distribution instead of raising a StatisticsError

2019-03-10 Thread Henry Chen
Henry Chen added the comment: Yes, the mode function could ALWAYS return a list, but that breaks backward compatibility, as does the currently proposed change. -- ___ Python tracker

[issue36241] MD5 checksum is not valid for v2.7.16 "Windows x86-64 MSI installer"

2019-03-10 Thread Steve Dower
Steve Dower added the comment: Confirmed. Neither was compromised, the only change was that the previous MSI did not have an embedded Authenticode signature. I didn't even rebuild the MSI, tbh. I went back to my (secure, controlled) build machine and signed it manually. --

[issue28956] return list of modes for a multimodal distribution instead of raising a StatisticsError

2019-03-10 Thread Henry Chen
Henry Chen added the comment: The problem remains that the function can return a number or a list for input that is a list of numbers. This means the user will need to handle both possibilities every time, which is a heavy burden for such a simple function. SciPy's mode function does return

[issue36256] parser module fails on legal input

2019-03-10 Thread A. Skrobov
New submission from A. Skrobov : Under #26526, I had optimised the validation code in parser module to use the actual parser DFAs, but my code considers only the token types in the input, and doesn't distinguish between different NAMEs (e.g. different keywords). The result is this: Python

[issue36255] Provide a simple way to delete and edit python's welcome message

2019-03-10 Thread SilentGhost
SilentGhost added the comment: You could define PYTHONSTARTUP variable and modify everything to your heart's content. https://docs.python.org/3/using/cmdline.html#envvar-PYTHONSTARTUP -- nosy: +SilentGhost ___ Python tracker

[issue36255] Provide a simple way to delete and edit python's welcome message

2019-03-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: Why do you want to disable the welcome message? > I just want to add a line after the first one to give system information. Sounds like you just want to print something extra, after the welcome message has been printed. -- nosy: +steven.daprano

[issue36255] Provide a simple way to delete and edit python's welcome message

2019-03-10 Thread Benoit Pilatte
Benoit Pilatte added the comment: Yes, I forgot about that, but is there a way to edit it ? I just want to add a line after the first one to give system information. Disabling it and re-printing it seams a bit overkill and I don't want to alias `python` to `python -q`. --

[issue36255] Provide a simple way to delete and edit python's welcome message

2019-03-10 Thread Benoit Pilatte
Change by Benoit Pilatte : -- title: Provide a simple way to delete python's welcome message -> Provide a simple way to delete and edit python's welcome message ___ Python tracker

[issue36255] Provide a simple way to delete python's welcome message

2019-03-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Does python -q help in this case? $ python -q >>> -- nosy: +xtreak ___ Python tracker ___

[issue36255] Provide a simple way to delete python's welcome message

2019-03-10 Thread Benoit Pilatte
New submission from Benoit Pilatte : To my knowledge and extensive research on the problem, there is no simple way to disable python's welcome message: """ Python 3.7.2 (default, Jan 13 2019, 12:50:01) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copyright", "credits" or

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-03-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21314] Document '/' in signatures

2019-03-10 Thread Nick Coghlan
Nick Coghlan added the comment: I went ahead and merged Lysandros's new FAQ entry (Thank you Lysandros!), as having some level of documentation for this notation is markedly better than the previous "none at all", and the PR added cross-references from the builtins and inspect module docs

[issue21314] Document '/' in signatures

2019-03-10 Thread miss-islington
miss-islington added the comment: New changeset 87f5255cdc9aa737d445b5813e52c41e5266a862 by Miss Islington (bot) in branch '3.7': bpo-21314: Add a FAQ entry about positional only parameters (GH-10641) https://github.com/python/cpython/commit/87f5255cdc9aa737d445b5813e52c41e5266a862

[issue21314] Document '/' in signatures

2019-03-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +12250 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21314] Document '/' in signatures

2019-03-10 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 1aeeaeb79efa4de41f97b58547e23c2965ecabc5 by Nick Coghlan (Lysandros Nikolaou) in branch 'master': bpo-21314: Add a FAQ entry about positional only parameters (GH-10641)

[issue36247] zipfile - extract truncates (existing) file when bad password provided (zip encryption weakness)

2019-03-10 Thread Cristi Fati
Cristi Fati added the comment: Hm, I assumed that a bad password, will raise an exception (at some point). but, if it doesn't, the destination file will be overwritten (with the messed up content), which also happens now (so, no behavior change). This is trying to make wrong passwords

[issue35807] Update bundled pip to 19.0

2019-03-10 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue36254] Fix invalid uses of %d in format strings in C

2019-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue36251. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36251] Invalid format specifiers in MatchObject and StdPrinter repr

2019-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Stephan! Versions older than 3.6 take only security fixes. See also issue36254. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: -Python 3.4, Python 3.5,

[issue36251] Invalid format specifiers in MatchObject and StdPrinter repr

2019-03-10 Thread miss-islington
miss-islington added the comment: New changeset e4be2057d4bd06eb56fbfef4e4ed88fff7fb47cd by Miss Islington (bot) in branch '3.7': bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252)

[issue36254] Fix invalid uses of %d in format strings in C

2019-03-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12249 stage: -> patch review ___ Python tracker ___ ___

[issue36254] Fix invalid uses of %d in format strings in C

2019-03-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed patch fixes invalid uses of %d in format strings in C (mostly when the argument has type Py_ssize_t or size_t). -- components: Extension Modules, Interpreter Core messages: 337606 nosy: serhiy.storchaka, vstinner priority: normal

[issue19702] Update pickle to take advantage of PEP 451

2019-03-10 Thread Nick Coghlan
Nick Coghlan added the comment: Just noting that PEP 499 covers adding modules executed with `-m` to `sys.modules` under their real name in addition to `__main__`. -- ___ Python tracker

[issue36251] Invalid format specifiers in MatchObject and StdPrinter repr

2019-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8b91edadc06dcb0d391a65d1ecdf07dcb429df1b by Serhiy Storchaka (sth) in branch 'master': bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252)

[issue36251] Invalid format specifiers in MatchObject and StdPrinter repr

2019-03-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +12248 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36241] MD5 checksum is not valid for v2.7.16 "Windows x86-64 MSI installer"

2019-03-10 Thread andrejs-sisojevs-accenture
andrejs-sisojevs-accenture added the comment: Oh, and also (please confirm) that 2841e92ba89a6f036305a8a07fbe9d18 was not security compromised. -- ___ Python tracker ___

[issue36241] MD5 checksum is not valid for v2.7.16 "Windows x86-64 MSI installer"

2019-03-10 Thread andrejs-sisojevs-accenture
andrejs-sisojevs-accenture added the comment: Please confirm, that old "2fe86194bb4027be75b29852027f1a79" was valid in past (as opposed to be security compromised). We need to make sure, since some of our devs downloaded and used that version with unconfirmed checksum. --

[issue35121] Cookie domain check returns incorrect results

2019-03-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There are many libraries that use DefaultCookiePolicy and requests library uses it for client where session state needs to be maintained across different requests. Currently, requests doesn't have a documented API to change to cookiejar policy and

[issue35121] Cookie domain check returns incorrect results

2019-03-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: >From my initial tests 3.4 and 3.5 were also affected. 3.4 is going EoL and RC1 >is out but there is one another security issue (issue36216) fixed last week >with a PR open. If the merge window is open and Larry is okay then I can raise >backport

[issue36250] pdb: interaction might cause "ValueError: signal only works in main thread"

2019-03-10 Thread SilentGhost
Change by SilentGhost : -- nosy: +zach.ware type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26018] documentation of ZipFile file name encoding

2019-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This not have been removed in issue32035. 3.4 and 3.5 currently take only security fixes. -- nosy: +serhiy.storchaka resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python

[issue35121] Cookie domain check returns incorrect results

2019-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about 3.4 and 3.5? -- nosy: +larry versions: +Python 3.4, Python 3.5 ___ Python tracker ___