[issue26389] Expand traceback module API to accept just an exception as an argument

2020-10-08 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
nosy: +ZackerySpytz
nosy_count: 6.0 -> 7.0
pull_requests: +21593
pull_request: https://github.com/python/cpython/pull/22610

___
Python tracker 

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



[issue41978] numpy, scipy packages failed to install via pip - Windows 10 Pro 64 bit

2020-10-08 Thread Thomas M. Alldread


New submission from Thomas M. Alldread :

Several attempts to install numpy/scipy packages failed. Pip reported pages of 
error information. Reverting back to version 3.8.5 resolved the issue using the 
exact same procedure.

--
components: Extension Modules, Installation, Windows
messages: 378303
nosy: paul.moore, steve.dower, tim.golden, tma, zach.ware
priority: normal
severity: normal
status: open
title: numpy, scipy packages failed to install via pip - Windows 10 Pro 64 bit
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



[issue41877] Check against misspellings of assert etc. in mock

2020-10-08 Thread Vedran Čačić

Vedran Čačić  added the comment:

Of course, that's why I wrote "my" in quotes above. It's not my solution, it's 
the idea that many people independently had. Because it is _the_ solution, of 
course. :-]

I'd just like to point out in the above thread (first link you provided), how 
_many_ people operate under the assumption that "misspelling problems are now 
solved". I'm sure many of their opinions would be different if they knew we'd 
be having this discussion now.

Let's not make the same mistake again. I assure you that in few more years 
we'll find some other creative ways to misspell arrest_* methods. ;-)

--

___
Python tracker 

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



[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-08 Thread Tim Peters


Tim Peters  added the comment:

BTW, this initialization in the FASTSEARCH code appears to me to be a mistake:

skip = mlast - 1;

That's "mistake" in the sense of "not quite what was intended, and so 
confusing", not in the sense of "leads to a wrong result".

I believe `skip` should be initialized to plain `mlast` instead.  Setting it to 
something smaller than that (like to `mlast - 1`) doesn't cause an error, but 
fails to exploit as much skipping as possible.

`mlast - 1` is the same value `skip` is set to if the following loop finds that 
the last character of the pattern is also the pattern's first character, but 
doesn't appear elsewhere in the pattern. It can be one larger if the last 
pattern character is unique in the pattern (which is the initial value of 
`skip` set by the line shown above).

--

___
Python tracker 

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



[issue24538] os.setxattr PermissionError on panfs propagates up causing `copystat`, `copytree`, and `pip install .` to fail unhepfully

2020-10-08 Thread Olexa Bilaniuk


Olexa Bilaniuk  added the comment:

Yes, it may be closed. The fix was merged in time to make it into Python 3.7.4 
and 3.8.0, and solved the problems we were facing with fancy filesystem xattrs 
on read-only files.

--

___
Python tracker 

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



[issue41877] Check against misspellings of assert etc. in mock

2020-10-08 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

See also below issues for previous discussion on making the assert helpers as 
top level functions : 

https://bugs.python.org/issue24651
https://bugs.python.org/issue30949

--
nosy: +cjw296, lisroach, mariocj89, rbcollins, xtreak

___
Python tracker 

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



[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
pull_requests: +21592
pull_request: https://github.com/python/cpython/pull/22609

___
Python tracker 

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



[issue41894] UnicodeDecodeError during load failure in non-UTF-8 locale

2020-10-08 Thread Inada Naoki


Inada Naoki  added the comment:

Yes, please.

--

___
Python tracker 

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



[issue30181] Correct the parsing of a test case docstring.

2020-10-08 Thread Chris Jerdonek


Chris Jerdonek  added the comment:

I believe this was addressed by issue 39450, which I think was technically a 
duplicate of this issue.

--
nosy: +chris.jerdonek

___
Python tracker 

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



[issue39450] unittest TestCase shortDescription does not strip whitespace

2020-10-08 Thread Chris Jerdonek


Chris Jerdonek  added the comment:

I believe this also resolves issue 30181 (which was the same issue).

--
nosy: +chris.jerdonek
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue26680] Incorporating float.is_integer into Decimal

2020-10-08 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Thanks.  I'm hoping that this will easy now the most of the details have 
already been worked out.

--

___
Python tracker 

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



[issue23984] Documentation error: Descriptors

2020-10-08 Thread Raymond Hettinger


Change by Raymond Hettinger :


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



[issue41192] Some audit events are undocumented

2020-10-08 Thread Saiyang Gou


Saiyang Gou  added the comment:

Hi Steve. If you had time could you review PR 21308, PR 21310 and PR 21322? 
Thanks!

--

___
Python tracker 

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



[issue39450] unittest TestCase shortDescription does not strip whitespace

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This seems complete, can it be closed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue24538] os.setxattr PermissionError on panfs propagates up causing `copystat`, `copytree`, and `pip install .` to fail unhepfully

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This seems complete, can it be closed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue27141] Fix collections.UserList shallow copy

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This seems complete, can it be closed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue35404] Document how to import _structure in email.message

2020-10-08 Thread Mariatta


Change by Mariatta :


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



[issue20582] socket.getnameinfo() does not document flags

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This seems complete, can it be closed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue34552] Clarify built-in types comparisons

2020-10-08 Thread Guido van Rossum


Guido van Rossum  added the comment:

Yup. Thanks for catching this!

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



