[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: 
https://github.com/python/cpython/pull/12271

--
versions: +Python 3.8 -Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
test 6
```

when i run the python script i get the error text
```
Traceback (most recent call last):
  File "bad.py", line 4, in 
test 4
ZeroDivisionError: division by zero
```

--
messages: 337642
nosy: rhubarbdog x
priority: normal
severity: normal
status: open
title: exception text is being sourced from the wrong file
type: behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 fetch_server_certificate() function. That function was removed with commit 
r57680 on 8/30/2007. The function get_server_certificate() was added in commit 
r58164 on 9/18/2007.
...
Additionally, there are more than just 2 functions now, so it seems to me that 
the entire module docstring should be reviewed and updated to reflect the 
current state of the module or else it should be removed since it hasn't been 
kept in sync.
"""

--
assignee: docs@python
components: Documentation
messages: 337639
nosy: Ofekmeister, cheryl.sabella, docs@python
priority: normal
severity: normal
status: open
title: Incorrect docstring of the ssl module
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 fails:
--
icpc -c -Wsign-compare -Wunreachable-code -DNDEBUG -g  -O3 -Wall-std=c99 
-Wextra -Wno-unused-parameter -Wno-missing-field-initializers 
-Wno-cast-function-type -Werror=implicit-function-declaration -fp-model strict 
-prof-gen  -I. -I./Include-DPy_BUILD_CORE -o Programs/python.o 
./Programs/python.c
icpc: command line warning #10148: option '-Wno-cast-function-type' not 
supported
icpc: command line warning #10381: option '-std=c99' is not valid for C++ 
compilations
In file included from ./Include/Python.h(65),
 from ./Programs/python.c(3):
./Include/pyatomic.h(31): error: identifier "memory_order_relaxed" is undefined
  _Py_memory_order_relaxed = memory_order_relaxed,

-
For some reason, the compilation (and no just the link and main's compilation) 
is made with icpc, not icc.
Also, if icc is to be used, 'icc -std=c11' is required to use 
memory_order_relaxed. 

If icpc was to be used,  memory_order_relaxed is in namespace std

Regards
Alain

--
components: Installation
messages: 337637
nosy: aminiussi
priority: normal
severity: normal
status: open
title: configure with --with-icc --with-cxx-main=icpc
type: compile error
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 is present under Lib/cookielb.py and might also require a different 
backport. Since this applies RFC 6265 definition that is more stricter and 
concrete than RFC 2965 I am not sure if this might break someone's code though 
there is a bug in the paths to which the cookie is sent. I am adding Larry and 
Benjamin who can take a call on backport and if a backport is needed I will be 
happy to open respective PRs.

The code in 2.7 also performs the same prefix match at 
https://github.com/python/cpython/blob/55438d713978a1913ef12c8a801848626228aad6/Lib/cookielib.py#L1182
 that was fixed as per RFC 6265 .

def path_return_ok(self, path, request):
_debug("- checking cookie path=%s", path)
req_path = request_path(request)
if not req_path.startswith(path):
_debug("  %s does not path-match %s", req_path, path)
return False
return True


$ ./python.exe
Python 2.7.16+ (remotes/upstream/2.7-dirty:55438d7139, Mar 10 2019, 23:35:15)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
$ ./python.exe -m unittest -v 
test.test_cookielib.CookieTests.test_path_prefix_match
test_path_prefix_match (test.test_cookielib.CookieTests) ... FAIL

==
FAIL: test_path_prefix_match (test.test_cookielib.CookieTests)
--
Traceback (most recent call last):
  File 
"/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_cookielib.py",
 line 673, in test_path_prefix_match
self.assertNotIn('spam=eggs', h, "cookie set for {0}".format(path))
AssertionError: cookie set for /foobad/foo

--
Ran 1 test in 0.010s

FAILED (failures=1)

--
nosy: +benjamin.peterson, larry
versions: +Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the minimum mode when there is a tie, which 
as far as I can tell is an arbitrary choice. But in that context, since the 
input is almost always numerical, a minimum is at least well defined, which is 
not true for an input with a mix of types.

For the general use case, the current behavior - raising an exception - in case 
of tie conveys the most information.

--
nosy: +scotchka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 3.7.0 (default, Aug 22 2018, 20:50:05) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import parser
>>> parser.sequence2st(parser.suite("if True:\n pass\nelse:\n pass").totuple())
Traceback (most recent call last):
  File "", line 1, in 
parser.ParserError: Expected node type 305, got 11.

The fix for this bug is quite simple, and in fact, it had been languishing for 
2.5 years under #26415

I can easily enough extract the fix into a PR of its own, but the bigger 
question is: parser module had been advised against using since Python 2.5; now 
that it has been broken for 2.5 years, nobody even noticed. (if-else must be 
quite a common code construct, so anybody trying to use the module would have 
noticed!) So, should perhaps the module be discontinued rather than fixed?

--
components: Extension Modules
messages: 337619
nosy: A. Skrobov, benjamin.peterson, berker.peksag, brett.cannon, fdrake, 
giampaolo.rodola, gregory.p.smith, pablogsal, python-dev, serhiy.storchaka, 
xcombelle
priority: normal
severity: normal
status: open
title: parser module fails on legal input
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 "license" for more information.
"""

It is appended to stdout before the execution of `PYTHONSTARTUP` and is very 
difficult to remove. This could be easily fixed by:

 1. Allowing modification of the welcome message in `PYTHONSTARTUP`
 2. Provide an option to disable it (IPython provides a `--no-banner` option to 
disable it)
 3. At least provide a documented way of disabling it without hijacking the 
shell.

--
components: Interpreter Core
messages: 337614
nosy: benp
priority: normal
severity: normal
status: open
title: Provide a simple way to delete python's welcome message
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in addition to adding the FAQ itself.

However, I'm not closing the issue yet as:

- the exact wording could likely stand to be tweaked a bit (in particular, I'm 
not sure it's a good idea to reference PEP 570 from the FAQ entry)

- we may want to enhance pydoc itself to explain the notation inline (e.g. by 
appending a footer saying "Note: parameters to the left of ``/`` entries are 
positional only and cannot be passed by name" after the docstring being 
displayed when positional only parameters are found, and "Note: parameters to 
the right of ``*`` and ``*name`` entries are keyword only and can only be 
passed by name" when keyword only parameters are found)

- we may want to file a follow-up issue proposing that `pydoc` go back to 
either not marking positional-only parameters at all, or marking them 
differently (e.g. with "Note: *x*, *y*, and *z* are positional only parameters 
that cannot be passed by name" after the individual callable docstrings)

--
nosy: +rhettinger -miss-islington
stage: patch review -> commit review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


--
nosy: +ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 behavior (when an exception is raised) 
consistent.

What I can think of is that when some bytes were already extracted when the 
exception occurs, overwrite the existing file (if any), so at the end the 
faulty content will be kept (although I don't know haw this could help anyone), 
but in any case a 0 lengthed file is not a good option (from my PoV).

Of course specifying another dir is an option, but I only see it as a 
workaround.

--
versions:  -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
severity: normal
status: open
title: Fix invalid uses of %d in format strings in C
type: behavior
versions: Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 were not keen on introducing a custom one since this might 
introduce maintenance burden over keeping it in sync with other changes when 
made upstream. The team have been informed about this when the issue was 
created and I also updated the maintainers now about the fix being merged since 
it's a highly popular library. 

So requests will remain affected when ran on versions where this patch is not 
available in CPython standard library as of now. A potentially simple 
workaround in the absence of patch on affected versions is to set DomainStrict 
in the cookiepolicy that would make sure a literal match against domain is made 
at [0] . The disadvantage I guess would be that cookie set on example.com would 
not be shared with subdomain which might break workflow. aio-http was not 
affected since it uses custom cookiejar policy. scrapy also seems to be not 
affected since they custom policies. Most of the web frameworks don't recommend 
setting domain explicitly and set them implicitly so it can be reproduced in 
the default setup of frameworks and Flask was the one I tested which makes me 
assume this could be easily exploited.


[0] 
https://github.com/python/cpython/blob/ca7fe5063593958e5efdf90f068582837f07bd14/Lib/http/cookiejar.py#L1158

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 PRs if needed. There are less changes made to cookiejar and 
>cherry_picker would also work fine as I tried it locally.


cherry_picker --no-push ca7fe5063593958e5efdf90f068582837f07bd14 3.5
  ⛏

Now backporting 'ca7fe5063593958e5efdf90f068582837f07bd14' into '3.5'
Switched to a new branch 'backport-ca7fe50-3.5'
Branch 'backport-ca7fe50-3.5' set up to track remote branch '3.5' from 
'upstream'.

[backport-ca7fe50-3.5 fcb2dd85a0] bpo-35121: prefix dot in domain for proper 
subdomain validation (GH-10258)
 Author: Xtreak 
 Date: Sun Mar 10 07:39:48 2019 +0530
 3 files changed, 45 insertions(+), 2 deletions(-)
 create mode 100644 
Misc/NEWS.d/next/Security/2018-10-31-15-39-17.bpo-35121.EgHv9k.rst


Finished cherry-pick ca7fe5063593958e5efdf90f068582837f07bd14 into 
backport-ca7fe50-3.5 

cherry_picker --no-push ca7fe5063593958e5efdf90f068582837f07bd14 3.4
  ⛏

Now backporting 'ca7fe5063593958e5efdf90f068582837f07bd14' into '3.4'
Switched to a new branch 'backport-ca7fe50-3.4'
Branch 'backport-ca7fe50-3.4' set up to track remote branch '3.4' from 
'upstream'.

Performing inexact rename detection: 100% (639108/639108), done.
[backport-ca7fe50-3.4 46ea57d6b3] bpo-35121: prefix dot in domain for proper 
subdomain validation (GH-10258)
 Author: Xtreak 
 Date: Sun Mar 10 07:39:48 2019 +0530
 3 files changed, 45 insertions(+), 2 deletions(-)
 create mode 100644 
Misc/NEWS.d/next/Security/2018-10-31-15-39-17.bpo-35121.EgHv9k.rst


Finished cherry-pick ca7fe5063593958e5efdf90f068582837f07bd14 into 
backport-ca7fe50-3.4 

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com