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

2019-07-22 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

The warning in docutils was fixed in 
https://sourceforge.net/p/docutils/code/8255/ 1.5 months ago. It was an 
outliner, all other occurrences of \leavevmode were either with the double 
backslash or in raw string literals.

The Bottle code was written 5 years age 
(https://github.com/bottlepy/bottle/commit/8a5bfe2f70a4a5d22b93e909b207584324817760),
 it was a part of the raw string. But a bug was introduced when it it was 
backported to the 0.12 version 
(https://github.com/bottlepy/bottle/commit/1f6fda636a4ea88adfa4292f3c843e71b1a685d8).

--
nosy: +Eric Wieser

___
Python tracker 

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



[issue37635] Using constant for whence arg in seek()

2019-07-22 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

I would agree with changing the tutorial.  The rest doesn't need to be changed.

--

___
Python tracker 

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



[issue37635] Using constant for whence arg in seek()

2019-07-22 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

AFAIK there is an open PR which sweeps through the standard library, changing 
seek() everywhere to use named constants.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue37647] Wrong lineno in traceback when formatting strings with % and multilines

2019-07-22 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Line 9 is not where the error actually happened. The exception is raised not 
when you call Z(), but when you implicitly call Z.__str__() when evaluate the % 
operator.

In Python 3.8 the traceback points to the start of the subexpression that 
raises an exception.

So this issue has been fixed in 3.8. The fix was not backported to 3.7 because 
it is a large change which affects other code that traces execution or analyses 
tracebacks (e.g. coverage.py).

--
resolution:  -> out of date
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



[issue21478] mock calls don't propagate to parent (autospec)

2019-07-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14681
pull_request: https://github.com/python/cpython/pull/14903

___
Python tracker 

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



[issue21478] mock calls don't propagate to parent (autospec)

2019-07-22 Thread Chris Withers


Chris Withers  added the comment:


New changeset 7397cda99795a4a8d96193d710105e77a07b7411 by Chris Withers 
(Xtreak) in branch 'master':
bpo-21478: Record calls to parent when autospecced objects are used as child 
with attach_mock (GH 14688)
https://github.com/python/cpython/commit/7397cda99795a4a8d96193d710105e77a07b7411


--

___
Python tracker 

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



[issue21478] mock calls don't propagate to parent (autospec)

2019-07-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14680
pull_request: https://github.com/python/cpython/pull/14902

___
Python tracker 

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



[issue37635] Using constant for whence arg in seek()

2019-07-22 Thread Kyle Stanley


Kyle Stanley  added the comment:

> I would agree with changing the tutorial.  The rest doesn't need to be 
> changed.

Fair enough, that's understandable. I'll look into creating a PR for the 
tutorial to attach to this issue. Thanks for the feedback Antoine and Raymond. 

>AFAIK there is an open PR which sweeps through the standard library, changing 
>seek() >everywhere to use named constants.

Even I would disagree with doing it through all of stdlib, especially with the 
current feedback. I was primarily advocating for using the constants in places 
where the io module was already being imported, since in that case, it wouldn't 
result in any additional overhead. Replacing it everywhere would require a 
significant number of additional io imports.

--

___
Python tracker 

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



[issue37648] Fix minor inconsistency in the order of == operands

2019-07-22 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

There is two ways to write the comparison when we search an item equal to the 
needle:

item == needle

and

needle == item

In most cases they get the same result. But if __eq__ of the item or the needle 
is not correctly implemented (returns False instead of NotImplemented for 
unsupported types) the order can matter. We want the behavior be consistent in 
all cases.

The majority of the code uses needle on the right side of the == operator. But 
there are few outliners:

* tuple.__contains__ and list.__contains__. They code is different from the 
code used in methods count(), index(), remove() where needle is on the right.

* The general implementation of the "in" operator for iterators (see 
PySequence_Contains).

* dictitems.__contains__.

* The copy of list_contains in _ssl.c.

* The C implementation of _asyncio.Future.remove_done_callback. It differs from 
the Python implementation.

In all other code (many tens of occurrences) needle is on the right.

I think it is worth to fix the minor inconsistency in these few places.

See also the discussion on Python-Dev: 
https://mail.python.org/archives/list/python-...@python.org/thread/VSV4K4AOKM4CBQMOELPFV5VMYALPH464/.

--
components: Interpreter Core
messages: 348287
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Fix minor inconsistency in the order of == operands
versions: Python 3.9

___
Python tracker 

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



[issue21478] mock calls don't propagate to parent (autospec)

2019-07-22 Thread Chris Withers


Chris Withers  added the comment:


New changeset 22fd679dc363bfcbda336775da16aff4d6fcb33f by Chris Withers (Miss 
Islington (bot)) in branch '3.8':
bpo-21478: Record calls to parent when autospecced objects are used as child 
with attach_mock (GH 14688) (GH-14902)
https://github.com/python/cpython/commit/22fd679dc363bfcbda336775da16aff4d6fcb33f


--

___
Python tracker 

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



[issue21478] mock calls don't propagate to parent (autospec)

2019-07-22 Thread Chris Withers


Chris Withers  added the comment:


New changeset e9b187a2bfbb0586fc5d554ce745b7fe04e0b9a8 by Chris Withers (Miss 
Islington (bot)) in branch '3.7':
bpo-21478: Record calls to parent when autospecced objects are used as child 
with attach_mock (GH 14688) (GH-14903)
https://github.com/python/cpython/commit/e9b187a2bfbb0586fc5d554ce745b7fe04e0b9a8


--

___
Python tracker 

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



[issue37648] Fix minor inconsistency in the order of == operands

2019-07-22 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue37648] Fix minor inconsistency in the order of == operands