[issue35404] Document how to import _structure in email.message

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This seems complete, can it be closed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue34552] Clarify built-in types comparisons

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This seems complete, can it be closed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue33647] Add str.replace(replacement_map)

2020-10-08 Thread Chris Jerdonek


Change by Chris Jerdonek :


--
title: Add re.replace(string, replacement_map) -> Add 
str.replace(replacement_map)

___
Python tracker 

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



[issue33647] Add re.replace(string, replacement_map)

2020-10-08 Thread Chris Jerdonek


Chris Jerdonek  added the comment:

Another API option is to use str.replace's existing arguments: str.replace(old, 
new[, count]). In addition to "old" and "new" being strings, they could also be 
lists of strings of equal length, similar to how str.maketrans() can accept two 
strings of equal length. Then, like maketrans(), each string in "old" would be 
replaced by the corresponding string at the same position in "new."

--
nosy: +chris.jerdonek

___
Python tracker 

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



[issue40747] sysconfig.get_config_var("py_version_nodot") should return 3_10

2020-10-08 Thread Florian Bruhin


Change by Florian Bruhin :


--
nosy: +The Compiler

___
Python tracker 

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



[issue37456] FAQ says positional arguments aren't a thing

2020-10-08 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue33894] tempfile.tempdir cannot be unset

2020-10-08 Thread Eric V. Smith


Change by Eric V. Smith :


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



[issue38634] Symbol resolution conflict when embeding python in an application using libedit

2020-10-08 Thread Colin Watson


Colin Watson  added the comment:

Here's a reasonably minimal reproduction recipe reduced from real code in the 
Launchpad test suite that doesn't require compiling a separate C extension.  It 
fails on Ubuntu 18.04 with the gir1.2-gtk-3.0, python3-gi, and xvfb packages 
installed.  (The xvfb-run part is just so that it works on a headless system; 
you can omit it if you have a working $DISPLAY.)

  xvfb-run python3 -c 'from gi.repository import Gtk; import readline'

--

___
Python tracker 

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



[issue38905] venv python reports wrong sys.executable in a subprocess on Windows

2020-10-08 Thread Sergey Nudnou


Sergey Nudnou  added the comment:

Hello,

I've just run into a related issue. I have a python script, which starts an 
another python script using subprocess.Popen(). The parent script gets pid of 
the child and monitors up its activity through a database by this pid. The 
child script updates its activity in the database using the pid it gotten from 
os.getpid()

Both scripts live in a virtual environment.

It worked fine in Python 3.5 and stopped working after migration to Python 3.8.

My base Python location: D:\Python\Python38\pythonw.exe
Virtual Environment: D:\test\venv\Scripts\pythonw.exe

I have realized, that when I run the following from a command prompt:
D:\test\venv\Scripts\pythonw.exe test.py

2 processes with the different PIDs are created:
PID:   97040
Parent PID:12004  (cmd.exe)
Command Line:  D:\test\venv\Scripts\pythonw.exe test.py

PID:   85548
Parent PID:97040  (pythonw.exe)
Command Line:  D:\Python\Python38\pythonw.exe test.py

It is definitely a regression, and will potentially break a lot of applications 
expecting a child Python process to be a direct descendant of its parent.

Also it is a waste of system resources

--
nosy: +nsmcan

___
Python tracker 

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



[issue37456] FAQ says positional arguments aren't a thing

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This seems complete, can it be closed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41805] types.GenericAlias and types.Union have no documentation

2020-10-08 Thread Patrick Reader


Patrick Reader  added the comment:

Sorry, I'd completely forgotten about doing a PR for this. Go ahead!

--

___
Python tracker 

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



[issue39337] codecs.lookup() ignores non-ASCII characters, whereas encodings.normalize_encoding() copies them

2020-10-08 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 3f342376ab0da3b4c8a38a27edfafba8e8cdf52d by Hai Shi in branch 
'master':
bpo-39337: Add a test case for normalizing of codec names (GH-19069)
https://github.com/python/cpython/commit/3f342376ab0da3b4c8a38a27edfafba8e8cdf52d


--

___
Python tracker 

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



[issue37209] Add what's new entries for pickle enhancements

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This seems complete, can it be closed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue23984] Documentation error: Descriptors

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This seems complete, can it be closed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue27351] Unexpected ConfigParser.read() behavior when passed fileobject

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This seems complete, can it be closed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41976] ctypes.util.find_library fails with gcc 9

2020-10-08 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue21257] Document parse_headers function of http.client

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This seems complete. Can it be closed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41557] Upgrade Windows and macOS builds to use SQLite 3.33

2020-10-08 Thread miss-islington


miss-islington  added the comment:


New changeset 089c38677d2269ab52924e4eb117394a74dfd2d9 by Miss Skeleton (bot) 
in branch '3.9':
bpo-41557: Update Windows installer to use SQLite 3.33.0 (GH-21960)
https://github.com/python/cpython/commit/089c38677d2269ab52924e4eb117394a74dfd2d9


--

___
Python tracker 

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



[issue41557] Upgrade Windows and macOS builds to use SQLite 3.33

2020-10-08 Thread miss-islington


miss-islington  added the comment:


New changeset 30a788990af55b950db424b9cc5408b51e0b24ed by Miss Skeleton (bot) 
in branch '3.8':
bpo-41557: Update Windows installer to use SQLite 3.33.0 (GH-21960)
https://github.com/python/cpython/commit/30a788990af55b950db424b9cc5408b51e0b24ed


--

___
Python tracker 

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



