[issue41680] Turtles in Python 3.8.5 crashes OSX 10.14.6

2020-08-31 Thread Ned Deily


Ned Deily  added the comment:

Thanks for the report. However, you are going to have give more specific 
information for us to be able to try to understand and reproduce the problem. 
Exactly what steps did you use to show the problem, in particular, in what 
context were those three lines of Python executed: from a file in a Python 
launched from a command line terminal window, typed into a Python in a command 
line terminal window, from within an IDLE shell window, from an IDLE edit 
window?  How exactly did Python crash (what error messages were reported)? Also 
please paste the output from running in a terminal shell window:

python3.8 -m test.pythoninfo

replacing python3.8 with whatever you use to invoke the Python that fails.

--

___
Python tracker 

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



[issue41683] Python3: Installation error on Ubunti-18

2020-08-31 Thread Ned Deily


Ned Deily  added the comment:

If setuptools 50 is in use, you are likely running into one of various problems 
introduced by setuptools new vendoring of distutils which breaks various Ubuntu 
local modifications.  It looks like a temporary workaround is to to add this 
environment variable definition:
SETUPTOOLS_USE_DISTUTILS=stdlib

See https://github.com/pypa/setuptools/issues/2350 and others. If that doesn't 
work, you may want to follow up on an Ubuntu forum or the pip issue tracker:
https://github.com/pypa/pip/issues

--
nosy: +ned.deily
resolution:  -> third party
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



[issue41678] File-level, optionally external sorting

2020-08-31 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

Attached is a proof of concept.

--
Added file: https://bugs.python.org/file49436/disksort.py

___
Python tracker 

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



[issue41678] File-level, optionally external sorting

2020-08-31 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

If we were to do this, I think a better API might be to accept an arbitrary 
iterable, then produce a sorted iterable:

def sorted_on_disk(iterable, key=None, reverse=False) -> Iterable:
...

It would sort chunks of the input and store them in files as sequences of 
pickles, merging them as they got bigger, and then return an iterator over the 
resulting single sorted file.

This would be more composable with other standard Python functions and would be 
a good way of separating concerns. sorted(...) and heapq.merge(...) already 
have the correct APIs to do it this way.

Potential implementation detail: For some small fixed n, always doing a 2^n-way 
heapq.merge instead of a bunch of 2-way merges would do fewer passes over the 
data and would allow the keys to be computed 1/n as many times, assuming we 
wouldn't decorate-sort-undecorate.

--
nosy: +Dennis Sweeney

___
Python tracker 

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



[issue41683] Python3: Installation error on Ubunti-18

2020-08-31 Thread Prasanth R


New submission from Prasanth R :

Got this error on Ubuntu-18 alone

```
 _PYTHON_PROJECT_BASE=python3-3.8.3/Python-3.8.3 
_PYTHON_HOST_PLATFORM=linux-x86_64 
PYTHONPATH=python3-3.8.3/Python-3.8.3/build/lib.linux-x86_64-3.8/sysconfigdata:./Lib
 _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__linux_x86_64-linux-gnu python3.8 -m 
ensurepip \
$ensurepip --root=toolchain/ ; \
fi
ERROR: Exception:
Traceback (most recent call last):
  File 
"/tmp/tmp48him7rr/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/cli/base_command.py",
 line 188, in main
status = self.run(options, args)
  File 
"/tmp/tmp48him7rr/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/commands/install.py",
 line 286, in run
with self._build_session(options) as session:
  File 
"/tmp/tmp48him7rr/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/cli/base_command.py",
 line 101, in _build_session
session = PipSession(
  File 
"/tmp/tmp48him7rr/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/download.py", 
line 559, in __init__
self.headers["User-Agent"] = user_agent()
  File 
"/tmp/tmp48him7rr/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/download.py", 
line 144, in user_agent
zip(["name", "version", "id"], distro.linux_distribution()),
  File 
"/tmp/tmp48him7rr/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py", line 
122, in linux_distribution
return _distro.linux_distribution(full_distribution_name)
  File 
"/tmp/tmp48him7rr/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py", line 
677, in linux_distribution
self.version(),
  File 
"/tmp/tmp48him7rr/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py", line 
737, in version
self.lsb_release_attr('release'),
  File 
"/tmp/tmp48him7rr/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py", line 
899, in lsb_release_attr
return self._lsb_release_info.get(attribute, '')
  File 
"/tmp/tmp48him7rr/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py", line 
552, in __get__
ret = obj.__dict__[self._fname] = self._f(obj)
  File 
"/tmp/tmp48him7rr/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py", line 
1012, in _lsb_release_info
stdout = subprocess.check_output(cmd, stderr=devnull)
  File "python3-3.8.3/Python-3.8.3/Lib/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "python3-3.8.3/Python-3.8.3/Lib/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned 
non-zero exit status 1.
Makefile:1189: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory 'python3-3.8.3/Python-3.8.3'
```