2019-07-22 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +gvanrossum

___
Python tracker 

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



[issue37648] Fix minor inconsistency in the order of == operands

2019-07-22 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue37647] Wrong lineno in traceback when formatting strings with % and multilines

2019-07-22 Thread Bruno P. Kinoshita


Bruno P. Kinoshita  added the comment:

Hi,

Thanks for the explanation. Could you elaborate a bit on this one:

>In Python 3.8 the traceback points to the start of the subexpression that 
>raises an exception.

Just wanted to understand why I get the desired line number when I call 
Z().__str__(), but when I call simply Z() is returns - as you clarified - the 
start of the subexpression.

--

___
Python tracker 

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



[issue21478] mock calls don't propagate to parent (autospec)

2019-07-22 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks Jack for the report. Thanks Mario and Chris for reviews. I am closing 
this as resolved.

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



[issue37646] eval() in a list comprehension

2019-07-22 Thread Grzegorz Krasoń

Grzegorz Krasoń  added the comment:

Steven, I believed that any `` replaced by `eval('')` 
will not change behaviour of the code. Now I understand that my assumption was 
incorrect.

Raymond, thanks for helping me understand this.

--
resolution:  -> not a bug
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



[issue37649] calculate_init fails to check that EXEC_PREFIX was decoded

2019-07-22 Thread Orivej Desh


New submission from Orivej Desh :

See https://github.com/python/cpython/pull/14897

The bug was introduced in 
https://github.com/python/cpython/commit/0327bde9da203bb256b58218d012ca76ad0db4e4#diff-fa81ddea06129e7a2ef6b5a1c6a0af4dR925

--
components: Interpreter Core
messages: 348292
nosy: orivej
priority: normal
pull_requests: 14683
severity: normal
status: open
title: calculate_init fails to check that EXEC_PREFIX was decoded
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



