[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-28 Thread Steve Dower


Steve Dower  added the comment:


New changeset db4eb2c57dbfca402a539184c966c449cb1aa8e3 by Steve Dower in branch 
'3.7':
bpo-37369: Fix path handling when python.exe is used as a symlink (GH-14461)
https://github.com/python/cpython/commit/db4eb2c57dbfca402a539184c966c449cb1aa8e3


--

___
Python tracker 

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



[issue37399] XML text behaviour change if there are comments

2019-06-28 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue37446] Undefined behavior in Python/hamt.c

2019-06-28 Thread Zackery Spytz


New submission from Zackery Spytz :

./python -m unittest test.test_context.HamtTest.test_hamt_stress
Python/hamt.c:1867:29: runtime error: left shift of 1 by 31 places cannot be 
represented in type 'int'
.
--
Ran 1 test in 12.702s

OK

--
components: Interpreter Core
messages: 346876
nosy: ZackerySpytz, yselivanov
priority: normal
severity: normal
status: open
title: Undefined behavior in Python/hamt.c
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue37445] Some FormatMessageW() calls use FORMAT_MESSAGE_FROM_SYSTEM without FORMAT_MESSAGE_IGNORE_INSERTS

2019-06-28 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
pull_requests: +14279
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14462

___
Python tracker 

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



[issue37445] Some FormatMessageW() calls use FORMAT_MESSAGE_FROM_SYSTEM without FORMAT_MESSAGE_IGNORE_INSERTS

2019-06-28 Thread Zackery Spytz


New submission from Zackery Spytz :

As mentioned in bpo-26493, some FormatMessageW() calls use the 
FORMAT_MESSAGE_FROM_SYSTEM flag without FORMAT_MESSAGE_IGNORE_INSERTS. This 
will cause FormatMessageW() to fail if there are insert sequences in the 
message definition.

I will create a PR for this issue.

--
components: Extension Modules, Windows
messages: 346875
nosy: ZackerySpytz, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Some FormatMessageW() calls use FORMAT_MESSAGE_FROM_SYSTEM without 
FORMAT_MESSAGE_IGNORE_INSERTS
versions: Python 2.7, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue37433] syntax error in multiline f-string produces ~40k spaces output

2019-06-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

OK, very obnoxious.  Fix restores behavior above.

--

___
Python tracker 

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



[issue37433] syntax error in multiline f-string produces ~40k spaces output

2019-06-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
Removed message: https://bugs.python.org/msg346872

___
Python tracker 

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