--
components: Build
messages: 376177
nosy: prasanth
priority: normal
severity: normal
status: open
title: Python3: Installation error on Ubunti-18
type: compile error
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



[issue41682] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2020-08-31 Thread Kyle Stanley


Change by Kyle Stanley :


--
nosy:  -paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue41682] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2020-08-31 Thread Kyle Stanley


Change by Kyle Stanley :


--
components: +Windows, asyncio
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue41682] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2020-08-31 Thread Kyle Stanley

Kyle Stanley  added the comment:

In case the link to the logs are lost from closing and reopening the PR, it was 
a Windows CI test (GitHub actions) ran with the following configuration:

D:\a\cpython\cpython>"D:\a\cpython\cpython\PCbuild\amd64\python.exe"  -u -Wd -E 
-bb -m test  -uall -u-cpu -rwW --slowest --timeout 1200 -j0 
== CPython 3.10.0a0 (remotes/pull/22023/merge:992cc27, Aug 31 2020, 06:11:21) 
[MSC v.1927 64 bit (AMD64)]
== Windows-10-10.0.17763-SP0 little-endian
== cwd: D:\a\cpython\cpython\build\test_python_6372�
== CPU count: 2
== encodings: locale=cp1252, FS=utf-8
Using random seed 491155
0:00:00 Run tests in parallel using 4 child processes (timeout: 20 min, worker 
timeout: 25 min)

--

___
Python tracker 

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



[issue41682] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2020-08-31 Thread Kyle Stanley


Change by Kyle Stanley :


--
components: +Tests
nosy: +asvetlov, yselivanov
type:  -> behavior
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



[issue41682] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2020-08-31 Thread Kyle Stanley


New submission from Kyle Stanley :

In an unrelated PR to add a new argument to the base Executor class for 
concurrent.futures, there was a test_asyncio failure in test_sendfile for the 
ProactorEventLoop tests:

==
FAIL: test_sendfile_close_peer_in_the_middle_of_receiving 
(test.test_asyncio.test_sendfile.ProactorEventLoopTests)
--
Traceback (most recent call last):
  File "D:\a\cpython\cpython\lib\test\test_asyncio\test_sendfile.py", line 452, 