[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-07-22 Thread Ben Brown


Ben Brown  added the comment:

I can fully confirm the issue is due to flow control or lack of in my code the 
system runs out of resources and this is when it errors, I have implemented 
flow control in my protocol and it now works without errors. One thing I did 
find is that the documentation on flow control was lacking but luckily I found 
this post which makes implementation clearer 
https://medium.com/@pgjones/an-asyncio-socket-tutorial-5e6f3308b8b0

I am not sure if you would still classify this as a bug the error could be 
clearer but it could be expected behaviour when you run out of resources, I 
think this can now be closed I am just unsure of the etiquette as to who closes 
it and what resolution should be selected.

--

___
Python tracker 

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



[issue37630] Investigate replacing SHA3 code with OpenSSL

2019-07-22 Thread Charalampos Stratakis


Change by Charalampos Stratakis :


--
nosy: +cstratak

___
Python tracker 

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



[issue37650] TemporaryDirectory objects should LOCK_SH to avoid being deleted by systemd-tmpfiles

2019-07-22 Thread Ryan Gonzalez


New submission from Ryan Gonzalez :

If e.g. a tar archive is extracted that has dates from several months ago, if 
systemd-tmpfiles runs to clean up data, then it may delete that data while the 
directory is still being used. This can be avoided by holding a LOCK_SH on the 
directory while it's being used.

--
components: Library (Lib)
messages: 348295
nosy: refi64
priority: normal
severity: normal
status: open
title: TemporaryDirectory objects should LOCK_SH to avoid being deleted by 
systemd-tmpfiles
type: enhancement

___
Python tracker 

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



[issue37650] TemporaryDirectory objects should LOCK_SH to avoid being deleted by systemd-tmpfiles

2019-07-22 Thread Roundup Robot


Change by Roundup Robot :


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

___
Python tracker 

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



[issue37631] EXTRA_CFLAGS get overrided by CFLAGS_NODIST

2019-07-22 Thread Marcel Plch


Marcel Plch  added the comment:

I believe you mean this downstream issue: 
https://bugzilla.redhat.com/show_bug.cgi?id=1712977

That issue is but only a consequence of a bad flag handling.
The bad flag handling affects not only test_gdb on that specific architecture, 
but the entire optimization level on all architectures, hence causing 
inconveniences in debugging in general on all architectures. It's a pure chance 
that one test caught this specific case.

It might also cause inconveniences with other use-cases for EXTRA_CFLAGS, as 
they might get overridden by CFLAGS_NODIST.

You can get the erroneous output by running the reproducer. That is:

$./configure
...
$ make CFLAGS_NODIST="-O2" EXTRA_CFLAGS="-Og"
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
  -Og -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration -O2 
-I./Include/internal  -I. -I./Include-DPy_BUILD_CORE -o Programs/python.o 
./Programs/python.c

-Og from EXTRA_CFLAGS gets overridden by -O2 from CFLAGS_NODIST.

--

___
Python tracker 

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



[issue37651] Change of inheritance of asyncio.CancelledError needs documentation

2019-07-22 Thread Gary van der Merwe


New submission from Gary van der Merwe :

asyncio.CancelledError inheritance was changed in 3.8. 

https://bugs.python.org/issue32528
https://github.com/python/cpython/commit/431b540bf79f0982559b1b0e420b1b085f667bb7

The documentation still instructs the user to perform a pattern needed before 
this change. The documentation should probably change to inform them of the 
change, and to let them know that pattern is only necessary prior to 3.8.

--
assignee: docs@python
components: Documentation
messages: 348297
nosy: docs@python, garyvdm
priority: normal
severity: normal
status: open
title: Change of inheritance of asyncio.CancelledError needs documentation
versions: Python 3.8

___
Python tracker 

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



[issue37648] Fix minor inconsistency in the order of == operands

2019-07-22 Thread Josh Rosenberg


Change by Josh Rosenberg :


--
nosy: +josh.r

___
Python tracker 

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



[issue37642] timezone allows no offset from range (23:59, 24:00)

2019-07-22 Thread Paul Ganssle


Paul Ganssle  added the comment:

I have been thinking about this more and I think the two issues (`min` and 
`max` vs. the incompatibility between C and Python) should be considered two 
separate issues.

My reasoning is that a change of the value of `timezone.min` and `timezone.max` 
is not something I'd be comfortable backporting to 3.7, because it has the 
potential to cause failures in some test suites (for example, 
`datetime.now(tz=datetime.timezone.max).isoformat()` will start returning a 
string that does not conform to ISO 8601, which has no support for sub-minute 
offsets). However, differences between the C and Python implementations are a 
violation of at least the spirit of PEP 399 and I think it should be backported 
to 3.7.

--

___
Python tracker 

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



[issue37652] Multiprocessing shared_memory ValueError on race with ShareableList

2019-07-22 Thread Ben


New submission from Ben :

When running the attached on 3.8 and 3.9 (master) I get the following:

Process Process-3:
Traceback (most recent call last):  
 
  File 
"/home/bjs/.pyenv/versions/3.9-dev/lib/python3.9/multiprocessing/process.py", 
line 313, in _bootstrap
self.run()
  File 
"/home/bjs/.pyenv/versions/3.9-dev/lib/python3.9/multiprocessing/process.py", 
line 108, in run
self._target(*self._args, **self._kwargs)
  File 
"/home/bjs/Downloads/e4671450a50df5a0648c6dda0c7b642a-3db67c29d8d9e6a6d629c2c016f5853ec22000ed/test.py",
 line 14, in g
X[0]
  File 
"/home/bjs/.pyenv/versions/3.9-dev/lib/python3.9/multiprocessing/shared_memory.py",
 line 413, in __getitem__
(v,) = struct.unpack_from(
ValueError: not enough values to unpack (expected 1, got 0)

(Tested on Windows and Linux)

Either this is a documentation error,  and the docs for shared_memory should 
state that the ShareableList does not have atomic operations and so this is 
unsafe,  or this is a suspicious behaviour.  I'm not sure which.

I could also just be using the library totally incorrectly.

--
files: test.py
messages: 348299
nosy: bjs
priority: normal
severity: normal
status: open
title: Multiprocessing shared_memory ValueError on race with ShareableList
type: behavior
versions: Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48496/test.py

___
Python tracker 

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



[issue37652] Multiprocessing shared_memory ValueError on race with ShareableList

2019-07-22 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +davin, pitrou

___
Python tracker 

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



[issue37496] Support annotations in signature strings.

2019-07-22 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
nosy: +nanjekyejoannah

___
Python tracker 

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



[issue37653] make install fails

2019-07-22 Thread Erlend Egeberg Aasland


New submission from Erlend Egeberg Aasland :

Make install is broken in subtarget libinstall. This was introduced with commit 
e8692818afd731c1b7e925c626ac8200b1f1c31e.

Fix in attached patch.

--
components: Build
files: fix.patch
keywords: patch
messages: 348300
nosy: Erlend Egeberg Aasland
priority: normal
severity: normal
status: open
title: make install fails
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file48497/fix.patch

___
Python tracker 

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



[issue37653] make install fails

2019-07-22 Thread SilentGhost


Change by SilentGhost :


--
keywords: +3.8regression
nosy: +vstinner
stage:  -> patch review
versions: +Python 3.8

___
Python tracker 

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



[issue37653] make install fails

2019-07-22 Thread SilentGhost


Change by SilentGhost :


--
keywords:  -3.8regression
versions:  -Python 3.8

___
Python tracker 

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



[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-07-22 Thread Petter S


Petter S  added the comment:

The following message can still appear in the log when running the Django 
development server:


Exception happened during processing of request from ('127.0.0.1', 50713)
Traceback (most recent call last):
  File "d:\python37\Lib\socketserver.py", line 650, in process_request_thread
self.finish_request(request, client_address)
  File "d:\python37\Lib\socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
  File "d:\python37\Lib\socketserver.py", line 720, in __init__
self.handle()
  File "D:\Virtualenvs\***\lib\site-packages\django\core\servers\basehttp.py", 
line 171, in handle
self.handle_one_request()
  File "D:\Virtualenvs\***\lib\site-packages\django\core\servers\basehttp.py", 
line 179, in handle_one_request
self.raw_requestline = self.rfile.readline(65537)
  File "d:\python37\Lib\socket.py", line 589, in readinto
return self._sock.recv_into(b)
ConnectionAbortedError: [WinError 10053] An established connection was aborted 
by the software in your host machine



This is much better than before but even this message is completely 
uninteresting as web browsers disconnect from servers all the time. However, 
this could be better to fix in Django.

--

___
Python tracker 

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



[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-07-22 Thread Petter S


Petter S  added the comment:

Could potentially already be fixed in Django: 
https://github.com/django/django/commit/7785e03ba89aafbd949191f126361fb9103cb980#diff-f6d1c75ec606389da5af6558bf57f171L51

--

___
Python tracker 

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



[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-07-22 Thread Petter S


Petter S  added the comment:

No it is not fixed in Django, but I verified that adding ConnectionAbortedError 
on this line

https://github.com/django/django/blob/c6581a40be3bb4c1e13861f0adbb3fe01f09107f/django/core/servers/basehttp.py#L55

fixes the error.

--

___
Python tracker 

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



[issue37654] 2to3 no-ops on embeddable distribution

2019-07-22 Thread Bill Collins


New submission from Bill Collins :

Firstly, I'd acknowledge that expecting 2to3 to work on the embeddable 
distribution might be the problem, but the mode of failure is silent and 
delayed.

The problem is that 2to3 loads fix names by searching for files in a package 
that end in '.py' 
(https://github.com/python/cpython/blame/master/Lib/lib2to3/refactor.py#L30) 
which isn't much use on the embeddable distribution where everything is 
pre-comipled.

So, installing an sdist package that relies on 2to3 will succeed, but any 
attempt to then actually use the installed package will fail.

I'm not sure whether the correct behavior here might be to

1. Fix 2to3 to load from pyc files (explicitly enabling 2to3 based installation 
on embeddable)
2. Fix 2to3 to fail when no converters are found (or similar; explicitly 
*disabling* 2to3 based installation on embeddable).

Or something else entirely.

--
components: 2to3 (2.x to 3.x conversion tool)
messages: 348304
nosy: Bill Collins
priority: normal
severity: normal
status: open
title: 2to3 no-ops on embeddable distribution
type: behavior
versions: Python 3.5, Python 3.6, 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



[issue36044] PROFILE_TASK for PGO build is not a good workload

2019-07-22 Thread Neil Schemenauer


Neil Schemenauer  added the comment:


New changeset 4e16a4a3112161a5c6981c0588142d4a4673a934 by Neil Schemenauer in 
branch 'master':
bpo-36044: Reduce number of unit tests run for PGO build (GH-14702)
https://github.com/python/cpython/commit/4e16a4a3112161a5c6981c0588142d4a4673a934


--

___
Python tracker 

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



[issue36044] PROFILE_TASK for PGO build is not a good workload

2019-07-22 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14685
pull_request: https://github.com/python/cpython/pull/14910

___
Python tracker 

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



[issue36044] PROFILE_TASK for PGO build is not a good workload

2019-07-22 Thread miss-islington


miss-islington  added the comment:


New changeset 2406672984e4c1b18629e615edad52928a72ffcc by Miss Islington (bot) 
in branch '3.8':
bpo-36044: Reduce number of unit tests run for PGO build (GH-14702)
https://github.com/python/cpython/commit/2406672984e4c1b18629e615edad52928a72ffcc


--
nosy: +miss-islington

___
Python tracker 

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



[issue37655] Set subset operator docs

2019-07-22 Thread Frank B


New submission from Frank B :

The docs say "Test whether the set is a proper subset of other" for both set < 
other and set > other built-in functions.

Is that a misprint? How could it be both?

For the <= and >= operators it properly reverses the order so one says:

Test whether every element in the set is in other.

and the other:

Test whether every element in other is in the set.

--
assignee: docs@python
components: Documentation
files: 2019-07-22 1728 Screenshot.png
messages: 348307
nosy: Frank B2, docs@python
priority: normal
severity: normal
status: open
title: Set subset operator docs
versions: Python 2.7, Python 3.7
Added file: https://bugs.python.org/file48498/2019-07-22 1728 Screenshot.png

___
Python tracker 

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



[issue37653] make install fails

2019-07-22 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
pull_requests: +14686
pull_request: https://github.com/python/cpython/pull/14911

___
Python tracker 

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



[issue37656] Can't pip install because of bisect_left

2019-07-22 Thread Peter Farrell


New submission from Peter Farrell :

Not able to start up Anaconda because of an error including "cannot import 
bisect_left" whatever that means. I uninstalled and tried to reinstall. No 
luck. Finally uninstalled and can't pip install anything because of this exact 
error. Here's my screenshot.

--
files: pip_error.png
messages: 348308
nosy: Peter Farrell
priority: normal
severity: normal
status: open
title: Can't pip install because of bisect_left
Added file: https://bugs.python.org/file48499/pip_error.png

___
Python tracker 

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



[issue37656] Can't pip install because of bisect_left

2019-07-22 Thread Peter Farrell


Change by Peter Farrell :


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



[issue26695] pickle and _pickle accelerator have different behavior when unpickling an object with falsy __getstate__ return

2019-07-22 Thread Zackery Spytz


Zackery Spytz  added the comment:

Josh, would you consider creating a pull request for this issue?

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue37534] In minidom module ability to add Standalone Document Declaraion is missing while generating XML documents

2019-07-22 Thread Henry Harutyunyan


Change by Henry Harutyunyan :


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

___
Python tracker 

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



[issue22491] Support Unicode line boundaries in regular expression

2019-07-22 Thread Zackery Spytz


Zackery Spytz  added the comment:

> To meet Unicode standard requirement RL1.6 [1] all Unicode line separators 
> should be supported:

It seems that large portions of Modules/_sre.c would have to be rewritten in 
order to do this.

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue30864] Compile failure for linux socket CAN support

2019-07-22 Thread Zackery Spytz


Zackery Spytz  added the comment:

It seems that the AF_CAN issue was fixed in bpo-31927 / 
d3187158c09cf899e9849f335bdff10594209167.

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue28869] __module__ attribute is not set correctly for a class created by direct metaclass call

2019-07-22 Thread Alejandro Gonzalez

Alejandro Gonzalez  added the comment:

I see, that’s an interesting point. In that case, Serhiy’s approach is indeed 
better.

PR 14166 seems stalled. I’d like to help if there’s anything left to do, if 
possible :)

--

___
Python tracker 

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



[issue37646] eval() in a list comprehension

2019-07-22 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

I'm not sure we should be so quick to close this. At the very least, I 
think the documentation could be improved.

It does seem desirable to have the invariant:

`expression` == `eval("expression")`

apply in any environment. Was the change in behaviour between 2 and 3 
intentional, or just a side-effect of the change in implementation?

--

___
Python tracker 

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



[issue37655] Set subset operator docs

2019-07-22 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +rhettinger

___
Python tracker 

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



[issue37655] Set subset operator docs

2019-07-22 Thread Aldwin Pollefeyt


Aldwin Pollefeyt  added the comment:

For 'set < other' it says sub-set ... for 'set > other' is says super-set. 
Subset vs superset. So I think it's correct in the documentation.

--
nosy: +aldwinaldwin

___
Python tracker 

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



[issue36595] IDLE: Add search to Squeezed Output text viewer.

2019-07-22 Thread Farhaan Bukhsh


Farhaan Bukhsh  added the comment:

Hey, this looks like an interesting feature. I want to take a stab at it. Terry 
can you help me understand the requirement better and may be mentor me to write 
it.

--
nosy: +fhackdroid

___
Python tracker 

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



[issue37657] ERROR: grip 4.5.2 requires docopt>=0.4.0, which is not installed.

2019-07-22 Thread Dima Tisnek


New submission from Dima Tisnek :

I have Python-3.7.2 installed.
I've just installed Python3.8.0b2 on macOS,
and ran "Install Certificates.command".
The terminal output contained:

ERROR: grip 4.5.2 requires docopt>=0.4.0, which is not installed.

(certifi-2019.6.16 got installed correctly)
(Re-running the command again doesn't produce same output, because certifi is 
up to date)

--
components: Installation
messages: 348316
nosy: Dima.Tisnek
priority: normal
severity: normal
status: open
title: ERROR: grip 4.5.2 requires docopt>=0.4.0, which is not installed.
versions: Python 3.8

___
Python tracker 

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



[issue36595] IDLE: Add search to textview.ViewWindow

2019-07-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

If a ViewWindow has more that 24 lines, then it has a button bar at the bottom 
that currently has one button -- [Close].

1. Make the bar permanent, regardless of size.

The next steps are to adapt the editor code for Find.
2. Add another button [Search] or [Find] whose command generates a  
pseudoevent.
3. Bind the find keys to , as in the editor.
4 I believe  is already bound to the find_event function, but do so if 
needed.

This is more or less the same as in the editor, except that the button replaces 
the menu item.

--
title: IDLE: Add search to Squeezed Output text viewer. -> IDLE: Add search to 
textview.ViewWindow
versions: +Python 3.9

___
Python tracker 

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



[issue37656] Can't pip install because of bisect_left

2019-07-22 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Try deleting bisect.py from the Python37-32 directory.  I suspect there is a 
spurious bisect file there that in shadowing the intended standard library 
version which would be in Python37-32/lib.

--
nosy: +rhettinger

___
Python tracker 

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



[issue37655] Set subset operator docs

2019-07-22 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

The docs look fine to me as well.

--
resolution:  -> not a bug
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



[issue37657] ERROR: grip 4.5.2 requires docopt>=0.4.0, which is not installed.

2019-07-22 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

grip and docopt are not a part of standard library. I assume this issue is 
related to Mac OS installer and tagging it as Mac OS issue for confirmation to 
close it as third party issue.

--
components: +macOS
nosy: +ned.deily, ronaldoussoren, xtreak
type:  -> behavior

___
Python tracker 

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



[issue36568] Typo in socket.CAN_RAW_FD_FRAMES library documentation

2019-07-22 Thread Zackery Spytz


Zackery Spytz  added the comment:

It seems that this was fixed in 1b05aa219041eb1c9dbcb4ec6c1fa5b20f060bf5.

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue30237] Access violation due to CancelSynchronousIo of console read

2019-07-22 Thread Zackery Spytz


Zackery Spytz  added the comment:

PR 7911 was merged and backported. Should this issue be closed?

--
nosy: +ZackerySpytz

___
Python tracker 

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