[issue41976] ctypes.util.find_library fails with gcc 9

2020-10-08 Thread miss-islington


miss-islington  added the comment:


New changeset a4ac5fadf55a9743c6812dea8d31ca4f05f33829 by Miss Skeleton (bot) 
in branch '3.9':
bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 
(GH-22598)
https://github.com/python/cpython/commit/a4ac5fadf55a9743c6812dea8d31ca4f05f33829


--

___
Python tracker 

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



[issue33167] RFC Documentation Updates to urllib.parse.rst

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

Since the PR was abandoned as out of date, should this issue be closed as well?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41976] ctypes.util.find_library fails with gcc 9

2020-10-08 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 6ceb5232aeb1943dacbbdb87e7dddfaa716678bc by Pablo Galindo in 
branch '3.8':
[3.8] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using 
gcc>9 (GH-22598). (GH-22600)
https://github.com/python/cpython/commit/6ceb5232aeb1943dacbbdb87e7dddfaa716678bc


--

___
Python tracker 

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



[issue31432] Documention for CERT_OPTIONAL is misleading

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This seems complete, can it be closed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41976] ctypes.util.find_library fails with gcc 9

2020-10-08 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 9b5a023a5dc3127da15253f7acad71019395ebe1 by Pablo Galindo in 
branch '3.7':
[3.7] bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using 
gcc>9 (GH-22598). (GH-22601)
https://github.com/python/cpython/commit/9b5a023a5dc3127da15253f7acad71019395ebe1


--

___
Python tracker 

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



[issue33894] tempfile.tempdir cannot be unset

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This is complete and can be closed.

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41557] Upgrade Windows and macOS builds to use SQLite 3.33

2020-10-08 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21591
pull_request: https://github.com/python/cpython/pull/22603

___
Python tracker 

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



[issue41557] Upgrade Windows and macOS builds to use SQLite 3.33

2020-10-08 Thread Steve Dower


Steve Dower  added the comment:


New changeset bfe6e03cd6931813dd61b50f5fdf7d8a8848f4cd by Erlend Egeberg 
Aasland in branch 'master':
bpo-41557: Update Windows installer to use SQLite 3.33.0 (GH-21960)
https://github.com/python/cpython/commit/bfe6e03cd6931813dd61b50f5fdf7d8a8848f4cd


--

___
Python tracker 

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



[issue41557] Upgrade Windows and macOS builds to use SQLite 3.33

2020-10-08 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21590
pull_request: https://github.com/python/cpython/pull/22602

___
Python tracker 

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



[issue33431] Change description about doc in programming, faq.

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

I think the intention was "a method that mutates an argument".  As in, an arg 
other than self.

Nevertheless, I agree with removing the sweeping promise about the standard 
libraries.

--

___
Python tracker 

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



[issue33431] Change description about doc in programming, faq.

2020-10-08 Thread Irit Katriel


New submission from Irit Katriel :

lvhuiyang, I think the change you propose is correct and should be made. Why 
did you abandon the PR?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue41968] 3.9 IDLE documentation.

2020-10-08 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Velson, when you respond to a post by email, rather than on the web page, 
please delete the post you are responding to, except for maybe a quoted line or 
two.  When your response is added to the web page below previous posts, posts 
quoted in full constitute noise that makes the stream of posts harder to read.

I forgot to mention above that I added a link to this issue on #31329 so that 
when I work on that, I will be reminded to read comments here also.
They will be helpful.

IDLE is intended for learning to write Python programs and to develop programs 
that can be run directly with Python, without IDLE.  It is not intended for 
production runs (though there are a few cases where that might be sensible).  
So, to run with IDLE, edit with IDLE and hit F5.

I installed 3.9.0 with the python.org Windows installer and clicked "[X] make 
this default" (or however that is worded, top of second page, I believe).  
Double-clicking file.py or right-clicking and clicking Open runs the file with 
C:/Windows/py.exe, as I said in my first response.  py.exe then runs the file 
with the default python.exe.  Right-click also shows Edit with IDLE and a 
choice of versions.  To get this on your system, you probably best delete all 
pythons on your system and start over with the python.org installer.  For any 
more help on installing and using Python, please post to the python-list mail 
list.

--

___
Python tracker 

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



[issue41976] ctypes.util.find_library fails with gcc 9

2020-10-08 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +21589
pull_request: https://github.com/python/cpython/pull/22601

___
Python tracker 

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



[issue41976] ctypes.util.find_library fails with gcc 9

2020-10-08 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +21588
pull_request: https://github.com/python/cpython/pull/22600

___
Python tracker 

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



[issue41976] ctypes.util.find_library fails with gcc 9

2020-10-08 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 27ac19cca2c639caaf6fedf3632fe6beb265f24f by Pablo Galindo in 
branch 'master':
bpo-41976: Fix the fallback to gcc of ctypes.util.find_library when using gcc>9 
(GH-22598)
https://github.com/python/cpython/commit/27ac19cca2c639caaf6fedf3632fe6beb265f24f


--

___
Python tracker 

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



[issue41976] ctypes.util.find_library fails with gcc 9

2020-10-08 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 1.0 -> 2.0
pull_requests: +21587
pull_request: https://github.com/python/cpython/pull/22599

___
Python tracker 

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



[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-08 Thread Tim Peters


Tim Peters  added the comment:

Just FYI, the original test program did get the right answer for the second 
search on my box - after about 3 1/2 hours :-)

--