in test_sendfile_close_peer_in_the_middle_of_receiving
self.run_loop(
AssertionError: ConnectionError not raised

--

https://github.com/python/cpython/pull/22023/checks?check_run_id=1049760805#step:5:2373

--
title: test_asyncio: Proactor -> test_asyncio: Proactor 
test_sendfile_close_peer_in_the_middle_of_receiving failure

___
Python tracker 

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



[issue41682] test_asyncio: Proactor

2020-08-31 Thread Kyle Stanley


Change by Kyle Stanley :


--
nosy: aeros
priority: normal
severity: normal
status: open
title: test_asyncio: Proactor

___
Python tracker 

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



[issue41678] File-level, optionally external sorting

2020-08-31 Thread Platon workaccount

Platon workaccount  added the comment:

I mean Python's analog of sort [-k x.y] table.txt from GNU Coreutils.

>> What do you refer when you say "sorting a file"?

Sorting a file with multi-line plain text. Optionally, text consisting of
several columns separated by a specific character.

>> What does "key" act upon? Strings representing the lines in the file?

This is a sort rule argument similar to that of the existing in-memory
sort()/sorted() method.

>> For allow_disk_use=False, what's the difference between opening the
file, reading the lines, using sort() and writing the contents?

If False, there is no difference.

вт, 1 сент. 2020 г. в 00:18, Pablo Galindo Salgado :

>
> Pablo Galindo Salgado  added the comment:
>
> What do you refer when you say "sorting a file"?
>
> What does "key" act upon? Strings representing the lines in the file?
>
> For allow_disk_use=False, what's the difference between opening the file,
> reading the lines, using sort() and writing the contents?
>
> --
> nosy: +pablogsal
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-08-31 Thread Steve Dower


Steve Dower  added the comment:

Thanks, Ben!

--

___
Python tracker 

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



[issue41669] Case mismatch between "include" and "Include"

2020-08-31 Thread Steve Dower


Steve Dower  added the comment:

Unfortunately, it's easier to change what we distribute, except that has 
_always_ been "include" (based on a 2.4 installer I had laying around). And of 
course we can't change the repo.

Still, case sensitivity is becoming more acceptable on Windows and there are 
more ways to enable it, so we're probably best to deal with this. For 3.10, we 
can update PC/layout/main.py and tools/msi/common.wxs#L80 to create "Include", 
and we probably want to go over the few places where we may reference it to 
make sure the case is consistent. (Noting that distutils is fully deprecated in 
3.10, so it doesn't matter.)

I'm not sure that it qualifies as enough of a bugfix for 3.8 or 3.9.1, so I 
think we'll leave them alone. A case-sensitive file system can easily support a 
symlink/junction from "Include" to "include" anyway, which is a pretty 
straightforward workaround ;)

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



[issue40083] No run option available in python idle in version 3.8.2

2020-08-31 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I am assuming that Murat is correct that the only problem is confusion between 
'Shell' (which is a subclass of the base editor window) and Editor Window 
(which is a different subclass).  For further help, please to to a general 
forum, such as python-list.

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



[issue41681] f-string error description seems wrong

2020-08-31 Thread Hanish


Hanish  added the comment:

I have raised a pull request for the fix 
https://github.com/python/cpython/pull/22036. Your review is appreciated :)

--

___
Python tracker 

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



[issue40083] No run option available in python idle in version 3.8.2

2020-08-31 Thread Murat Turan


Murat Turan  added the comment:

There is a very simple solution for that. Open IDLE, if you dont see RUN tab, 
its opened in "Shell" mode. Go Options --> Configure IDLE, click to "General" 
tab and choose "Open Edit Window" option for start-up. That's it!

--
nosy: +Murat_Turan

___
Python tracker 

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



[issue41678] File-level, optionally external sorting

2020-08-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

What do you refer when you say "sorting a file"?

What does "key" act upon? Strings representing the lines in the file?

For allow_disk_use=False, what's the difference between opening the file, 
reading the lines, using sort() and writing the contents?

--
nosy: +pablogsal

___
Python tracker 

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



[issue39461] [RFE] os.environ should support Path-like values, like subprocess(..., env=...)

2020-08-31 Thread Ethan Furman


Change by Ethan Furman :


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



[issue41681] f-string error description seems wrong

2020-08-31 Thread Hanish


Change by Hanish :


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

___
Python tracker 

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



[issue41400] Remove references to nonexisting __ne__ methods

2020-08-31 Thread Facundo Batista


Facundo Batista  added the comment:

>From a "consumer" POV, it's totally useful to see that `__ne__` is part of 
>what Set (and others) provides, even if it's implemented in the Set class 
>itself or wherever.

So +1 to leave it like it's currently is.

--
nosy: +facundobatista

___
Python tracker 

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



[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-08-31 Thread Yury Selivanov


Yury Selivanov  added the comment:


New changeset ea5a6363c3f8cc90b7c0cc573922b10f296073b6 by Ben Darnell in branch 
'master':
bpo-39010: Fix errors logged on proactor loop restart (#22017)
https://github.com/python/cpython/commit/ea5a6363c3f8cc90b7c0cc573922b10f296073b6


--

___
Python tracker 

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



[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-08-31 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21133
pull_request: https://github.com/python/cpython/pull/22035

___
Python tracker 

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



[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-08-31 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 11.0 -> 12.0
pull_requests: +21132
pull_request: https://github.com/python/cpython/pull/22034

___
Python tracker 

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



[issue41154] test_pkgutil:test_name_resolution fails on macOS HFS+ file systems

2020-08-31 Thread Brett Cannon


Brett Cannon  added the comment:

I think if we can craft a skip check that is targeted enough then that's our 
best solution, but barring that then skipping for all of macOS wouldn't be the 
end of the world (maybe a slightly less brute force is a macOS version check?).

--

___
Python tracker 

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



[issue26053] regression in pdb output between 2.7 and 3.5

2020-08-31 Thread Irit Katriel


Change by Irit Katriel :


--
components: +Library (Lib)
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6

___
Python tracker 

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



[issue26053] regression in pdb output between 2.7 and 3.5

2020-08-31 Thread Irit Katriel


Change by Irit Katriel :


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

___
Python tracker 

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



[issue26053] regression in pdb output between 2.7 and 3.5

2020-08-31 Thread Irit Katriel


Irit Katriel  added the comment:

The regression was introduced here: 
https://github.com/python/cpython/commit/e023091815e4946e42c1af102be1f258b2f47cb8

in main() it prints " ".join(sys.argv[1:]) instead of " ".join(args).  

In do_run (line 1029) sys.argv gets updated with the arg for that particular 
"run" command:   sys.argv = shlex.split(arg)

The quickest fix would be to change main back to print sys.argv rather than 
arg. But I'm a little uneasy with a program modifying sys.argv (I wouldn't do 
it). So I'm wondering if that should be changed. What do you think?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue35212] Expressions with format specifiers in f-strings give wrong code position in AST

2020-08-31 Thread Aaron Meurer


Aaron Meurer  added the comment:

The same thing occurs with specifiers like {a!r}.

--
nosy: +asmeurer

___
Python tracker 

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



[issue41681] f-string error description seems wrong

2020-08-31 Thread Eric V. Smith


Change by Eric V. Smith :


--
versions:  -Python 3.6, Python 3.7

___
Python tracker 

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



[issue41681] f-string error description seems wrong

2020-08-31 Thread Hanish


Hanish  added the comment:

Sure. Thanks for the quick response :)

Let me see if i can try to come up with something :)

--
versions: +Python 3.6, Python 3.7

___
Python tracker 

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



[issue41681] f-string error description seems wrong

2020-08-31 Thread Eric V. Smith


Eric V. Smith  added the comment:

It has to do with how the specification for the mini-language is parsed and how 
the defaults work. It could probably be fixed, but I'm personally not super 
motivated to track it down. But I'd look at a patch!

I'm going to remove versions that we wouldn't backport this to.

--
versions:  -Python 3.6, Python 3.7

___
Python tracker 

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



[issue41681] f-string error description seems wrong

2020-08-31 Thread Hanish


New submission from Hanish :

There seems to an error in the `f-string` error description when one do:


>>> f'{1:,,}'
Traceback (most recent call last):
  File "", line 1, in 
ValueError: Cannot specify both ',' and '_'.
>>> 

The error seems to be that, i am not specifying both ',' and '_', but it does 
seem to think so.

This also seems to be happening for `str.format`:

>>> '{:,,}'.format(1)
Traceback (most recent call last):
  File "", line 1, in 
ValueError: Cannot specify both ',' and '_'.


So i was just wondering if this is an issue worth raising :)


Thank you

--
components: Interpreter Core
messages: 376160
nosy: eric.smith, han-solo
priority: normal
severity: normal
status: open
title: f-string error description seems wrong
type: enhancement
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue41513] High accuracy math.hypot()