[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-28 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +14278
pull_request: https://github.com/python/cpython/pull/14461

___
Python tracker 

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



[issue36511] Add Windows ARM32 buildbot

2019-06-28 Thread Paul Monson


Change by Paul Monson :


--
pull_requests: +14277
pull_request: https://github.com/python/cpython/pull/14460

___
Python tracker 

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



[issue37433] syntax error in multiline f-string produces ~40k spaces output

2019-06-28 Thread Anthony Sottile


Anthony Sottile  added the comment:

just an f-string doesn't trigger this, there needs to be tokens before it

--

___
Python tracker 

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



[issue37433] syntax error in multiline f-string produces ~40k spaces output

2019-06-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

On Windows 10 with current 3.8 I see correct output, so the bug seems OS 
specific, even though the simple fix (see PR) is not.

C:\Users\Terry>py f:/python/a/tem4.py
  File "f:/python/a/tem4.py", line 1
f'''{}
^
SyntaxError: f-string: empty expression not allowed

--
nosy: +terry.reedy
title: syntax error in f-string in multiline string produces ~40k spaces of 
output -> syntax error in multiline f-string produces ~40k spaces output

___
Python tracker 

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



[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2019-06-28 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy:  -Jeffrey.Kintscher

___
Python tracker 

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



[issue32912] Raise non-silent warning for invalid escape sequences

2019-06-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The 'filled my terminal with spaces' bug mentioned in msg344764 was 
independently reported in #37433, with a PR.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue37427] sorted, list.sort reject non-boolean objects with __bool__() as `reverse` parameter

2019-06-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Not a bug.  Both function docs say "reverse is a boolean value."
https://docs.python.org/3/library/stdtypes.html#boolean-values
says "Boolean values are the two constant objects False and True."  These 
should be used in new code.

For compatibility with old code, CPython generally allows 0 and 1.  In this 
case, it allows any 'integral value', but I would not necessarily expect this 
of other implementations.

[In general, the *Python language* docs do not document extra latitude allowed 
by the *CPython implementation*.  So the lack thereof here is also not a bug.]

All objects without fancy trickery have a __bool__ method, either inherited 
from *object* or overridden.  This in no way makes all such objects, including 
Xs, into boolean values.

--
nosy: +terry.reedy
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
title: sorted() and list.sort() don't accept non-boolean objects with 
__bool__() as `reverse` parameter -> sorted, list.sort reject non-boolean 
objects with __bool__() as `reverse` parameter

___
Python tracker 

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



[issue37434] Segfault in typeobject.c at _PyObject_GC_UNTRACK(type)

2019-06-28 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
status:  -> open

___
Python tracker 

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



[issue37434] Segfault in typeobject.c at _PyObject_GC_UNTRACK(type)

2019-06-28 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

Could also be a bug in however protobuf handles exceptions on module 
initialization.

--

___
Python tracker 

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



[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2019-06-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

If anything, this seems to be a getpass doc issue.

--
assignee:  -> docs@python
components: +Documentation -Library (Lib), Windows
nosy: +docs@python, terry.reedy

___
Python tracker 

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



[issue37422] Documentation on the change of __path__ in Python 3

2019-06-28 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.8, Python 3.9 -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



[issue37409] relative import without parent succeeds with builtins.__import__

2019-06-28 Thread Ben Lewis


Ben Lewis  added the comment:

I'll look into this further and open a PR initially for the regression tests.

--

___
Python tracker 

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



[issue37367] octal escapes applied inconsistently throughout the interpreter and lib

2019-06-28 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals
says, for \ooo, "In a bytes literal, hexadecimal and octal escapes denote the 
byte with the given value. In a string literal, these escapes denote a Unicode 
character with the given value."

I agree that sometimes truncating an invalid integer instead of always raising 
ValueError is strange.

>>> ord(b'\407')
7
>>> bytes((0o407,))
...
ValueError: bytes must be in range(0, 256)

I don't know is there was an intentional back-compatibility reason for this.

Without an example of re raising, I don't understand the re complaint.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-06-28 Thread Brett Cannon


Brett Cannon  added the comment:

Thanks for the PR, aeros167! BTW, if you want to open a new issue and modernize 
the tests to use importlib directly that would be great!

--

___
Python tracker 

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



[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-06-28 Thread miss-islington


miss-islington  added the comment:


New changeset 80097e089ba22a42d804e65fbbcf35e5e49eed00 by Miss Islington (bot) 
(Kyle Stanley) in branch 'master':
bpo-19696: Moved "test_pkgimport.py" to dir "test_importlib" (GH-14303)
https://github.com/python/cpython/commit/80097e089ba22a42d804e65fbbcf35e5e49eed00


--
nosy: +miss-islington

___
Python tracker 

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



[issue37403] Recommend .venv for virtual environment names

2019-06-28 Thread Brett Cannon


Change by Brett Cannon :


--
resolution:  -> fixed
stage: patch review -> needs patch
status: open -> closed

___
Python tracker 

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



[issue37403] Recommend .venv for virtual environment names

2019-06-28 Thread miss-islington


miss-islington  added the comment:


New changeset 0cba121029bae0a891b02c493cb77633620701be by Miss Islington (bot) 
in branch '3.8':
bpo-37403: Touch up venv docs (GH-14458)
https://github.com/python/cpython/commit/0cba121029bae0a891b02c493cb77633620701be


--
nosy: +miss-islington

___
Python tracker 

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



[issue37409] relative import without parent succeeds with builtins.__import__

2019-06-28 Thread Brett Cannon


Brett Cannon  added the comment:

If you run with `-Xdev`/warnings turned on you get an idea of what's happening:

>>> builtins.__import__('', globals(), locals(), ('foo',), 1)
:1: ImportWarning: can't resolve package from __spec__ or __package__, 
falling back on __name__ and __path__


The check is being done in resolve_name() in import.c 
(https://github.com/python/cpython/blob/f9f8e3ce709ceb15c8db8c8dde940daf1febf13d/Python/import.c#L1543).
 My guess is there's an off-by-one error in the sanity check logic for 
attempting a relative import beyond the top-level package.

--

___
Python tracker 

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



[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2019-06-28 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



[issue37409] relative import without parent succeeds with builtins.__import__

2019-06-28 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



[issue37409] relative import without parent succeeds with builtins.__import__

2019-06-28 Thread Brett Cannon


Change by Brett Cannon :


--
title: relative import without parent -> relative import without parent 
succeeds with builtins.__import__

___
Python tracker 

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



[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2019-06-28 Thread Brett Cannon


Brett Cannon  added the comment:

import.c code raising the exception: 
https://github.com/python/cpython/blob/f9f8e3ce709ceb15c8db8c8dde940daf1febf13d/Python/import.c#L1675-L1677

--

___
Python tracker 

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



[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2019-06-28 Thread Brett Cannon


Brett Cannon  added the comment:

I think this should be an ImportError and so that means builtins.__import__() 
is wrong. Anyone want to argue for the other side?

--

___
Python tracker 

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



[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2019-06-28 Thread Brett Cannon


Brett Cannon  added the comment:

Importllib code raising the exception is 
https://github.com/python/cpython/blob/f9f8e3ce709ceb15c8db8c8dde940daf1febf13d/Lib/importlib/_bootstrap.py#L874-L876
 .

--

___
Python tracker 

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



[issue37409] relative import without parent

2019-06-28 Thread Brett Cannon


Brett Cannon  added the comment:

The code doing the sanity check for importlib can be found at 
https://github.com/python/cpython/blob/f9f8e3ce709ceb15c8db8c8dde940daf1febf13d/Lib/importlib/_bootstrap.py#L943-L948
 .

--

___
Python tracker 

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



[issue37409] relative import without parent

2019-06-28 Thread Brett Cannon


Brett Cannon  added the comment:

I opened bpo-37444 for the relative import beyond top-level package issue.

--

___
Python tracker 

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



[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2019-06-28 Thread Brett Cannon


New submission from Brett Cannon :

builtins.__import__() raises ValueError (as it did in Python 2.7) while 
importlib.__import__() raises ImportError (which makes more sense to me).

Found by Ben Lewis.

--
components: Interpreter Core, Library (Lib)
messages: 346855
nosy: Ben Lewis2, brett.cannon, eric.snow, ncoghlan
priority: normal
severity: normal
status: open
title: Differing exception between builtins and importlib when importing beyond 
top-level package
versions: Python 3.8, Python 3.9

___
Python tracker 

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



[issue37443] Python Returns NoneType when convert a string to a list and using sort() method

2019-06-28 Thread SilentGhost


Change by SilentGhost :


--
assignee: terry.reedy -> 
components:  -IDLE
nosy: +SilentGhost -terry.reedy
type: compile error -> behavior

___
Python tracker 

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



[issue37443] Python Returns NoneType when convert a string to a list and using sort() method

2019-06-28 Thread Isaul Vargas


Isaul Vargas  added the comment:

There is no bug.
It's a bit confusing that the method sort on a list object returns None, but it 
is doing an in-place, (in memory) sort of the list, thus modifying the list. 

The function sorted however, will return a new list object.

The following interpreter session will show this:
>>> l = [3, 2, 1]
>>> type(l.sort())

>>> print(l)
[1, 2, 3]
>>> new_list = [7, 5, 4]
>>> sorted(new_list)
[4, 5, 7]
>>> new_list
[7, 5, 4]

--
assignee:  -> terry.reedy
components: +IDLE
nosy: +Dude-X, terry.reedy -SilentGhost
type: behavior -> compile error

___
Python tracker 

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



[issue37409] relative import without parent

2019-06-28 Thread Brett Cannon


Change by Brett Cannon :


--
versions: +Python 3.8, Python 3.9 -Python 3.7

___
Python tracker 

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



[issue37443] Python Returns NoneType when convert a string to a list and using sort() method

2019-06-28 Thread SilentGhost


SilentGhost  added the comment:

Yes, as documented .sort method mutates object in place and returns None.

--
assignee: terry.reedy -> 
components:  -IDLE
nosy: +SilentGhost -terry.reedy
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: compile error -> behavior

___
Python tracker 

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



[issue37403] Recommend .venv for virtual environment names

2019-06-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14276
pull_request: https://github.com/python/cpython/pull/14459

___
Python tracker 

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



[issue37403] Recommend .venv for virtual environment names

2019-06-28 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset f9f8e3ce709ceb15c8db8c8dde940daf1febf13d by Brett Cannon in 
branch 'master':
bpo-37403: Touch up venv docs (GH-14458)
https://github.com/python/cpython/commit/f9f8e3ce709ceb15c8db8c8dde940daf1febf13d


--

___
Python tracker 

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



[issue37443] Python Returns NoneType when convert a string to a list and using sort() method

2019-06-28 Thread exploiterv


New submission from exploiterv :

Python Returns NoneType when convert a string to a list and using sort() method

# Example Code :

>>> string = "python"
>>> new_list = list(string.splitlines())  >>> new_list
['python']
>>> type(new_list)

>>> print(type(new_list.sort()))

>>> new_list
['python']
>>> new = new_list.sort()
>>> new
>>> type(new)

>>>

--
assignee: terry.reedy
components: IDLE, Interpreter Core
messages: 346851
nosy: exploiterv, terry.reedy
priority: normal
severity: normal
status: open
title: Python Returns NoneType when convert a string to a list and using sort() 
method
type: compile error
versions: Python 3.5, 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



[issue37403] Recommend .venv for virtual environment names

2019-06-28 Thread Brett Cannon


Change by Brett Cannon :


--
keywords: +patch
pull_requests: +14275
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/14458

___
Python tracker 

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



[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-06-28 Thread Brian Quinlan


Change by Brian Quinlan :


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



[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-06-28 Thread Brian Quinlan


Brian Quinlan  added the comment:


New changeset 242c26f53edb965e9808dd918089e664c0223407 by Brian Quinlan in 
branch 'master':
bpo-31783: Fix a race condition creating workers during shutdown (#13171)
https://github.com/python/cpython/commit/242c26f53edb965e9808dd918089e664c0223407


--

___
Python tracker 

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



[issue37294] concurrent.futures.ProcessPoolExecutor and multiprocessing.pool.Pool fail with super

2019-06-28 Thread Brian Quinlan


Change by Brian Quinlan :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> function changed when pickle bound method object

___
Python tracker 

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



[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-28 Thread Steve Dower


Steve Dower  added the comment:


New changeset ed4657bd28432ace671a9e6ae38a3d485c69213d by Steve Dower in branch 
'3.7':
bpo-37369: Fix venv and test symlinking (GH-14456)
https://github.com/python/cpython/commit/ed4657bd28432ace671a9e6ae38a3d485c69213d


--

___
Python tracker 

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



[issue37208] Weird exception behaviour in ProcessPoolExecutor

2019-06-28 Thread Brian Quinlan


Change by Brian Quinlan :


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



[issue37437] update vendorized expat to 2.2.7

2019-06-28 Thread Ned Deily


Ned Deily  added the comment:

The expat update introduces unsightly build warnings:

gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv 
-O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Wstrict-prototypes 
-Werror=implicit-function-declaration -I./Include/internal 
-DHAVE_EXPAT_CONFIG_H=1 -DXML_POOR_ENTROPY=1 -DUSE_PYEXPAT_CAPI 
-I/Users/nad/Projects/PyDev/active/dev/3x/source/Modules/expat -I./Include -I. 
-I/Users/nad/Projects/PyDev/active/dev/3x/source/Include 
-I/Users/nad/Projects/PyDev/active/dev/3x/source -c 
/Users/nad/Projects/PyDev/active/dev/3x/source/Modules/expat/xmlparse.c -o 
build/temp.macosx-10.14-x86_64-3.9/Users/nad/Projects/PyDev/active/dev/3x/source/Modules/expat/xmlparse.o
 -Wno-implicit-fallthrough
/Users/nad/Projects/PyDev/active/dev/3x/source/Modules/expat/xmlparse.c:3027:11:
 warning: code will never be executed
  [-Wunreachable-code]
  parser->m_characterDataHandler(parser->m_handlerArg, 
parser->m_dataBuf, 0);
  ^~
/Users/nad/Projects/PyDev/active/dev/3x/source/Modules/expat/xmlparse.c:3026:18:
 note: silence by adding parentheses to
  mark code as explicitly dead
else if (0 && parser->m_characterDataHandler)
 ^
 /* DISABLES CODE */ ( )
/Users/nad/Projects/PyDev/active/dev/3x/source/Modules/expat/xmlparse.c:3728:9: 
warning: code will never be executed
  [-Wunreachable-code]
parser->m_characterDataHandler(parser->m_handlerArg, parser->m_dataBuf, 
0);
^~
/Users/nad/Projects/PyDev/active/dev/3x/source/Modules/expat/xmlparse.c:3727:16:
 note: silence by adding parentheses to
  mark code as explicitly dead
  else if (0 && parser->m_characterDataHandler)
   ^
   /* DISABLES CODE */ ( )
2 warnings generated.

--
nosy: +ned.deily

___
Python tracker 

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



[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread miss-islington


miss-islington  added the comment:


New changeset e3761ca91cda86462206d60244078f05c636dd13 by Miss Islington (bot) 
in branch '3.8':
bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452)
https://github.com/python/cpython/commit/e3761ca91cda86462206d60244078f05c636dd13


--

___
Python tracker 

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



[issue37442] Minidom should not pretty-print inside text elements

2019-06-28 Thread Mitar


New submission from Mitar :

Inside text elements both in HTML and SVG white-space is significant and 
introduces differences in how things are rendered. By default in general all 
white-space is collapsed into one space and then this is rendered, adding 
additional text content.

I observed this while working with SVG which can have content like:

foobar

After pretty-printing it with minidom, and white-space collapsing, the 
following is what is input to SVG rendering:

 foo bar 

And space between "foo" and "bar" is now visible and while before it was one 
word to the user, now it is shown as two.

Related issue: https://github.com/mozman/svgwrite/issues/58

I think pretty-printing not add whitespace inside text elements.

--
components: XML
messages: 346846
nosy: mitar
priority: normal
severity: normal
status: open
title: Minidom should not pretty-print inside text elements
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



[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-06-28 Thread Akshay Takkar


Change by Akshay Takkar :


--
keywords: +patch
pull_requests: +14274
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14457

___
Python tracker 

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



[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-28 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +14273
pull_request: https://github.com/python/cpython/pull/14456

___
Python tracker 

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



[issue37438] ConfigParser.set() docs should mention allow_no_value

2019-06-28 Thread Prateek Nayak


Change by Prateek Nayak :


--
keywords: +patch
pull_requests: +14272
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/14455

___
Python tracker 

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



[issue17239] XML vulnerabilities in Python

2019-06-28 Thread Mitar


Change by Mitar :


--
nosy: +mitar

___
Python tracker 

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



[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14271
pull_request: https://github.com/python/cpython/pull/14454

___
Python tracker 

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



[issue37166] inspect.findsource doesn't handle shortened files gracefully

2019-06-28 Thread Michael Bejda


Michael Bejda  added the comment:

I don't think linecache.checkcache helps here. In your example, it would detect 
the modification, but I don't see how it could persist data if the compilation 
and execution are different processes.

--

___
Python tracker 

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



[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-06-28 Thread Ned Deily


Ned Deily  added the comment:

@xtreak, If you set the priority to "release blocker", the appropriate release 
managers will be nosied automatically.  I'd rather see too many potential 
"release blocker"s than too few.

--

___
Python tracker 

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



[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 29f609ed07aa7856741ff8b8b8b050369d0faf81 by Victor Stinner in 
branch 'master':
bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452)
https://github.com/python/cpython/commit/29f609ed07aa7856741ff8b8b8b050369d0faf81


--

___
Python tracker 

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



[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-06-28 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks Ned for the details, in future reports I will also try to add the 
respective release manager to the issue in case of regressions.

--

___
Python tracker 

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



[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2019-06-28 Thread Brett Cannon


Brett Cannon  added the comment:

Do realize the person who created and closed this issue is the one suggesting 
you open a new issue. ;) We can re-evaluate decisions and this one is 5 years 
old. Now I'm not making any promises that we will definitely change anything, 
but I'm not going to swoop in and immediately close it either.

--

___
Python tracker 

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



[issue37166] inspect.findsource doesn't handle shortened files gracefully

2019-06-28 Thread Michael Bejda


Michael Bejda  added the comment:

I do not believe it is specific to the way we package things:

$ cat a.py:
import inspect








def foo(): pass

inspect.getsource(foo)
$ python3 -m compileall -b a.py
$ black a.py  # to remove the empty lines
$ python3 a.pyc  # Index error
Traceback (most recent call last):
  File "a.py", line 12, in 
  File "/usr/local/fbcode/gcc-5-glibc-2.23/lib/python3.6/inspect.py", line 968, 
in getsource
lines, lnum = getsourcelines(object)
  File "/usr/local/fbcode/gcc-5-glibc-2.23/lib/python3.6/inspect.py", line 955, 
in getsourcelines
lines, lnum = findsource(object)
  File "/usr/local/fbcode/gcc-5-glibc-2.23/lib/python3.6/inspect.py", line 828, 
in findsource
if pat.match(lines[lnum]): break
IndexError: list index out of range


You are correct, the heuristic may not return the correct function. However, if 
we are, for any reason, unable to detect the source mismatch, it would be 
better to return 0 line (for the beginning of the module) or raise a 
SystemError instead of an IndexError (which the user does not expect).

--
nosy: +mib

___
Python tracker 

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



[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-06-28 Thread Ned Deily


Ned Deily  added the comment:

"The only changes allowed to occur in a maintenance branch without debate are 
bug fixes. Also, a general rule for maintenance branches is that compatibility 
must not be broken at any point between sibling minor releases (3.5.1, 3.5.2, 
etc.). For both rules, only rare exceptions are accepted and must be discussed 
first."

https://devguide.python.org/devcycle/#maintenance-branches

The principle here is that we "promise" users that they can upgrade from any 
version of 3.n.x to the latest version of 3.n without needing to make any 
changes except in very rare cases when there is an overriding concern and which 
must be well-documented in the release materials.  We're human so we sometimes 
slip up and inadvertently break that promise but that's the goal. And it's 
because of that promise that we can take the approach of immediately obsoleting 
previous older micro releases when a new micro release occurs, i.e. we don't 
provide fixes for 3.7.2 once 3.7.3 is released.

So, from my perspective, pretty much *any* regression between micro releases is 
a release blocker but especially in a case like this where it can be addressed 
before a final release.  That's basically why we do release candidates :)

--

___
Python tracker 

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



[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-06-28 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks Ned, is there a general policy on regressions to be marked as release 
blocker, like if a regression that was made in 3.7.3 then it acts as a release 
blocker for 3.7.4 or is it based on severity? ?

--

___
Python tracker 

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



[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-28 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
pull_requests:  -14269

___
Python tracker 

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



[issue37441] Fix a param error in exceptions.rst

2019-06-28 Thread hai shi


Change by hai shi :


--
keywords: +patch
pull_requests: +14270
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14453

___
Python tracker 

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



[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-28 Thread Steve Dower


Steve Dower  added the comment:


New changeset db4d7ddb012ef8f087a8eb2a5b8a672d04a48e1a by Steve Dower in branch 
'3.7':
bpo-37369: Fixes path for sys.executable when running from the Microsoft Store 
(GH-14450)
https://github.com/python/cpython/commit/db4d7ddb012ef8f087a8eb2a5b8a672d04a48e1a


--

___
Python tracker 

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



[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-28 Thread hai shi


Change by hai shi :


--
pull_requests: +14269
pull_request: https://github.com/python/cpython/pull/14453

___
Python tracker 

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



[issue37441] Fix a param error in exceptions.rst

2019-06-28 Thread hai shi


New submission from hai shi :

Due to https://github.com/python/cpython/blob/master/Python/errors.c#L845-L846,
`PyObject* PyErr_SetImportErrorSubclass(PyObject *msg, PyObject *name, PyObject 
*path)` should be  `PyObject* PyErr_SetImportErrorSubclass(PyObject *exception, 
PyObject *msg, PyObject *name, PyObject *path)`

--
assignee: docs@python
components: Documentation
messages: 346836
nosy: docs@python, shihai1991
priority: normal
severity: normal
status: open
title: Fix a param error in exceptions.rst
type: behavior

___
Python tracker 

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



[issue37287] picke cannot dump Exception subclasses with different super() args

2019-06-28 Thread Fabian Raab


Change by Fabian Raab :


--
nosy: +raabf

___
Python tracker 

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



[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread STINNER Victor


STINNER Victor  added the comment:

Fail on FreeBSD as well:

https://buildbot.python.org/all/#/builders/168/builds/1222

==
FAIL: test_getcwd_long_path (test.test_os.MiscTests)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_os.py",
 line 115, in test_getcwd_long_path
self.assertEqual(cwd, expected)
AssertionError: '/var/tmp/tmpq45z_od3' != '/tmp/tmpq45z_od3'
- /var/tmp/tmpq45z_od3
? 
+ /tmp/tmpq45z_od3

--

___
Python tracker 

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



[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread STINNER Victor


STINNER Victor  added the comment:

Oh. Now the test fails on macOS:

https://buildbot.python.org/all/#/builders/145/builds/2021
==
FAIL: test_getcwd_long_path (test.test_os.MiscTests)
--
Traceback (most recent call last):
  File 
"/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_os.py", 
line 115, in test_getcwd_long_path
self.assertEqual(cwd, expected)
AssertionError: 
'/private/var/folders/sy/9hwmqyx14s11577cvgzwf2v4gt/T/tmpchlt91ay' != 
'/var/folders/sy/9hwmqyx14s11577cvgzwf2v4gt/T/tmpchlt91ay'
- /private/var/folders/sy/9hwmqyx14s11577cvgzwf2v4gt/T/tmpchlt91ay
? 
+ /var/folders/sy/9hwmqyx14s11577cvgzwf2v4gt/T/tmpchlt91ay

--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +14268
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/14452

___
Python tracker 

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



[issue37208] Weird exception behaviour in ProcessPoolExecutor

2019-06-28 Thread F. Raab


Change by F. Raab :


--
nosy: +raabf

___
Python tracker 

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



[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread STINNER Victor


STINNER Victor  added the comment:

Ok, the regression should now be fixed and test_os now also tests os.getcwd() 
with a "long path" :-) Thank a lot Eryk Sun for your great advices on reviews!

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



[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 68c1c398f3534af16309a86ab815b61d2487e6db by Victor Stinner (Miss 
Islington (bot)) in branch '3.8':
bpo-37412: Fix os.getcwd() for long path on Windows (GH-14424) (GH-14451)
https://github.com/python/cpython/commit/68c1c398f3534af16309a86ab815b61d2487e6db


--

___
Python tracker 

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



[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2019-06-28 Thread STINNER Victor


STINNER Victor  added the comment:

I'm fine with relying on buildbots for test_gdb on Python 3.7 and older. Thanks 
for the fixes.

--

___
Python tracker 

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



[issue37329] [2.7] valgrind python2 -m test.regrtest test___all__: definitely lost: 324 bytes in 2 blocks

2019-06-28 Thread STINNER Victor


STINNER Victor  added the comment:

I confirm that my fix works with this manual test. I get "definitely lost: 0 
bytes in 0 blocks" as expected:

$ valgrind --suppressions=Misc/valgrind-python.supp ./python -m test.regrtest 
test___all__
(...)
==23782== LEAK SUMMARY:
==23782==definitely lost: 0 bytes in 0 blocks
==23782==indirectly lost: 0 bytes in 0 blocks
==23782==  possibly lost: 17,945,740 bytes in 85,380 blocks
==23782==still reachable: 283,821 bytes in 475 blocks
==23782== suppressed: 2,605 bytes in 20 blocks
==23782== Reachable blocks (those to which a pointer was found) are not shown.

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



[issue37329] [2.7] valgrind python2 -m test.regrtest test___all__: definitely lost: 324 bytes in 2 blocks

2019-06-28 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 065aff3c518a641e7a734a5b93f9ebed1b405c49 by Victor Stinner in 
branch '2.7':
[2.7] bpo-37329: valgrind: ignore _PyWarnings_Init false alarms (GH-14202)
https://github.com/python/cpython/commit/065aff3c518a641e7a734a5b93f9ebed1b405c49


--

___
Python tracker 

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



[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-06-28 Thread STINNER Victor


STINNER Victor  added the comment:

I merged PR 14360 into master. Are Python 2.7, 3.7 and 3.8 impacted by the bug 
as well? Should we backport the change, or would it be too dangerous?

--

___
Python tracker 

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



[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-06-28 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 042821ae3cf537e01963c9ec85d1a454d921e826 by Victor Stinner 
(Ruslan Kuprieiev) in branch 'master':
bpo-37380: subprocess: don't use _active on win (GH-14360)
https://github.com/python/cpython/commit/042821ae3cf537e01963c9ec85d1a454d921e826


--

___
Python tracker 

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



[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 64580da33122a10aef75c76aa3ff87c0ee11e3d7 by Victor Stinner in 
branch 'master':
bpo-37412: pythoninfo: add Windows long paths (GH-14434)
https://github.com/python/cpython/commit/64580da33122a10aef75c76aa3ff87c0ee11e3d7


--

___
Python tracker 

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



[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset ec3e20a2d1edddb0558f9d32e2b367904ccdde88 by Victor Stinner in 
branch 'master':
bpo-37412: Fix os.getcwd() for long path on Windows (GH-14424)
https://github.com/python/cpython/commit/ec3e20a2d1edddb0558f9d32e2b367904ccdde88


--

___
Python tracker 

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



[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14267
pull_request: https://github.com/python/cpython/pull/14451

___
Python tracker 

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



[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-28 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +14266
pull_request: https://github.com/python/cpython/pull/14450

___
Python tracker 

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



[issue37439] Add random.binomialvariate()

2019-06-28 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
Removed message: https://bugs.python.org/msg346817

___
Python tracker 

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



[issue37335] Improve encoding alias handling in locale coercion tests

2019-06-28 Thread Jakub Kulik


Change by Jakub Kulik :


--
pull_requests: +14265
pull_request: https://github.com/python/cpython/pull/14449

___
Python tracker 

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



[issue37428] SSLContext.post_handshake_auth implicitly enables cert validation

2019-06-28 Thread Christian Heimes


Christian Heimes  added the comment:

There are currently two issues with TLS 1.3 in Python. The issue 
https://bugs.python.org/issue37440 can be worked around easily with a custom 
SSLContext. This issue is a bigger problem because there is no possible 
workaround.

The bug is going to break applications that verify clients with a certificate 
but accept untrusted server certificates. It's not a common scenario, but I 
just happen to run into this issue for a project at work.

I'm sorry for the mess. :( I noticed the bug a couple of days ago. It took me a 
while to understand the root cause.

--

___
Python tracker 

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



[issue20443] __code__. co_filename should always be an absolute path

2019-06-28 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 3029035ef34c9bae0c8d965290cd9b273c8de1ea by Victor Stinner in 
branch 'master':
bpo-20443: Fix calculate_program_full_path() warning (GH-14446)
https://github.com/python/cpython/commit/3029035ef34c9bae0c8d965290cd9b273c8de1ea


--

___
Python tracker 

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



[issue37440] httplib should enable post-handshake authentication for TLS 1.3

2019-06-28 Thread Christian Heimes


Change by Christian Heimes :


--
keywords: +patch
pull_requests: +14264
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14448

___
Python tracker 

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



[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-06-28 Thread Ned Deily


Ned Deily  added the comment:

Since the latest fix (GH-14369) addresses a regression between 3.7.3 and 
3.7.4rc1, I am going to cherry-pick it into 3.7.4 final.  (In retrospect, this 
regression should have been marked as a "release blocker".)

--
nosy: +ned.deily

___
Python tracker 

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



[issue37337] Add _PyObject_VectorcallMethod() function

2019-06-28 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue37440] httplib should enable post-handshake authentication for TLS 1.3

2019-06-28 Thread Christian Heimes


Change by Christian Heimes :


--
dependencies: +SSLContext.post_handshake_auth implicitly enables cert validation

___
Python tracker 

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



[issue37335] Improve encoding alias handling in locale coercion tests

2019-06-28 Thread Jakub Kulik


Change by Jakub Kulik :


--
pull_requests: +14263
pull_request: https://github.com/python/cpython/pull/14447

___
Python tracker 

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



[issue37335] Improve encoding alias handling in locale coercion tests

2019-06-28 Thread Jakub Kulik


Jakub Kulik  added the comment:

Python 3.8+ encodings are always normalized and thus no output variations 
handling is necessary (the code is no longer necessary).

Python 3.7 (and possibly lower) can have variations in encodings - that should 
be fixed with codecs.lookup functions.

--
title: Fix unexpected ASCII aliases in locale coercion tests. -> Improve 
encoding alias handling in locale coercion tests
versions: +Python 3.8, Python 3.9

___
Python tracker 

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



[issue37440] httplib should enable post-handshake authentication for TLS 1.3

2019-06-28 Thread Christian Heimes


New submission from Christian Heimes :

httplib.client does not enable post-handshake authentication for TLS 1.3 
connections. PHA is necessary for TLS 1.3 connections to servers that have 
conditional client cert authentication. For example Apache mod_ssl uses PHA 
when only certain paths or request methods require a client cert to 
authenticate a client.

Since TLS 1.3 is enabled by default with OpenSSL 1.1.1 and TLS 1.3 is preferred 
over TLS 1.2, the lack of PHA extension breaks backwards compatibility.

--
assignee: christian.heimes
components: Library (Lib), SSL
messages: 346820
nosy: alex, christian.heimes, dstufft, janssen, ned.deily
priority: deferred blocker
severity: normal
status: open
title: httplib should enable post-handshake authentication for TLS 1.3
type: behavior
versions: Python 2.7, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue37432] Fix a small param type in allocation.rst

2019-06-28 Thread SilentGhost


Change by SilentGhost :


--
versions: +Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue37432] Fix a small param type in allocation.rst

2019-06-28 Thread SilentGhost


Change by SilentGhost :


--
resolution:  -> fixed

___
Python tracker 

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



[issue20443] __code__. co_filename should always be an absolute path

2019-06-28 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +14262
pull_request: https://github.com/python/cpython/pull/14446

___
Python tracker 

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



[issue37428] SSLContext.post_handshake_auth implicitly enables cert validation

2019-06-28 Thread Ned Deily


Ned Deily  added the comment:

"Assuming no critical problems are found prior to 2019-06-28, no code changes 
are planned between these release candidates and the final releases."

We were planning to start producing the final release artifacts in a couple of 
hours so we need to make a decision very quickly.  If you think this is 
necessary, we can delay the release a bit.  In the worst case, we could do a 
second release candidate but I *really* do not want to do that unless it is 
absolutely necessary.  Also note that with 3.7.4, we have updated the Windows 
and macOS installers to use OpenSSL 1.1.1 (c) instead of 1.1.0.

--

___
Python tracker 

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



[issue37428] SSLContext.post_handshake_auth implicitly enables cert validation

2019-06-28 Thread Christian Heimes


Christian Heimes  added the comment:

This issue breaks some stuff at work. I would appreciate if we can get the fix 
into 3.7.4. I wasn't aware that we are so close to cut-off to 3.7.4 release.


What does the fix do?
I moved all PHA related flags / options from SSL_CTX* to SSL*. The flags and 
options now depend on the socket type and existing flags.

For a server-side socket, the SSL_VERIFY_POST_HANDSHAKE verify flag is now only 
set when the server socket is configured to verify client certs. Server sockets 
without SSL_VERIFY_PEER flag don't set the option. The presence of 
SSL_VERIFY_POST_HANDSHAKE without SSL_VERIFY_PEER sometimes triggers handshake 
errors like "extension not received". The official documentation says "This 
flag must be used together with SSL_VERIFY_PEER.". The ssl.CERT_OPTIONAL and 
ssl.CERT_REQURED both set SSL_VERIFY_PEER. SSL_set_post_handshake_auth() is not 
enabled for server-side sockets.

For client side sockets, PHA is only enabled with 
SSL_set_post_handshake_auth(ssl, 1). The SSL_VERIFY_POST_HANDSHAKE flag is no 
longer set.

https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set_post_handshake_auth.html

--
nosy: +alex
priority: high -> deferred blocker

___
Python tracker 

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



  1   2   >