___
Python tracker 

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



[issue41977] ctypes array inside structure requires explicit garbage collection

2020-10-08 Thread Maximilian Pichler


New submission from Maximilian Pichler :

If we initialize a `Structure` with two fields as...
```python
s = S()
s.x = (c_int * 10**8)()
s.y = s.x
```
...and then delete it with ```del s```, the memory allocated for the array is 
not freed until `gc.collect()` is called.

If instead we initalize `s` as...
```python
s = S()
a = (c_int * 10**8)()
s.x = a
s.y = a
del a
```
the memory is freed immediately, no need to garbage collect.

This behaviour seems inconsistent.

Also, if instead of `del s` we do...
```python
s.x = None
s.y = None
```
...memory usage remains high even after garbage collection.

Full code:
```python
import os, sys, gc
from ctypes import *

class S(Structure):
_fields_ = [ ("x", POINTER(c_int)), ("y", POINTER(c_int)) ]

def __del__(self):
print("__del__ was called")

def dump_mem(): os.system(f"ps -o rss {os.getpid()}")

dump_mem() # ~ 6 MB

s = S()
s.x = (c_int * 10**8)()
s.y = s.x

dump_mem() # ~ 397 MB

del s # prints "__del__ was called" immediatly

dump_mem() # ~ 397 MB

gc.collect()

dump_mem() # ~ 6 MB
```

--
components: ctypes
messages: 378262
nosy: maxim.pichler
priority: normal
severity: normal
status: open
title: ctypes array inside structure requires explicit garbage collection
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



[issue38634] Symbol resolution conflict when embeding python in an application using libedit

2020-10-08 Thread Colin Watson


Colin Watson  added the comment:

FWIW I just ran into what I believe to be this bug with the Launchpad test 
suite on Python 3.6.9.  The output shows some normal test output followed by:

No entry for terminal type "unknown";
using dumb terminal settings.
bind: Invalid command `enable-meta-key'.
No entry for terminal type "unknown";
using dumb terminal settings.
No entry for terminal type "unknown";
using dumb terminal settings.
Segmentation fault

The test suite imports a lot of stuff, but it includes something which links 
against libLLVM which links against libedit (I haven't worked out exactly what, 
but probably GTK-related).  Then something else much later imports readline - 
again, I haven't worked out what yet, as it's taken me a day just to set up the 
exact right environment in which to reproduce this at all and an strace doesn't 
make the cause of the import especially clear.

So I understand why you see this as a rare use case, but it's *extremely* 
confusing and a massive time sink when you do run across it, as the cause is a 
long way distant from the effect and it can arise in situations where it is in 
no way deliberate to have this sort of setup, but rather an emergent effect of 
several other things.

--
nosy: +cjwatson

___
Python tracker 

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



[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-08 Thread Tim Peters


Tim Peters  added the comment:

Good sleuthing, Dennis! Yes, Fredrik was not willing to add "potentially 
expensive" (in time or in space) tricks:

http://effbot.org/zone/stringlib.htm

So worst-case time is proportional to the product of the arguments' lengths, 
and the cases here appear to, essentially, hit that.  It _was_ a goal that it 
always be at least as fast as the dirt-dumb search algorithm it replaced, and 
in good real-life (not just contrived) cases to be much faster.  It met the 
goals it had.

--

___
Python tracker 

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



[issue41968] 3.9 IDLE documentation.

2020-10-08 Thread Velson Horie


Velson Horie  added the comment:

Paine: thank you for your offer to sort the problem out.
See my answer to Terry for a  further introduction to the situation.

My laptop's operating system Win10 64 bit was mashed by Windows update
1909. I deleted 3.6, loaded 3.8 (but that didn't work because the system
had been converted from 64 to 32 bit). Deleted 3.8, installed update 2004,
then 3.9.  I then tried to run my (simple and small) .py code by double
clicking, and that failed.  So I tried to associate the .py files with any
of the various python options presented by Windows - didn't work. I then
found buried in the folder structure a copy of idle.bat so I made the
association. That didn't work.  Meanwhile the option to edit with IDLE,
which I noticed early on but which did not appear in "open with" options,
had disappeared.  So I asked the Microsoft help chat.  Who said that
idle.bat would not work anyway.  I tried to copy idle.exe from my desktop
(3.8) to my laptop (3.9). but no luck.
I was stuck, so raised my query on the topic of idle.exe.

I have installed 3.9 for all users and clicking the PATH box, and on
C:\Program Files\Python39, which is declared on the environmental variable
list.

I had gone to the documentation page to sort the problem myself, but that
provided no relevant help, so raised the query about that page.

You have made clear that it is not really a Python issue, but my initial
mistake with Windows.
Have you any idea how I might undo the various wrong associations to get
back to the "edit with IDLE option" - reinstall 3.9?.  If not, I shall have
another go with Microsoft help.

Thank you

On Wed, 7 Oct 2020 at 18:20, E. Paine  wrote:

>
> E. Paine  added the comment:
>
> I am not touching the issue nosy and components for now but suspect this
> is a Windows installation issue. As you said, there is no `idle.exe` file
> and instead file association is done through a `idle.bat` file found at
> Lib/idlelib/idle.bat. I have a few of questions that I would appreciate if
> you could answer to give some more context:
>  - What behaviour is incorrect? Is it that double clicking doesn't launch
> python.exe or there is no "edit with IDLE" entry in the right-click menu?
>  - Did you install it for different users compared to the other versions
> (all users / admin vs. just for this user)
>  - Do you have any other Python versions installed simultaneously with 3.9?
>
> I agree it may be nice to give a brief overview on IDLE's
> "behind-the-scenes" though I am slightly confused why you raised this issue
> as a documentation issue.
>
> --
> nosy: +epaine
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue41976] ctypes.util.find_library fails with gcc 9

2020-10-08 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue41976] ctypes.util.find_library fails with gcc 9

2020-10-08 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

Running ctypes.util.find_library with gcc-9, if ldconfig is not available, it 
falls back to check the output of gcc -Wl,-t -lc to locate the library and then 
runs objdump on the file it's found to parse out the SONAME. With the gcc-9 the 
output of that gcc command is slightly perturbed so that /lib64/libc.so is 
listed before /libc64/libc.so.6. The former is a linker script not and ELF file 
so objdump fails.

--
assignee: pablogsal
components: ctypes
messages: 378258
nosy: pablogsal
priority: normal
severity: normal
status: open
title: ctypes.util.find_library fails with gcc 9
versions: Python 3.10, 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



[issue41306] test_tk test_widgets.ScaleTest fails with Tk 8.6.10

2020-10-08 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue41306] test_tk test_widgets.ScaleTest fails with Tk 8.6.10

2020-10-08 Thread miss-islington


miss-islington  added the comment:


New changeset 15e091f63f12b659ad17563a4ce7f5188aceae0a by Miss Skeleton (bot) 
in branch '3.9':
bpo-41306: Allow scale value to not be rounded (GH-21715)
https://github.com/python/cpython/commit/15e091f63f12b659ad17563a4ce7f5188aceae0a


--

___
Python tracker 

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



[issue41968] 3.9 IDLE documentation.

2020-10-08 Thread Velson Horie


Velson Horie  added the comment:

As Terry said, the issue of Idle not starting by a .py file association was
raised in another thread. That parenthesis was mentioned to give context to
the documentation enquiry.  In my new 3.9 installation, I could find
idle.bat, but I had just been told by the Microsoft help engineer that it
was possible to make an association with a file type only by pointing to an
.exe file.  (I could find idle.exe in a 3.8 installation on a different
computer, buried deep in hidden AppData folders.)

This post was specifically about the documentation.  One of the
difficulties of a Python installation is that it is really difficult to
find where and how all the many and various strands of Python interact, how
the sources are linked into a structure [I grew up pre-Windows with
MS-DOS]. I was trying to find where the idle.exe was placed in the
installation, since Windows requires (apparently) an explicitly stated
folder/application.

So I went to the IDLE documentation page to find how IDLE was implemented
as a program, and how I might find "it", and where "it" was placed in the
folder structure in my new installation.
But those mechanics are not mentioned on that page.
So-  my post on documentation.

I apologise for the confusion.  However in the past, I had a similar
experience loading anaconda etc, where the files disappeared without trace
onto a hard drive. So I deleted the package (as best I can) because I don't
know what is happening.

On Thu, 8 Oct 2020 at 01:07, Terry J. Reedy  wrote:

>
> Terry J. Reedy  added the comment:
>
> I agree that the doc needs more, but I am closing this as a duplicate of
> #31329, which is specifically doc about starting IDLE.  You can still
> answer Paine's questions here if you want.
>
> File association: IDLE is not Python.  It is one of many Python-oriented
> editors and IDEs.  .py files are and by default should be associated for
> running with something that runs the file with python.exe.  On Windows,
> this is done via C:/Windows/py.exe.  The default version for double
> clicking is determined by a checkmark in the installer.
>
> The Windows installer does associate .py files with IDLE for editing: rt
> click, edit with IDLE 
>
> idle.exe is not needed for starting idle.
>
> I don't know what you mean by 'source format'.  IDLE is written in
> Python.  The directory structure is mostly implementation detail not
> relevant to using IDLE.  File are described in idlelib/README.txt.  This
> might be mentioned in the doc.
>
> --
> resolution:  -> duplicate
> stage:  -> resolved
> status: open -> closed
> superseder:  -> Add idlelib module entry to doc
> type:  -> enhancement
> versions: +Python 3.10 -Python 3.9
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue33533] Provide an async iterator version of as_completed

2020-10-08 Thread Justin Arthur


Change by Justin Arthur :


--
versions: +Python 3.10 -Python 3.8

___
Python tracker 

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



[issue41877] Check against misspellings of assert etc. in mock

2020-10-08 Thread Vedran Čačić

Vedran Čačić  added the comment:

Sorry, but 

1) Stability policy is great when we hold on to it. If we add new spellings of 
assert every few years, what kind of stability it is? "My" solution is of the 
same type: just add one more thing to the API. But that solution is better, 
because a) it doesn't clash, and b) it must be done only once.

2) Soundex has nothing to do with it. It was invented to mitigate errors when 
transferring _sounds_ (phonemes) over the telephone wire. It would surprise me 
very much if those were in any useful sense correlated with errors encountered 
typing graphemes on the mechanical keyboard.

--

___
Python tracker 

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



[issue41306] test_tk test_widgets.ScaleTest fails with Tk 8.6.10

2020-10-08 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21585
pull_request: https://github.com/python/cpython/pull/22597

___
Python tracker 

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



[issue41306] test_tk test_widgets.ScaleTest fails with Tk 8.6.10

2020-10-08 Thread miss-islington


miss-islington  added the comment:


New changeset 3d103e06951324680c587d4fe1135f06367c9d3d by Miss Skeleton (bot) 
in branch '3.8':
bpo-41306: Allow scale value to not be rounded (GH-21715)
https://github.com/python/cpython/commit/3d103e06951324680c587d4fe1135f06367c9d3d


--

___
Python tracker 

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



[issue21506] Windows MSI installer should mklink (symlink) python.exe to python2.7.exe

2020-10-08 Thread ahiijny


Change by ahiijny :


--
nosy: +ahiijny

___
Python tracker 

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



[issue18163] Add a 'key' attribute to KeyError

2020-10-08 Thread Anatoliy Platonov


Anatoliy Platonov  added the comment:

I agree with Mark. I will be useful to provide ability to specify custom long 
message for error. And logically it would be better to do not allow users 
change key field in error so easy.

--
nosy: +p4m-dev

___
Python tracker 

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



[issue39273] ncurses does not include BUTTON5_* constants

2020-10-08 Thread Grady Martin


Change by Grady Martin :


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



[issue39273] ncurses does not include BUTTON5_* constants

2020-10-08 Thread Grady Martin


Grady Martin  added the comment:

This baffled me, as well.  Does the reason involve bit-field width?

By the way, look at what my Python installation does when just *pressing* 
button 5 (mouse wheel down) after calling `curses.mousemask()`:

```
_curses.error: getmouse() returned ERR
```

The curses program then crashes with an exit code of 1.

```
$ uname -srvmo
Linux 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux
$ python3 -V
Python 3.7.3
```

--
nosy: +IronGrid
type: enhancement -> crash
versions: +Python 3.7 -Python 3.9

___
Python tracker 

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



[issue41894] UnicodeDecodeError during load failure in non-UTF-8 locale

2020-10-08 Thread Kevin


Kevin  added the comment:

Ok, so should I switch the PR back from PyUnicode_DecodeFSDefault?

--

___
Python tracker 

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



[issue41971] multiple tests in test_tools fail since Python 3.9

2020-10-08 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

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



[issue41306] test_tk test_widgets.ScaleTest fails with Tk 8.6.10

2020-10-08 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21584
pull_request: https://github.com/python/cpython/pull/22596

___
Python tracker 

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



[issue41306] test_tk test_widgets.ScaleTest fails with Tk 8.6.10

2020-10-08 Thread miss-islington


miss-islington  added the comment:


New changeset aecf036738a404371303e770f4ce4fd9f7d43de7 by E-Paine in branch 
'master':
bpo-41306: Allow scale value to not be rounded (GH-21715)
https://github.com/python/cpython/commit/aecf036738a404371303e770f4ce4fd9f7d43de7


--
nosy: +miss-islington

___
Python tracker 

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



[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread miss-islington


miss-islington  added the comment:


New changeset 4a9f82f50d957b6cf3fd207de8b583d9137316b8 by Pablo Galindo in 
branch 'master':
bpo-41970: Avoid test failure in test_lib2to3 if the module is already imported 
(GH-22595)
https://github.com/python/cpython/commit/4a9f82f50d957b6cf3fd207de8b583d9137316b8


--
nosy: +miss-islington

___
Python tracker 

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



[issue32397] textwrap output may change if you wrap a paragraph twice

2020-10-08 Thread Julien Palard


Julien Palard  added the comment:

Could be "related" to https://bugs.python.org/issue41975.

--
nosy: +mdk

___
Python tracker 

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



[issue41975] Textwrap to conform to https://www.unicode.org/reports/tr14/tr14-45.html

2020-10-08 Thread Julien Palard


New submission from Julien Palard :

Currently it looks like our `textwrap.fill` implementation does not conforms to 
the Unicode Line Breaking Algorithm from the unicode standard.

Should this be enhanced?

If so, as a sidenote, it could be nice to have the override parameter of  
libunistring [1] to prohibit line breaking at specific places where the 
algorithm would normally break but where a human don't expect it to.

[1]: 
https://www.gnu.org/software/libunistring/manual/html_node/unilbrk_002eh.html

--
components: Library (Lib)
messages: 378247
nosy: mdk
priority: normal
severity: normal
status: open
title: Textwrap to conform to https://www.unicode.org/reports/tr14/tr14-45.html

___
Python tracker 

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



[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Karthikeyan Singaravelan

Karthikeyan Singaravelan  added the comment:

I guess this could be due to loading the module twice where the warning is not 
emitted again on reimport which test__all__ seems to do so by importing 
lib2to3. One obvious fix would be to pass quiet=True. Else we need to find a 
way to import the module fresh like using import_fresh_module. Two possible 
patches. I assumed running tests sequentially will provide support for 
isolation too.

Optional argument:
 - if 'quiet' is True, it does not fail if a filter catches nothing
(default True without argument,
 default False if some filters are defined)

Without argument, it defaults to:
check_warnings(("", Warning), quiet=True)

# Using import fresh module

diff --git a/Lib/test/test_lib2to3.py b/Lib/test/test_lib2to3.py
index 159a8387e4..861ae5ad53 100644
--- a/Lib/test/test_lib2to3.py
+++ b/Lib/test/test_lib2to3.py
@@ -1,7 +1,9 @@
 import unittest
+from test.support.import_helper import import_fresh_module
 from test.support.warnings_helper import check_warnings
 
 with check_warnings(("", PendingDeprecationWarning)):
+lib2to3 = import_fresh_module("lib2to3")
 from lib2to3.tests import load_tests
 
 if __name__ == '__main__':

# Passing quiet=True

diff --git a/Lib/test/test_lib2to3.py b/Lib/test/test_lib2to3.py
index 159a8387e4..e4c5cade8b 100644
--- a/Lib/test/test_lib2to3.py
+++ b/Lib/test/test_lib2to3.py
@@ -1,7 +1,7 @@
 import unittest
 from test.support.warnings_helper import check_warnings
 
-with check_warnings(("", PendingDeprecationWarning)):
+with check_warnings(("", PendingDeprecationWarning), quiet=True):
 from lib2to3.tests import load_tests
 
 if __name__ == '__main__':

➜  cpython git:(master) ✗ ./python -m test test_lib2to3 test_lib2to3 
0:00:00 load avg: 0.01 Run tests sequentially
0:00:00 load avg: 0.01 [1/2] test_lib2to3
0:00:13 load avg: 0.23 [2/2] test_lib2to3

== Tests result: SUCCESS ==

All 2 tests OK.

Total duration: 27.3 sec
Tests result: SUCCESS

--
versions: +Python 3.10

___
Python tracker 

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



[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Ok, thanks everyone for the help reproducing this. I think I can work on a fix 
today

--

___
Python tracker 

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



[issue28874] test_logging fails and freezes

2020-10-08 Thread STINNER Victor


STINNER Victor  added the comment:

Python 3.5 is no longer supported (no bugfix, no security fix). This issue is 
closed.

--

___
Python tracker 

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



[issue28874] test_logging fails and freezes

2020-10-08 Thread Leo kirotawa silva


Leo kirotawa silva  added the comment:

I'm facing similar issue with test_logging in python3.5.2-2ubuntu0~16.04.12. 
Test just get hangs and so, our builders kill the build process without a 
successful ending.

[1/1] test_locale
1 test OK.
[1/1] test_logging
E: Build killed with signal TERM after 150 minutes of inactivity

Could someone provide any info in how to handle with this issue? Also, reopen 
this issue, if possible. 
It's affecting our 3.4 and 3.5 pythons.

Thanks!

--
nosy: +Leo kirotawa silva
versions: +Python 3.5 -Python 3.7

___
Python tracker 

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



[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Federico Granata


Federico Granata  added the comment:

I can have the test to fails if I run "python -m test test_lib2to3 
test_lib2to3" as well

--

___
Python tracker 

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



[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I can reproduce this by running test_lib2to3 twice or running test___all__ with 
test_lib2to3

./python -m test test_lib2to3 test_lib2to3
0:00:00 load avg: 0.03 Run tests sequentially
0:00:00 load avg: 0.03 [1/2] test_lib2to3
0:00:13 load avg: 0.25 [2/2] test_lib2to3
test test_lib2to3 crashed -- Traceback (most recent call last):
  File "/root/cpython/Lib/test/libregrtest/runtest.py", line 272, in 
_runtest_inner
refleak = _runtest_inner2(ns, test_name)
  File "/root/cpython/Lib/test/libregrtest/runtest.py", line 223, in 
_runtest_inner2
the_module = importlib.import_module(abstest)
  File "/root/cpython/Lib/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 986, in _find_and_load_unlocked
  File "", line 680, in _load_unlocked
  File "", line 790, in exec_module
  File "", line 228, in _call_with_frames_removed
  File "/root/cpython/Lib/test/test_lib2to3.py", line 5, in 
from lib2to3.tests import load_tests
  File "/root/cpython/Lib/contextlib.py", line 124, in __exit__
next(self.gen)
  File "/root/cpython/Lib/test/support/warnings_helper.py", line 179, in 
_filterwarnings
raise AssertionError("filter (%r, %s) did not catch any warning" %
AssertionError: filter ('', PendingDeprecationWarning) did not catch any warning

test_lib2to3 failed

== Tests result: FAILURE ==

1 test OK.

1 test failed:
test_lib2to3

Total duration: 13.5 sec
Tests result: FAILURE

./python -m test test___all__ test_lib2to3 
0:00:00 load avg: 0.05 Run tests sequentially
0:00:00 load avg: 0.05 [1/2] test___all__
0:00:00 load avg: 0.05 [2/2] test_lib2to3
test test_lib2to3 crashed -- Traceback (most recent call last):
  File "/root/cpython/Lib/test/libregrtest/runtest.py", line 272, in 
_runtest_inner
refleak = _runtest_inner2(ns, test_name)
  File "/root/cpython/Lib/test/libregrtest/runtest.py", line 223, in 
_runtest_inner2
the_module = importlib.import_module(abstest)
  File "/root/cpython/Lib/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 986, in _find_and_load_unlocked
  File "", line 680, in _load_unlocked
  File "", line 790, in exec_module
  File "", line 228, in _call_with_frames_removed
  File "/root/cpython/Lib/test/test_lib2to3.py", line 5, in 
from lib2to3.tests import load_tests
  File "/root/cpython/Lib/contextlib.py", line 124, in __exit__
next(self.gen)
  File "/root/cpython/Lib/test/support/warnings_helper.py", line 179, in 
_filterwarnings
raise AssertionError("filter (%r, %s) did not catch any warning" %
AssertionError: filter ('', PendingDeprecationWarning) did not catch any warning

test_lib2to3 failed

== Tests result: FAILURE ==

1 test OK.

1 test failed:
test_lib2to3

Total duration: 1.1 sec
Tests result: FAILURE

--

___
Python tracker 

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



[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Federico Granata


Federico Granata  added the comment:

I just run "python -m test" for it to fail and "python -m test test_lib2to3" 
for it to succeded.

--

___
Python tracker 

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



[issue40066] Enum._convert should change __repr__ and/or __str__ to use module name instead of class name

2020-10-08 Thread Vedran Čačić

Vedran Čačić  added the comment:

> - do you think the change has merit?

Absolutely.

> - why /shouldn't/ we make the change?

Well, standard backward compatibility stuff. :-)

--

___
Python tracker 

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



[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Felix Yan


Felix Yan  added the comment:

I use this in Arch's packaging:

LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1920x1080x16 -ac +extension GLX" -a 
-n "$servernum" \
"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_tk

(test_tk is currently skipped due to https://bugs.python.org/issue41306)

--

___
Python tracker 

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



[issue26332] OSError: exception: access violation writing <...> (Windows 10 x64, Python 3.5.1)

2020-10-08 Thread Eryk Sun


Eryk Sun  added the comment:

I see nothing to act on in this issue. A common cause of access violations with 
ctypes is truncated pointer values. There's a lot of sloppy ctypes code from 
the 32-bit era that assumes a C int can store a pointer.

--
nosy: +eryksun
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue37881] __text_signature__ parser doesn't handle globals in extension module

2020-10-08 Thread Antoine Pitrou


Change by Antoine Pitrou :


--
nosy: +eric.snow

___
Python tracker 

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



[issue7946] Convoy effect with I/O bound threads and New GIL

2020-10-08 Thread STINNER Victor


STINNER Victor  added the comment:

If someone wants to close this issue, I suggest to write a short section in the 
Python documentation to give some highlights on the available options and 
stategies to maximize performances and list drawbacks of each method. Examples:

* Multiple threads (threading): limited by the GIL
* Multiple processes (concurrent.futures, multiprocessing, distributed 
application): limited by shared data
* Concurrent programming (asyncio): limited to 1 thread

These architectures are not exclusive. asyncio can use multiple threads and be 
distributed in multiple processes.

I would be bad to go too deep into the technical details, but I think that we 
can describe some advantages and drawbacks which are common on all platforms.

--

___
Python tracker 

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



[issue26332] OSError: exception: access violation writing <...> (Windows 10 x64, Python 3.5.1)

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

Should this be closed? There wasn't enough information 4 years ago and I can't 
imagine anything happening with this now.

--

___
Python tracker 

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



[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Pablo, I can see the error in Travis. The difference I can see is that the 
tests are executed sequentially in coverage run but normal run has tests 
executing in parallel. Felix and Federico, can you please add the command you 
use to run the tests?

Sample error build : 
https://travis-ci.com/github/python/cpython/jobs/396688564#L2022

coverage run but has true in the end thus being always successful

xvfb-run ./venv/bin/python -m coverage run --branch --pylib -m test 
--fail-env-changed -uall,-cpu -x test_multiprocessing_fork -x 
test_multiprocessing_forkserver -x test_multiprocessing_spawn -x 
test_concurrent_futures || true

Normal run

/home/travis/build/python/cpython/python -u -W default -bb -E -m test -r -w -j 
1 -u all -W --slowest --fail-env-changed --timeout=1200 -j4 -uall,-cpu

--

___
Python tracker 

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



[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-08 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

Indeed, this is just a very unlucky case.

>>> n = len(longer)
>>> from collections import Counter
>>> Counter(s[:n])
Counter({0: 9056995, 255: 6346813})
>>> s[n-30:n+30].replace(b'\x00', b'.').replace(b'\xff', b'@')
b'..@@'
>>> Counter(s[n:])
Counter({255: 18150624})


When checking "base", we're in this situation

pattern: 
 string: .
Algorithm says: ^ these last characters don't match.
 ^ this next character is not in the pattern
 Therefore, skip ahead a bunch:

 pattern:  
  string: .

 This is a match!


Whereas when checking "longer", we're in this situation:

pattern: @
 string: .
Algorithm says:  ^ these last characters don't match.
  ^ this next character *is* in the pattern.
  We can't jump forward.

 pattern:   
  string: .

 Start comparing at every single alignment...


I'm attaching reproducer.py, which replicates this from scratch without loading 
data from a file.

--
Added file: https://bugs.python.org/file49499/reproducer.py

___
Python tracker 

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



[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Federico Granata


Federico Granata  added the comment:

I just experienced the very same issue.
I use pyenv and doing all tests gives me a failure on test_lib2to3 while 
running it individually end succesfully.

Tell me if I can provide any useful information

--
nosy: +federico.granata

___
Python tracker 

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



[issue41958] importlib has not util module

2020-10-08 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue41483] Do not acquire lock in MemoryHandler.flush() if no target defined

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This can be closed now - we all agree there is nothing left to do.

--

___
Python tracker 

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



[issue41958] importlib has not util module

2020-10-08 Thread Irit Katriel


Irit Katriel  added the comment:

This can be closed as not a bug (it's a user error).

--

___
Python tracker 

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



[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-08 Thread STINNER Victor


STINNER Victor  added the comment:

Does the code really hang? Or does it complete if you wait for an infinite 
amount of time?

I understand that your concern is that bytes.find() is inefficient for a very 
specific pattern.

--
nosy: +vstinner

___
Python tracker 

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



  1   2   >