2020-08-31 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +21130
pull_request: https://github.com/python/cpython/pull/22032

___
Python tracker 

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



[issue41680] Turtles in Python 3.8.5 crashes OSX 10.14.6

2020-08-31 Thread Weyl


Change by Weyl :


--
type:  -> crash

___
Python tracker 

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



[issue41680] Turtles in Python 3.8.5 crashes OSX 10.14.6

2020-08-31 Thread Weyl


New submission from Weyl :

The following python sequence will crash OSX 10.14.6 and Python 3.8

import turtle
theScreen=turtle.Screen()
mertle=turtle.Turtle()

--
components: macOS
messages: 376159
nosy: dulcimoo, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Turtles in Python 3.8.5 crashes OSX 10.14.6
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



[issue36318] Adding support for setting the "disabled" attribute of loggers from logging.config.dictConfig

2020-08-31 Thread Piotr Dobrogost


Change by Piotr Dobrogost :


--
nosy: +piotr.dobrogost

___
Python tracker 

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



[issue41679] Deprecation warning due to invalid escape sequences in Doc/tools/extensions/peg_highlight.py

2020-08-31 Thread Karthikeyan Singaravelan


New submission from Karthikeyan Singaravelan :

Following warnings are caused in Doc/tools/extensions/peg_highlight.py . These 
warnings show up during doc builds since the extension is used in the build. 
This is an easy issue to fix.

