[issue40442] Spurious warning emitted during fork() can deadlock a multi-threaded process

2020-04-30 Thread Ionel Cristian Mărieș

Change by Ionel Cristian Mărieș :


--
nosy: +ionelmc

___
Python tracker 

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



[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-30 Thread Miro Hrončok

Miro Hrončok  added the comment:

Coul you please add a what's new entry for this change?

--
nosy: +hroncok

___
Python tracker 

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



[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-30 Thread Miro Hrončok

Miro Hrončok  added the comment:

I don't understand why there is a PendingDeprecationWarning and not a 
DeprecationWarning.


See 
https://discuss.python.org/t/pendingdeprecationwarning-is-really-useful/1038/4 
and issue36404

--

___
Python tracker 

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



[issue40437] add string.snake function

2020-04-30 Thread jeffolsi10


jeffolsi10  added the comment:

I can respect that.
So you may close this request.

--

___
Python tracker 

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



[issue40437] add string.snake function

2020-04-30 Thread Eric V. Smith


Eric V. Smith  added the comment:

Thanks for the suggestion and the discussion. I'll close the issue.

--
resolution:  -> rejected
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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread Chris Jerdonek


Change by Chris Jerdonek :


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

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread Chris Jerdonek


Chris Jerdonek  added the comment:

I made a naive attempt at addressing this issue here:
https://github.com/python/cpython/pull/19811

The code has diverged significantly since Nathaniel first linked to a specific 
line above. However, what I came up with is simple, and seems to work. But I 
could very well be missing some things.

It would be great if this could be fixed in some way.

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



[issue40443] Remove unused imports in the stdlib (April 2020 edition)

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 90549676e063c2c818cfc14213d3adb7edcc2bd5 by Victor Stinner in 
branch 'master':
bpo-40443: Remove unused imports in the stdlib (GH-19803)
https://github.com/python/cpython/commit/90549676e063c2c818cfc14213d3adb7edcc2bd5


--

___
Python tracker 

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



[issue40443] Remove unused imports in the stdlib (April 2020 edition)

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset e488e300f5c01289c10906c2e53a8e43d6de32d8 by Victor Stinner in 
branch 'master':
bpo-40443: Remove unused imports in distutils (GH-19802)
https://github.com/python/cpython/commit/e488e300f5c01289c10906c2e53a8e43d6de32d8


--

___
Python tracker 

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



[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-04-30 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

AFAIK Windows 10 in Bootcamp is just the regular Windows 10. Bootcamp (or 
technically "Bootcamp Assistent") creates a partition for the installation of 
W10 and adds some drivers for Apple hardware.

See als: https://support.apple.com/en-us/HT201468

--

___
Python tracker 

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



[issue40448] ensurepip uses cache directory

2020-04-30 Thread Krzysztof Konopko


New submission from Krzysztof Konopko :

ensurepip optionally installs or upgrades 'pip' and 'setuptools' using the 
version of those modules bundled with Python.  The internal PIP
installation routine by default temporarily uses its cache, if it
exists.  This is undesirable as Python builds and installations may be
independent of the user running the build, whilst PIP cache location
is dependent on the user's environment and outside of the build
environment.

At the same time, there's no value in using the cache while installing
bundled modules.  By design ensurepip does not access network so there's no 
point in checking or in any way accessing the cache.

This causes a problem in somewhat less usual build environments where Python is 
built into a designated `DESTDIR` with `--prefix` specified etc. If it does not 
have write permission to the cache directory (eg. `$HOME/.cache/pip` on Linux), 
it issues a warning but it installs bundled 'pip' and 'setuptools' fine.  But 
if it does not have execute access (to read directories), it fails hard.

`strace` also shows a lot of checks and even temporary use of the cache 
directory while processing whl files.

--
components: Build, Installation
messages: 367751
nosy: kkonopko
priority: normal
severity: normal
status: open
title: ensurepip uses cache directory
type: behavior
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



[issue40448] ensurepip uses cache directory

2020-04-30 Thread Krzysztof Konopko


Change by Krzysztof Konopko :


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

___
Python tracker 

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



[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-04-30 Thread Yusuf Mumtaz


Yusuf Mumtaz  added the comment:

Hello, so when I type in python -m tkinter, nothing appears.

--
resolution:  -> wont fix

___
Python tracker 

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



[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-30 Thread Domenico Ragusa


Change by Domenico Ragusa :


--
pull_requests: +19133
pull_request: https://github.com/python/cpython/pull/19813

___
Python tracker 

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



[issue40449] multi-line f-string, syntaxerror points to wrong line

2020-04-30 Thread Gerrit Holl


New submission from Gerrit Holl :

When there is a syntax error in a multi-line f-string, the arrow in the 
reported syntax error points to the wrong line:

$ cat mwe.py 
s = ("apricot "
 "pineapple"
 f"shallot{")
$ python mwe.py 
  File "mwe.py", line 1
s = ("apricot "
^
SyntaxError: f-string: expecting '}'

Tested with Python 3.7.4 and 3.8.2.

--
components: Interpreter Core
messages: 367753
nosy: Gerrit.Holl
priority: normal
severity: normal
status: open
title: multi-line f-string, syntaxerror points to wrong line
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-30 Thread Sanyam Khurana


Change by Sanyam Khurana :


--
nosy: +CuriousLearner

___
Python tracker 

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



[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-04-30 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

How did you install Python? 

Does "python" work as a command (should give you an interactive shell)?

Does "python -m test" work? This runs the testsuite.

--

___
Python tracker 

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



[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-04-30 Thread Yusuf Mumtaz


Yusuf Mumtaz  added the comment:

Hello, I installed python of their own website. No interactive command shell 
appears and python -m test also does not work.

--

___
Python tracker 

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



[issue40450] wrong

2020-04-30 Thread wei gu


Change by wei gu :


--
nosy: wei gu
priority: normal
severity: normal
status: open
title: wrong

___
Python tracker 

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



[issue40450] a=[1,2,3] a=a.extend([4]) after running these two lines of code a is None,but it show be [1,2,3,4]

2020-04-30 Thread wei gu

Change by wei gu :


--
components: +Interpreter Core
resolution:  -> wont fix
title: wrong -> a=[1,2,3] a=a.extend([4]) after running these two lines of code 
a is None,but it show be [1,2,3,4]
type:  -> behavior
versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49102/error.png

___
Python tracker 

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



[issue40450] a=[1,2,3] a=a.extend([4]) after running these two lines of code a is None,but it should be [1,2,3,4]

2020-04-30 Thread wei gu

Change by wei gu :


--
title: a=[1,2,3] a=a.extend([4]) after running these two lines of code a is 
None,but it show be [1,2,3,4] -> a=[1,2,3] a=a.extend([4]) after running these 
two lines of code a is None,but it should be [1,2,3,4]

___
Python tracker 

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



[issue40450] a=[1,2,3] a=a.extend([4]) after running these two lines of code a is None,but it should be [1,2,3,4]

2020-04-30 Thread Eric V. Smith


New submission from Eric V. Smith :

list.extend modifies the list in place. Like most mutating methods in python, 
it does not return the thing being modified.

Everything is working correctly, and it's documented this way.

--
nosy: +eric.smith
resolution: wont fix -> 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



[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-04-30 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Do you get an error message when you start a command shell and type "python"?

--

___
Python tracker 

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



[issue32494] interface to gdbm_count

2020-04-30 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10
nosy_count: 2.0 -> 3.0
pull_requests: +19134
pull_request: https://github.com/python/cpython/pull/19814

___
Python tracker 

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



[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-04-30 Thread Yusuf Mumtaz


Yusuf Mumtaz  added the comment:

Nope, no error message just no response from the system.

--

___
Python tracker 

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



[issue32494] Use gdbm_count if possible

2020-04-30 Thread Dong-hee Na


Change by Dong-hee Na :


--

___
Python tracker 

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



[issue40443] Remove unused imports in the stdlib (April 2020 edition)

2020-04-30 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +19135
pull_request: https://github.com/python/cpython/pull/19815

___
Python tracker 

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



[issue23937] IDLE: revise window size, placement startup options

2020-04-30 Thread E. Paine


Change by E. Paine :


--
keywords: +patch
nosy: +epaine
nosy_count: 4.0 -> 5.0
pull_requests: +19136
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19816

___
Python tracker 

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



[issue23937] IDLE: revise window size, placement startup options

2020-04-30 Thread E. Paine


E. Paine  added the comment:

I have made a few simple changes to the configdialog.py, config-main.def & 
editor.py which adds a "Maximised" checkbutton to the general page (just above 
the existing entries). The default is for this to be false (based on the 
previous comments in this PEP), but it is there for those of us that feel it 
would be a very nice feature.
Three questions:
1: Is changing the anchor on the label correct (visually) or is it better to 
leave it so that it centres?
2: Are we happy that the default should be for this to be disabled?
3: Is the description "max" sufficient for the configs

--

___
Python tracker 

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



[issue40451] Unexpected sys.getrefcount(foo) output

2020-04-30 Thread Cristian Martinez de Morentin


New submission from Cristian Martinez de Morentin :

Hello, I have observed a strange behaviour regarding reference counting in 
Python 3.8.2 (Windows 64 bits). Perhaps, it could be linked to a memory leakage 
issue.

In the following code, I would not expect an output of '137' for the reference 
counter of the 'aux' object. Could you please explain this behaviour?

>>> import sys
>>> test = {'a': 0, 'b': 1}
>>> sys.getrefcount(test)
2
>>> aux = test['b']
>>> sys.getrefcount(aux)
137

Thank you so much.

--
components: Windows
messages: 367760
nosy: Cristian Martinez de Morentin, paul.moore, steve.dower, tim.golden, 
zach.ware
priority: normal
severity: normal
status: open
title: Unexpected sys.getrefcount(foo) output
type: behavior
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



[issue39305] Merge nntplib._NNTPBase and nntplib.NNTP

2020-04-30 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +19137
pull_request: https://github.com/python/cpython/pull/19817

___
Python tracker 

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



[issue40451] Unexpected sys.getrefcount(foo) output

2020-04-30 Thread Eric V. Smith


Eric V. Smith  added the comment:

aux is equal to 1. You're seeing the refcount of the number 1.

--
nosy: +eric.smith
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



[issue40451] Unexpected sys.getrefcount(foo) output

2020-04-30 Thread Tim Peters


Tim Peters  added the comment:

"The 'aux' object" is simply the integer 1.  The dict is irrelevant to the 
outcome, except that the dict owns one reference to 1.  Do

sys.getrefcount(1)

all by itself and you'll see much the same.

This isn't a bug, but neither is it a feature:  it's undocumented, 
implementation-defined behavior.  It so happens that CPython treats a number of 
small integers as singletons, creating only one object for each, shared by all 
contexts that use the integer.

Here's from a fresh Python interactive session:

>>> from sys import getrefcount as r
>>> r(1)
94
>>> r(2)
76
>>> r(3)
27
>>> r(4)
49
>>> r(5)
23
>>> r(6)
11
>>> r(7)
13
>>> r(8)
35
>>> r(9)
13

Nothing about that is a bug, nor is anything about that defined behavior.  It 
just reflects how many times these small integers happen to be referenced by 
all the under-the-covers stuff that happened to get imported by the time the 
interactive prompt was displayed.

--
nosy: +tim.peters

___
Python tracker 

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



[issue23937] IDLE: revise window size, placement startup options

2020-04-30 Thread E. Paine


E. Paine  added the comment:

Sorry, two more things:
1: Can someone please check this behaves properly on MacOS (I have checked on 
Windows and Linux)
2: Is setting the checkbutton side to "TOP" correct, or is there a better way 
of achieving the same layout?

--

___
Python tracker 

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



[issue40451] Unexpected sys.getrefcount(foo) output

2020-04-30 Thread Cristian Martinez de Morentin


Cristian Martinez de Morentin  added the comment:

OK, understood.

Thank you for your support!

--

___
Python tracker 

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



[issue40334] PEP 617: new PEG-based parser

2020-04-30 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +19138
pull_request: https://github.com/python/cpython/pull/19818

___
Python tracker 

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



[issue40442] Spurious warning emitted during fork() can deadlock a multi-threaded process

2020-04-30 Thread Bowie Chen


Change by Bowie Chen :


--
nosy: +bowiechen

___
Python tracker 

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



[issue40452] IDLE preserve clipboard on closure (Windows)

2020-04-30 Thread E. Paine


New submission from E. Paine :

Currently, on a Windows machine, the clipboard contents is lost when the root 
is closed. This, therefore requires you to keep the IDLE instance open until 
after the copy has been complete (particularly annoying when copying between 
different IDLE instances). The solution is to pipe the tkinter clipboard 
contents to "clip.exe" (built-in to Windows) which will preserve it after root 
closure.

--
assignee: terry.reedy
components: IDLE
messages: 367765
nosy: epaine, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE preserve clipboard on closure (Windows)
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



[issue40452] IDLE preserve clipboard on closure (Windows)

2020-04-30 Thread E. Paine


Change by E. Paine :


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

___
Python tracker 

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



[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-30 Thread Carl Meyer


Carl Meyer  added the comment:

> Coul you please add a what's new entry for this change?

The committed change already included an entry in NEWS. Is a "What's New" entry 
something different?

> I don't understand why there is a PendingDeprecationWarning and not a 
> DeprecationWarning.

Purely because I was following gps' recommendation in the first comment on this 
issue. Getting rid of PendingDeprecationWarning seems like an orthogonal 
decision; if it happens, this can trivially be upgraded to DeprecationWarning 
as part of a removal sweep.

--

___
Python tracker 

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



[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-30 Thread Guido van Rossum


Guido van Rossum  added the comment:

A "What's New" entry would go into Doc/whatsnew/3.9.rst and is much more 
visible to users looking for exciting bits in the new release (the NEWS file is 
very large, see e.g. 
https://docs.python.org/3/whatsnew/changelog.html#changelog.

The What's New doc typically has a section collecting all the deprecations, 
e.g. https://docs.python.org/3/whatsnew/3.8.html#deprecated.

--

___
Python tracker 

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



[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-04-30 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

'their website' == Apple's website? Homebrew's? Microsoft's? What about the 
Windows installer from python.org?

--

___
Python tracker 

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



[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-30 Thread Brett Cannon


Brett Cannon  added the comment:

Done. You will need to check that miss-islington doesn't solely rely on 
required checks passing but instead all CI checks passing, otherwise this just 
turned off gating for PRs when auto-merging.

And I'm going to say future requests for this sort of stuff should happen on 
either on the core-workflow issue tracker or on discuss.python.org for better 
visibility.

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



[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-30 Thread Miro Hrončok

Miro Hrončok  added the comment:

> Getting rid of PendingDeprecationWarning seems like an orthogonal decision; 
> if it happens, this can trivially be upgraded to DeprecationWarning as part 
> of a removal sweep.

My thought was that the decision was already made to do so. Hence adding new 
PendingDeprecationWarnings goes against that decision.

But maybe I misunderstand and that decision was not made.

--

___
Python tracker 

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



[issue40408] GenericAlias does not support nested type variables

2020-04-30 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-30 Thread Guido van Rossum


Guido van Rossum  added the comment:

IIRC PendingDeprecationError does not mean that the decision hasn't been made 
yet. It just means it's less urgent for folks to worry about. I believe we tend 
to change PendingDeprecationError to DeprecationError in the last release 
before something is removed.

--

___
Python tracker 

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



[issue40334] PEP 617: new PEG-based parser

2020-04-30 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset c001c09e9059ba04bc088349cd87a1374dc0754f by Guido van Rossum in 
branch 'master':
bpo-40334: Support type comments (GH-19780)
https://github.com/python/cpython/commit/c001c09e9059ba04bc088349cd87a1374dc0754f


--

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset 2514a632fb7d37be24c2059d0e286d35600f9795 by Chris Jerdonek in 
branch 'master':
bpo-29587: Enable implicit exception chaining with gen.throw() (GH-19811)
https://github.com/python/cpython/commit/2514a632fb7d37be24c2059d0e286d35600f9795


--

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread Guido van Rossum


Guido van Rossum  added the comment:

Example 1 is now fixed too by Chris Jerdonek's PR 19811. Thanks Chris!

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



[issue23937] IDLE: revise window size, placement startup options

2020-04-30 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I think we are at the point where the General tab needs to be split into 2 
tabs, or else widened.  On my Macbook, the bottom buttons are not visible.

One of the constraints of any change is that .idlerc/config-main.cfg remain 
compatible with older releases.

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

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread Guido van Rossum


Guido van Rossum  added the comment:

Oh, no! Buildbot failures. Help?!

--

___
Python tracker 

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



[issue23937] IDLE: revise window size, placement startup options

2020-04-30 Thread E. Paine


E. Paine  added the comment:

> I think we are at the point where the General tab needs to be split into 2 
> tabs, or else widened

I definitely agree (possibly split into "Window" and "Editor/Shell"), but that 
would be a separate PEP wouldn't it (possibly one that needs to be pulled 
before this one can proceed)?

> .idlerc/config-main.cfg [must] remain compatible with older releases

Would an new (unknown) option, therefore cause issues? I am just creating a new 
field, not changing/re-purposing an old one, which (correct me if I'm wrong) 
would just be ignored by old versions.

--

___
Python tracker 

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



[issue40453] Add PyConfig._isolated_interpreter: isolated subinterpreters

2020-04-30 Thread STINNER Victor


New submission from STINNER Victor :

I propose to add PyConfig._isolated_interpreter configuration parameter to 
disallow threads, subprocesses and fork in a subinterpreter.

_xxsubinterpreter.create() gets a new keyword-only isolated=True parameter to 
opt-in for not isolated mode, which is the current behavior of 
Py_NewInterpreter(). For example, mod_wsgi would continue to run in "non 
isolated" mode.

Attached PR implements this change. With the change, os.fork() is allowed again 
in "non isolated" subinterpreters (like mod_wsgi). os.fork() was disallowed in 
subinterpreters in Python 3.8, but subprocess was still allowed.

--
components: Interpreter Core
messages: 367778
nosy: vstinner
priority: normal
severity: normal
status: open
title: Add PyConfig._isolated_interpreter: isolated subinterpreters
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



[issue40454] DEBUG kw to asyncio.run overrides DEBUG mode set elsewhere

2020-04-30 Thread Paul Martin


New submission from Paul Martin :

According to the docs:

"
There are several ways to enable asyncio debug mode.

Setting the PYTHONASYNCIODEBUG environment variable to 1.
Using the -X dev Python command line option.
Passing debug=True to asyncio.run().
Calling loop.set_debug().
"

My understanding of this would be that any of the above methods can be used to 
enable debug mode. However if asyncio.run is used then whatever value for DEBUG 
is passed to asyncio.run (or False by default) overrides DEBUG mode being set 
elsewhere. So, when asyncio.run is used, the only way to enable DEBUG mode is 
to pass DEBUG=True to asyncio.run. The other methods won't work. 

One solution might be to change this line in asyncio/runners.py:

loop.set_debug(debug)

To

loop.set_debug(debug or coroutines._DEBUG)

So asyncio.run won't disable debug mode if it's already been set elsewhere

--
components: asyncio
messages: 367779
nosy: asvetlov, primal, yselivanov
priority: normal
severity: normal
status: open
title: DEBUG kw to asyncio.run overrides DEBUG mode set elsewhere
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



[issue37873] unittest: execute tests in parallel

2020-04-30 Thread Giampaolo Rodola'


Change by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue40453] Add PyConfig._isolated_interpreter: isolated subinterpreters

2020-04-30 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue40256] Python 3.8 Not Launching on Bootcamp Windows 10.

2020-04-30 Thread Yusuf Mumtaz


Yusuf Mumtaz  added the comment:

Sorry , the python windows installer from python.org

--

___
Python tracker 

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



[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:

> Done.

Thanks.

> You will need to check that miss-islington doesn't solely rely on required 
> checks passing but instead all CI checks passing, otherwise this just turned 
> off gating for PRs when auto-merging.

I have no idea how miss-islington check CIs.

> And I'm going to say future requests for this sort of stuff should happen on 
> either on the core-workflow issue tracker or on discuss.python.org for better 
> visibility.

I'm used to report buildbot failures on bugs.python.org. Almost all issues are 
Python bugs, rather than issues specific to buidbot themselves.

I'm fine with reporting Azure Pipeline issues at core-workflow.

I created https://github.com/python/core-workflow/issues/365 " Make Travis CI 
(and Windows x64 ?) mandatory" :-)

--

___
Python tracker 

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



[issue39321] AMD64 FreeBSD Non-Debug 3.x: out of swap space (test process killed by signal 9)

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:

The worker still has the same issue:
https://buildbot.python.org/all/#/builders/214/builds/674
0:19:08 load avg: 3.11 running: test_multiprocessing_forkserver (1 min 38 sec)
*** Signal 9

Any update on this issue Koobs?

--

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner
nosy_count: 6.0 -> 7.0
pull_requests: +19141
pull_request: https://github.com/python/cpython/pull/19821

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 3c7f9db85095952821f9d106dd874f75662ce7ec by Victor Stinner in 
branch 'master':
Revert "bpo-29587: Enable implicit exception chaining with gen.throw() 
(GH-19811)" (#19821)
https://github.com/python/cpython/commit/3c7f9db85095952821f9d106dd874f75662ce7ec


--

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:

> bpo-29587: Enable implicit exception chaining with gen.throw() (GH-19811)
> https://github.com/python/cpython/commit/2514a632fb7d37be24c2059d0e286d35600f9795

Sorry, I had to revert this change since it broke like 41+ buildbots:
https://pythondev.readthedocs.io/ci.html#revert-on-fail

Almost all CIs passed on the PR (except of the Ubuntu job of Azure Pipelines). 
That's unusual. No idea why the bug occurs only on some platforms and why it 
wasn't seen before.

The revert is an opportunity to get more time to investigate the issue, without 
having the pressure to have to fix the CI "ASAP".

--

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread Guido van Rossum


Change by Guido van Rossum :


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



[issue40455] GCC 10 compiler warnings

2020-04-30 Thread STINNER Victor

New submission from STINNER Victor :

GCC 10.0.1 on PPC64LE Fedora Rawhide LTO 3.x buildbot:
https://buildbot.python.org/all/#/builders/351/builds/406

Objects/longobject.c: In function ‘_PyLong_Frexp’:
Objects/longobject.c:2928:33: warning: ‘x_digits[0]’ may be used uninitialized 
in this function [-Wmaybe-uninitialized]
 2928 | x_digits[0] |= 1;
  | ^~

In function ‘assemble_lnotab’,
inlined from ‘assemble_emit’ at Python/compile.c:5709:25,
inlined from ‘assemble’ at Python/compile.c:6048:18:
Python/compile.c:5663:19: warning: writing 1 byte into a region of size 0 
[-Wstringop-overflow=]
 5663 | *lnotab++ = k;
  | ~~^~~

--
components: Build
messages: 367785
nosy: vstinner
priority: normal
severity: normal
status: open
title: GCC 10 compiler warnings
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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-04-30 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +19142
pull_request: https://github.com/python/cpython/pull/19822

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:

> Sorry, I had to revert this change since it broke like 41+ buildbots: (...)

If someone wants to investigate, you can find examples of failed buildbot 
builds at:
https://github.com/python/cpython/pull/19811

--

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread Chris Jerdonek


Chris Jerdonek  added the comment:

> Oh, no! Buildbot failures. Help?!

Yes, I'm sorry. There's something not so simple going on that I haven't yet 
reproduced locally. Will reply on the tracker.

--

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread Chris Jerdonek


Change by Chris Jerdonek :


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

___
Python tracker 

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



[issue40453] Add PyConfig._isolated_interpreter: isolated subinterpreters

2020-04-30 Thread Barry A. Warsaw


Change by Barry A. Warsaw :


--
nosy: +barry

___
Python tracker 

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



[issue40455] GCC 10 compiler warnings

2020-04-30 Thread Andy Lester


Change by Andy Lester :


--
nosy: +petdance

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread Ned Deily

Ned Deily  added the comment:

Whatever the resolution of this is, it seems to me that this sort of behavior 
change should not be introduced at this stage of 3.7.x's life.  Whether it 
should go into 3.8.x should be Łukasz's call once the final change is in master 
and has stabilized.

--
nosy: +ned.deily
versions:  -Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread Yury Selivanov


Yury Selivanov  added the comment:

IMO this is a 3.9 fix.

--

___
Python tracker 

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



[issue40456] py_compile.main(): undefined name 'quiet'

2020-04-30 Thread STINNER Victor


New submission from STINNER Victor :

pyflakes found 3 errors:

Lib/py_compile.py:200:20 undefined name 'quiet'
Lib/py_compile.py:204:20 undefined name 'quiet'
Lib/py_compile.py:213:20 undefined name 'quiet'

It seems like the code was introduced by PR 12976:

commit 2e33ecd7c9b0cac3efc6fcbdd4547fd086b4e2d1
Author: Joannah Nanjekye <33177550+nanjekyejoan...@users.noreply.github.com>
Date:   Tue May 28 13:29:04 2019 -0300

bpo-22640: Add silent mode to py_compile.compile() (GH-12976)

--
components: Library (Lib)
messages: 367790
nosy: nanjekyejoannah, vstinner
priority: normal
severity: normal
status: open
title: py_compile.main(): undefined name 'quiet'
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



[issue22640] Add silent mode for py_compile

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:

It seems like this change introduced a regression in main(): see 
https://bugs.python.org/issue40456

--
nosy: +vstinner

___
Python tracker 

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



[issue40456] Complete adding silent mode for py_compile

2020-04-30 Thread Éric Araujo

Change by Éric Araujo :


--
stage:  -> patch review
title: py_compile.main(): undefined name 'quiet' -> Complete adding silent mode 
for py_compile
type:  -> behavior

___
Python tracker 

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



[issue40456] Complete adding silent mode for py_compile

2020-04-30 Thread Gregory Shevchenko


Change by Gregory Shevchenko :


--
keywords: +patch
nosy: +Gregory Shevchenko
nosy_count: 2.0 -> 3.0
pull_requests: +19144
pull_request: https://github.com/python/cpython/pull/17134

___
Python tracker 

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



[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-04-30 Thread Guido van Rossum


Guido van Rossum  added the comment:

Could it be running out of memory due to excessive chaining of tracebacks?

(And yes, it's 3.9 only.)

--

___
Python tracker 

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



[issue40448] ensurepip uses cache directory

2020-04-30 Thread Ned Deily


Change by Ned Deily :


--
nosy: +dstufft, ncoghlan, pradyunsg

___
Python tracker 

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



[issue40457] Python fails to compile/load _ssl module if OpenSSL is compiled with no-tls1-method

2020-04-30 Thread Mitch Lindgren

New submission from Mitch Lindgren :

I'm working on a project which uses OpenSSL 1.1.1g. For security and compliance 
reasons, it is built with SSL and TLS < 1.2 methods compiled out, using the 
following OpenSSL build options:

no-ssl no-ssl3 no-tls1 no-tls1_1 no-ssl3-method no-tls1-method no-tls1_1-method

When compiling Python v3.8.2 with CFLAGS="-DOPENSSL_NO_SSL2 -DOPENSSL_NO_SSL3 
-DOPENSSL_NO_TLS1 -DOPENSSL_NO_TLS1_1" and 
--with-openssl=/path/to/custom/openssl, _ssl.c fails to compile with the 
following error:

gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 
-Wall -DOPENSSL_NO_SSL2 -DOPENSSL_NO_SSL3 -DOPENSSL_NO_TLS1 -DOPENSSL_NO_TLS1_1 
-DOPENSSL_NO_SSL2 -DOPENSSL_NO_SSL3 -DOPENSSL_NO_TLS1 -DOPENSSL_NO_TLS1_1 
-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-I./Include/internal -I/home/mitch/openssl/include -I./Include -I. 
-I/usr/include/x86_64-linux-gnu -I/usr/local/include 
-I/home/mitch/cpython/Include -I/home/mitch/cpython -c 
/home/mitch/cpython/Modules/_ssl.c -o 
build/temp.linux-x86_64-3.8/home/mitch/cpython/Modules/_ssl.o
/home/mitch/cpython/Modules/_ssl.c: In function ‘_ssl__SSLContext_impl’:
/home/mitch/cpython/Modules/_ssl.c:3088:27: error: implicit declaration of 
function ‘TLSv1_method’; did you mean ‘DTLSv1_method’? 
[-Werror=implicit-function-declaration]
 ctx = SSL_CTX_new(TLSv1_method());
   ^~~~
   DTLSv1_method
/home/mitch/cpython/Modules/_ssl.c:3088:27: warning: passing argument 1 of 
‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /home/mitch/cpython/Modules/_ssl.c:62:0:
/home/mitch/openssl/include/openssl/ssl.h:1503:17: note: expected ‘const 
SSL_METHOD * {aka const struct ssl_method_st *}’ but argument is of type ‘int’
 __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
 ^~~
/home/mitch/cpython/Modules/_ssl.c:3091:27: error: implicit declaration of 
function ‘TLSv1_1_method’; did you mean ‘TLSv1_2_method’? 
[-Werror=implicit-function-declaration]
 ctx = SSL_CTX_new(TLSv1_1_method());
   ^~
   TLSv1_2_method
/home/mitch/cpython/Modules/_ssl.c:3091:27: warning: passing argument 1 of 
‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /home/mitch/cpython/Modules/_ssl.c:62:0:
/home/mitch/openssl/include/openssl/ssl.h:1503:17: note: expected ‘const 
SSL_METHOD * {aka const struct ssl_method_st *}’ but argument is of type ‘int’
 __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
 ^~~
cc1: some warnings being treated as errors

This also affects older versions. With v3.5.6, the _ssl module compiles 
successfully (it may be getting the declaration of TLSv1_method from the system 
default OpenSSL header since the --with-openssl option doesn't exist in this 
version), but importing the module at runtime fails:

root@10:/tmp/acmstest# python3
Python 3.5.6 (default, Mar 23 2020, 05:11:33)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.5/ssl.py", line 99, in 
import _ssl # if we can't import it, let the error propagate
ImportError: 
/usr/lib/python3.5/lib-dynload/_ssl.cpython-35m-aarch64-linux-gnu.so: undefined 
symbol: TLSv1_method

--
assignee: christian.heimes
components: SSL
messages: 367793
nosy: Mitch Lindgren, christian.heimes
priority: normal
severity: normal
status: open
title: Python fails to compile/load _ssl module if OpenSSL is compiled with 
no-tls1-method
type: compile error
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue40188] Azure Pipelines jobs failing randomly with: Unable to connect to azure.archive.ubuntu.com

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:

I didn't see the issue recently. Moreover, Brett asked me to report Azure 
issues to https://github.com/python/core-workflow/ instead. So I close this 
issue.

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



[issue39072] Azure Pipelines: git clone failed with: OpenSSL SSL_read: Connection was reset

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:

I didn't see the issue recently. Moreover, Brett asked me to report Azure 
issues to https://github.com/python/core-workflow/ instead. So I close this 
issue.

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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset b66c0ff8af0c1a4adc6908897b2d05afc78cc27e by Victor Stinner in 
branch 'master':
bpo-1635741: Fix compiler warning in _stat.c (GH-19822)
https://github.com/python/cpython/commit/b66c0ff8af0c1a4adc6908897b2d05afc78cc27e


--

___
Python tracker 

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



[issue40444] multiprocessing.Pool deadlocks with only print statements

2020-04-30 Thread Ned Deily


Change by Ned Deily :


--
nosy: +davin, pitrou

___
Python tracker 

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



[issue40457] Python fails to compile/load _ssl module if OpenSSL is compiled with no-tls1-method

2020-04-30 Thread Mitch Lindgren


Mitch Lindgren  added the comment:

I'd be happy to work on a patch for this. I think the simplest approach would 
be to change this block starting on line 3087:

if (proto_version == PY_SSL_VERSION_TLS1)
ctx = SSL_CTX_new(TLSv1_method());
#if HAVE_TLSv1_2
else if (proto_version == PY_SSL_VERSION_TLS1_1)
ctx = SSL_CTX_new(TLSv1_1_method());
else if (proto_version == PY_SSL_VERSION_TLS1_2)
ctx = SSL_CTX_new(TLSv1_2_method());
#endif
#ifndef OPENSSL_NO_SSL3
else if (proto_version == PY_SSL_VERSION_SSL3)
ctx = SSL_CTX_new(SSLv3_method());
#endif
#ifndef OPENSSL_NO_SSL2
else if (proto_version == PY_SSL_VERSION_SSL2)
ctx = SSL_CTX_new(SSLv2_method());
#endif
else if (proto_version == PY_SSL_VERSION_TLS) /* SSLv23 */
ctx = SSL_CTX_new(TLS_method());
else if (proto_version == PY_SSL_VERSION_TLS_CLIENT)
ctx = SSL_CTX_new(TLS_client_method());
else if (proto_version == PY_SSL_VERSION_TLS_SERVER)
ctx = SSL_CTX_new(TLS_server_method());
else
proto_version = -1;

into a switch and add additional #if !defined(OPENSSL_NO_XXX) macros to exclude 
version-specific methods. Please let me know if this sounds okay.

--

___
Python tracker 

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



[issue40445] compileall.compile_dir docs aren't updated for bpo-38112

2020-04-30 Thread Ned Deily


Change by Ned Deily :


--
nosy: +petr.viktorin

___
Python tracker 

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



[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-30 Thread Steve Dower


Steve Dower  added the comment:

Bugs in Python should continue to be reported here.

Requests to change the workflow should be discussed on one of the core-workflow 
groups (I think Discourse is the primary one now, right?). Once an action is 
agreed upon, it gets tracked on the core-workflow tracker. That's how we 
decided to turn Travis off and Azure Pipelines on in the first place.

Let's just hope that Travis has stabilised compared to when we switched away 
from it, and maybe they have enough capacity now to handle our busy periods.

--

___
Python tracker 

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



[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-30 Thread Steve Dower


Steve Dower  added the comment:

Oh, and Victor, you should probably email python-dev to let everyone know you 
requested this change and it's been made. Otherwise people may be surprised 
that it changed without any discussion or notification.

This is especially important if we have to disable all platforms other than 
Linux to avoid blocking PRs.

--

___
Python tracker 

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



[issue40254] pyspecific directives are not translatable

2020-04-30 Thread Ned Deily


Change by Ned Deily :


--
nosy: +eric.araujo, ezio.melotti, mdk, willingc

___
Python tracker 

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



[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:

> Let's just hope that Travis has stabilised compared to when we switched away 
> from it, and maybe they have enough capacity now to handle our busy periods.

Can't we be more flexible depending on the stability on CIs over the last 
weeks? I mean making a CI optional if it becomes flaky, but also try to make a 
CI mandatory when it becomes stable.

In my experience, no CI is reliable and the stability varies a lot over time.

In the past, the macOS job was very reliable. I have no idea why it became so 
flaky, but I don't have the bandwidth to investigate, moreover it seems like 
some issues are internal to Azure Pipelines / GH Actions, and I don't have 
access to these.

I'm trying to do the best with my limited time.

--

___
Python tracker 

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



[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-30 Thread Ned Deily


Ned Deily  added the comment:

> In the past, the macOS job was very reliable. I have no idea why it became so 
> flaky, but I don't have the bandwidth to investigate, moreover it seems like 
> some issues are internal to Azure Pipelines / GH Actions, and I don't have 
> access to these.

FWIW, I took a quick look at it and, with nothing to go on in the way of 
visible messages, the best guess I could come up with is that the test run step 
is hitting a time out and that, in that case, no status is shown. Anyone know 
if that is a reasonable guess?  The next question would be why are the tests 
taking that long on that macOS instance.

--

___
Python tracker 

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



[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:

Steve:
> Requests to change the workflow should be discussed on one of the 
> core-workflow groups (I think Discourse is the primary one now, right?). Once 
> an action is agreed upon, it gets tracked on the core-workflow tracker. 
> That's how we decided to turn Travis off and Azure Pipelines on in the first 
> place.

Ok.


> Oh, and Victor, you should probably email python-dev to let everyone know you 
> requested this change and it's been made. Otherwise people may be surprised 
> that it changed without any discussion or notification.

I'm not sure of what you mean by "no discussion", this issue has many comments.


> This is especially important if we have to disable all platforms other than 
> Linux to avoid blocking PRs.

I would be more confident if we could make at least one Windows job mandatory.

I have no opinion on msg363405, so I'm fine with Brett choice ("we have to just 
rely on people paying attention to failures").

I don't know how to modify the Windows job to do nothing if it's a 
documentation change only.

macOS was already non-voting (optional), no?

--

___
Python tracker 

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



[issue40458] test_attribute_name_interning crashes on APPX test

2020-04-30 Thread Steve Dower


New submission from Steve Dower :

The Windows CI machines on Azure Pipelines run additional tests to check an 
"installed" layout and with the UWP entry point that's used for the Windows 
Store package.

These tests have been failing intermittently (though regularly) with a stack 
overflow crash in the PyPickler tests.

Example: 
https://dev.azure.com/Python/cpython/_build/results?buildId=62055&view=results

test_attribute_name_interning (test.test_pickle.PyPicklerTests) ... ok
  File "D:\a\1\b\layout-appx-amd64\lib\test\pickletester.py", line 3085 in 
__getattr__
  File "D:\a\1\b\layout-appx-amd64\lib\test\pickletester.py", line 3085 in 
__getattr__
  File "D:\a\1\b\layout-appx-amd64\lib\test\pickletester.py", line 3085 in 
__getattr__
  File "D:\a\1\b\layout-appx-amd64\lib\test\pickletester.py", line 3085 in 
__getattr__
...

I assume this is due to having more code on the start at the start, and so the 
recursion limit isn't low enough. But it might also be worth checking this 
particular case to see whether there is unnecessary data being kept on the 
stack (e.g. in local C variables).

The crash occurs in both 3.8 and master, but not 3.7.

--
components: Windows
messages: 367803
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: test_attribute_name_interning crashes on APPX test
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



[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-30 Thread Steve Dower


Steve Dower  added the comment:

> FWIW, I took a quick look at it and, with nothing to go on in the way of 
> visible messages, the best guess I could come up with is that the test run 
> step is hitting a time out and that, in that case, no status is shown. Anyone 
> know if that is a reasonable guess?

I think it depends on the timeout. Some of my Ubuntu builds occasionally get 
hard-stuck on tkinter tests, so apparently it's possible for that to spoil CI. 
But I believe Pipelines is going to try and terminate the process "nicely" 
first.

--

___
Python tracker 

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



[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-30 Thread Steve Dower


Steve Dower  added the comment:

> I'm not sure of what you mean by "no discussion", this issue has many 
> comments.

Let's say, no consensus. There were three votes cast in this discussion - yours 
(+1), mine (-1) and Brett's (I'll assume +0 because he made the change, despite 
saying he didn't want to ;) ).

Meanwhile, *everyone* is impacted, some people very negatively. The rest of the 
dev team need to know that it was a deliberate change.

> I would be more confident if we could make at least one Windows job mandatory.

Yes, so would I :)

> I don't know how to modify the Windows job to do nothing if it's a 
> documentation change only.

I can do it when I get time, but it's not very high on my list. I suggest 
looking at the Azure Pipelines definition, kind of like how I looked at the 
Travis definition to figure it out.

> macOS was already non-voting (optional), no?

Only because you complained about it here :) That was PR 18818

--

___
Python tracker 

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



[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:

I understood that such issue should be discussed in the Core Workflow category 
of Discourse, so I created:

"Make one Windows CI job mandatory"
https://discuss.python.org/t/make-one-windows-ci-job-mandatory/4047

I suggest to continue the discussion there.

--

___
Python tracker 

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



[issue39691] Allow passing Pathlike objects to io.open_code

2020-04-30 Thread Shantanu


Change by Shantanu :


--
keywords: +patch
nosy: +hauntsaninja
nosy_count: 3.0 -> 4.0
pull_requests: +19145
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19824

___
Python tracker 

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



[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-04-30 Thread STINNER Victor


STINNER Victor  added the comment:

Me:
> macOS was already non-voting (optional), no?

Steve:
> Only because you complained about it here :) That was PR 18818

Alright, I forgot about the whole history. Well, it's not my fault if macOS 
decided to fail :-)

I did my part, I fixed os.getgrouplist() which started (!?) to fail on the 
macOS job of Azure (in fact, it was an old issue which wasn't noticed 
previously): https://bugs.python.org/issue40014

I'm not sure what to do with macOS job which never starts or fail with empty 
logs. I don't see what we can do on the Python side. It *seems* to be more on 
the Azure side which is a blackbox to me. Maybe Steve you may ask around you at 
Microsoft? If you feel that you can do something to unblock the situation, 
please open an issue.

Note: I would also prefer to have a voting macOS job, but it's not like I can 
fix the macOS job myself, so I let others handle this one ;-)

--

___
Python tracker 

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



[issue40459] [easy] undefined names in platform.py

2020-04-30 Thread STINNER Victor


New submission from STINNER Victor :

pyflakes found the two following issues in platform.py:

Lib/platform.py:401:35 undefined name 'HKEY_LOCAL_MACHINE'
Lib/platform.py:402:25 undefined name 'QueryValueEx'

Line 353:

with winreg.OpenKeyEx(winreg.HKEY_LOCAL_MACHINE, cvkey) as key:
return winreg.QueryValueEx(key, 'EditionId')[0]

vs Line 401:

with winreg.OpenKeyEx(HKEY_LOCAL_MACHINE, cvkey) as key:
ptype = QueryValueEx(key, 'CurrentType')[0]


This issue seems easy to fix ;-)

--
components: Library (Lib)
keywords: newcomer friendly
messages: 367808
nosy: vstinner
priority: normal
severity: normal
status: open
title: [easy] undefined names in platform.py
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



[issue40455] GCC 10 compiler warnings

2020-04-30 Thread Andy Lester


Andy Lester  added the comment:

Did you add any options to the ./configure call for cpython?  What were they?

--

___
Python tracker 

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



[issue40461] execution of file with pictures doesn't work in command --onefile in pyinstaller

2020-04-30 Thread Hugo Benavides


New submission from Hugo Benavides :

hi, 
I have a problem to crete an executable using the command pyinstaller at the 
time of use the helper --onefile

I've created an executable using the next instruction:

pyinstaller --windowed --add-data "Rute PC to my Folder\Imagen";"Imagen"  
Aplicacion_Calculadora.py  

The folder Imagen has an imagen that is called into the code and at this time 
everything work fine, the executable starts and works very fine. I have used 
the calculator and operations are correct and the imagen is upload in the 
interface, but I deleted everything and started again.

I would like to add everything in one File using the command:

pyinstaller --onefile --add-data "Rute PC to mi Folder\Imagen";"Imagen"  
Aplicacion_Calculadora.py 

At this point, the executable never starts. If I saw the message in console 
when the .exe is running and it shows me the next error: 

File "tkinter\__init__.py", line 4061, in __init__
File "tkinter\__init__.py", line 4006, in __init__
_tkinter.TclError: couldn't open "./Imagen/Retroceder.png": no such file or 
directory [11320] Failed to execute script Aplicacion_Calculadora 

The executable never can find the folder and the imagen, it happenning just 
when I use the command --onefile

I've been looking in every documentation and instructions but I've not found 
anything about that error just using the command --onefile


May you help me with that error or what instruction I should add, please?

Attach code and folder with the imagen


Thanks

--
components: Library (Lib)
files: Aplicacion_Calculadora.zip
messages: 367811
nosy: Hugo Benavides
priority: normal
severity: normal
status: open
title: execution of file with pictures doesn't work in command --onefile in 
pyinstaller
versions: Python 3.8
Added file: https://bugs.python.org/file49103/Aplicacion_Calculadora.zip

___
Python tracker 

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



  1   2   >