./python -Wall -m py_compile /root/cpython/Doc/tools/extensions/peg_highlight.py
/root/cpython/Doc/tools/extensions/peg_highlight.py:62: DeprecationWarning: 
invalid escape sequence \s
  r"^\s*" + _name + "\s*" + "(\[.*\])?" + "\s*" + "(\(.+\))?" + "\s*(:)",
/root/cpython/Doc/tools/extensions/peg_highlight.py:62: DeprecationWarning: 
invalid escape sequence \[
  r"^\s*" + _name + "\s*" + "(\[.*\])?" + "\s*" + "(\(.+\))?" + "\s*(:)",
/root/cpython/Doc/tools/extensions/peg_highlight.py:62: DeprecationWarning: 
invalid escape sequence \s
  r"^\s*" + _name + "\s*" + "(\[.*\])?" + "\s*" + "(\(.+\))?" + "\s*(:)",
/root/cpython/Doc/tools/extensions/peg_highlight.py:62: DeprecationWarning: 
invalid escape sequence \(
  r"^\s*" + _name + "\s*" + "(\[.*\])?" + "\s*" + "(\(.+\))?" + "\s*(:)",
/root/cpython/Doc/tools/extensions/peg_highlight.py:62: DeprecationWarning: 
invalid escape sequence \s
  r"^\s*" + _name + "\s*" + "(\[.*\])?" + "\s*" + "(\(.+\))?" + "\s*(:)",

--
components: Build
messages: 376158
nosy: pablogsal, xtreak
priority: normal
severity: normal
status: open
title: Deprecation warning due to invalid escape sequences in 
Doc/tools/extensions/peg_highlight.py
type: behavior
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



[issue41678] File-level, optionally external sorting

2020-08-31 Thread Platon workaccount


New submission from Platon workaccount :

Feature request: a convenient sorter of whole files with the possibility of 
disk usage. Here's the syntax in my mind:

shutil.sort(src, dst, headers=0, key=None, reverse=False, allow_disk_use=False)

--
messages: 376157
nosy: platon.work
priority: normal
severity: normal
status: open
title: File-level, optionally external sorting
type: enhancement
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



[issue41677] os.access() doesn't recognize lack of permissions on an SMB mountpoint

2020-08-31 Thread Michael Pelletier


New submission from Michael Pelletier :

This emerged during a fault in a fileserver mounted on a Linux machine via a 
Samba client mount. The access to the mountpoint was being blocked by the 
fileserver, but os.access() wasn't able to recognize it as unreadable:

>>> os.access('/opt/xray', os.R_OK)
True
>>> s = os.stat('/opt/xray')
Traceback (most recent call last):
  File "", line 1, in 
PermissionError: [Errno 13] Permission denied: '/opt/xray'
>>>

Python version is 3.6.8.

--
components: IO
messages: 376156
nosy: mvpel
priority: normal
severity: normal
status: open
title: os.access() doesn't recognize lack of permissions on an SMB mountpoint
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



[issue33997] multiprocessing Pool hangs in terminate()

2020-08-31 Thread Paul Madden


Change by Paul Madden :


--
nosy: +paul.madden

___
Python tracker 

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



[issue41676] asyncio.Event.wait broken link from asyncio.Event

2020-08-31 Thread Thomas Grainger


Change by Thomas Grainger :


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

___
Python tracker 

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



[issue41676] asyncio.Event.wait broken link from asyncio.Event

2020-08-31 Thread Ben


Ben  added the comment:

looking at the source 
https://raw.githubusercontent.com/python/cpython/3.8/Doc/library/asyncio-sync.rst
  it says :meth:`wait`  just like the surrounding methods and surrounding 
types, which all work. 

Maybe :meth:`Event.wait` would fix?   But why :meth:`wait` didn't work is not 
obvious to me?

--

___
Python tracker 

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



[issue41676] asyncio.Event.wait broken link from asyncio.Event

2020-08-31 Thread Ben


Change by Ben :


--
nosy: +bjs, vstinner

___
Python tracker 

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



[issue41676] asyncio.Event.wait broken link from asyncio.Event

2020-08-31 Thread STINNER Victor


STINNER Victor  added the comment:

Do you want to propose a documentation fix?

--
nosy: +vstinner

___
Python tracker 

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



[issue41676] asyncio.Event.wait broken link from asyncio.Event

2020-08-31 Thread Thomas Grainger


New submission from Thomas Grainger :

https://docs.python.org/dev/library/asyncio-sync.html#asyncio.Event links to 
https://docs.python.org/dev/library/asyncio-task.html#asyncio.wait instead of 
https://docs.python.org/dev/library/asyncio-sync.html#asyncio.Event.wait

--
assignee: docs@python
components: Documentation
messages: 376153
nosy: docs@python, graingert
priority: normal
severity: normal
status: open
title: asyncio.Event.wait broken link from asyncio.Event
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

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



[issue41675] Modernize siginterrupt calls

2020-08-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue41675] Modernize siginterrupt calls

2020-08-31 Thread Pablo Galindo Salgado

New submission from Pablo Galindo Salgado :

siginterrupt is deprecated:

./Modules/signalmodule.c:667:5: warning: ‘siginterrupt’ is deprecated: Use 
sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  667 | if (siginterrupt(signalnum, flag)<0) {

--
messages: 376152
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Modernize siginterrupt calls
versions: Python 3.10, 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



[issue41675] Modernize siginterrupt calls

2020-08-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue41674] Doc tests failing for many PRs on GitHub

2020-08-31 Thread Emmanuel Arias


New submission from Emmanuel Arias :

Hi, 

This issue was reported by Mark Shannon on Python-dev mailing list

Seems that there's an issue on doc build on Github pipeline

https://github.com/python/cpython/pull/22026/checks?check_run_id=1050881634
https://github.com/python/cpython/pull/22025/checks?check_run_id=1050403463

--
messages: 376151
nosy: eamanu
priority: normal
severity: normal
status: open
title: Doc tests failing for many PRs on GitHub
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



[issue2506] Add mechanism to disable optimizations

2020-08-31 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +21127
pull_request: https://github.com/python/cpython/pull/22027

___
Python tracker 

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



[issue41673] Result of multiprocessing.heap.BufferWrapper.create_memoryview can point to freed memory

2020-08-31 Thread Eric Wieser


Eric Wieser  added the comment:

Whoops, typo. `>>> b[0]` should read `m[0]`.

--

___
Python tracker 

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



[issue41673] Result of multiprocessing.heap.BufferWrapper.create_memoryview can point to freed memory

2020-08-31 Thread Eric Wieser


New submission from Eric Wieser :

The full definition of `multiprocessing.heap.BufferWrapper` is:

class BufferWrapper(object):

_heap = Heap()

def __init__(self, size):
if size < 0:
raise ValueError("Size {0:n} out of range".format(size))
if sys.maxsize <= size:
raise OverflowError("Size {0:n} too large".format(size))
block = BufferWrapper._heap.malloc(size)
self._state = (block, size)
util.Finalize(self, BufferWrapper._heap.free, args=(block,))

def create_memoryview(self):
(arena, start, stop), size = self._state
return memoryview(arena.buffer)[start:start+size]


But this means that a `memoryview` can be constructed that point to free'd 
"memory",


>>> b = BufferWrapper(10)
>>> m = b.create_memoryview()
>>> del b  # free is called
>>> b[0]  # making this invalid

It would be better if `m` would keep a reference to `b` so that it remains 
alive.
`RawArray` works around this by placing a reference to `b` in 
`ctypes_obj._wrapper`, but this results in `b` being lost again if `m2 = 
memoryview(ctypes_obj); del ctypes_obj` is used.

--
components: Library (Lib), ctypes
messages: 376149
nosy: Eric Wieser
priority: normal
severity: normal
status: open
title: Result of multiprocessing.heap.BufferWrapper.create_memoryview can point 
to freed memory
versions: Python 3.10, Python 3.9

___
Python tracker 

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



[issue41668] Expose eventfd for high-performance event notifier in Linux

2020-08-31 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Indeed it is. CLosing in favour of bpo-41001

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



[issue2506] Add mechanism to disable optimizations

2020-08-31 Thread Ned Batchelder


Ned Batchelder  added the comment:

If there is any doubt that this affects people, it was reported *again* against 
coverage.py today: https://github.com/nedbat/coveragepy/issues/1025

--

___
Python tracker 

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



[issue41670] ceval traces code differently with USE_COMPUTED_GOTOS

2020-08-31 Thread Mark Shannon


Change by Mark Shannon :


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

___
Python tracker 

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



[issue41670] ceval traces code differently with USE_COMPUTED_GOTOS

2020-08-31 Thread Mark Shannon


Mark Shannon  added the comment:

A couple of things to fix here.

Firstly, the PREDICTion of POP_BLOCK in FOR_ITER shouldn't be there. POP_BLOCK 
doesn't normally occur after a loop and hasn't since we removed "pseudo 
exceptions" from the interpreter a couple of years ago.

Secondly, there is the issue of PREDICTs skipping tracing.
Either we can make sure that no PREDICTs cross a line boundary, which seems 
error prone, or we add the check for tracing into the PREDICT macro, which 
seems more robust.

--

___
Python tracker 

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



[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2020-08-31 Thread Zackery Spytz


Zackery Spytz  added the comment:

Python 2.7 is no longer supported, so I think this issue should be closed.

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue39671] Mention in docs that asyncio.FIRST_COMPLETED does not guarantee the completion of no more than one task

2020-08-31 Thread Erik Bray


Change by Erik Bray :


--
keywords: +patch
nosy: +erik.bray
nosy_count: 4.0 -> 5.0
pull_requests: +21125
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/21918

___
Python tracker 

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



[issue41668] Expose eventfd for high-performance event notifier in Linux

2020-08-31 Thread Zackery Spytz


Zackery Spytz  added the comment:

I think this is a duplicate of bpo-41001.

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue41672] imaplib: wrong return type documented

2020-08-31 Thread Norbert Cyran

New submission from Norbert Cyran :

Documentation on IMAP4 class specifies wrong return type of its commands:

Each command returns a tuple: (type, [data, ...]) where type is 
usually 'OK' or 'NO', and data is either the text from the command 
response, or mandated results from the command. Each data is either a 
string, or a tuple. If a tuple, then the first part is the header of 
the response, and the second part contains the data (ie: ‘literal’ 
value).

That's not valid for Python 3, as IMAP4 commands return bytes-like objects in 
data, what's shown in the example before::
  >>> from imaplib import IMAP4
  >>> with IMAP4("domain.org") as M:
  ... M.noop()
  ...
  ('OK', [b'Nothing Accomplished. d25if65hy903weo.87'])

That of course can cause a lot of trouble due to incompatibility of strings and 
bytes. Suggested change is to replace string occurences to bytes-like object. I 
don't know what types are returned in case when tuple is returned though.

--
assignee: docs@python
components: Documentation
messages: 376143
nosy: docs@python, norbertcyran
priority: normal
severity: normal
status: open
title: imaplib: wrong return type documented
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

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



[issue14611] inspect.getargs fails on some anonymous tuples

2020-08-31 Thread Dong-hee Na


Change by Dong-hee Na :


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



[issue41627] Relocate user site packages on Windows 32-bit

2020-08-31 Thread Dong-hee Na


Dong-hee Na  added the comment:

> We should switch the pattern to Python{sys.winver}, which is XY or XY-32, the 
> same as elsewhere.

+1

--
nosy: +corona10

___
Python tracker 

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



[issue40486] pathlib's iterdir doesn't specify what happens if directory content change

2020-08-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue41154] test_pkgutil:test_name_resolution fails on macOS HFS+ file systems

2020-08-31 Thread Ned Deily


Ned Deily  added the comment:

> I wonder if it's a problem from Unicode representation

That does seem to be the issue. In particular, there are differences in Unicode 
representation between file names on traditional HFS+ versus the newer APFS. 
APFS is the default for system file systems as of macOS 10.13; unlike HFS+, 
APFS is by default file name normalization insensitive. By creating two disk 
image files systems on a current macOS system, it's easy to demonstrate that 
test_name_resolution passes on APFS but fails on HFS+.  So the question becomes 
what to do about the test.  Without digging into it further, I suppose we could 
add something to test whether the file system where test temp files are created 
is normalization insensitive and, if so, skip. Or use brute force and always 
skip on macOS. In any case, while annoying, it probably doesn't need to be a 
"deferred blocker".

--
priority: deferred blocker -> critical
title: test_pkgutil:test_name_resolution fails on some platforms -> 
test_pkgutil:test_name_resolution fails on macOS HFS+ file systems

___
Python tracker 

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