[issue41045] f-string's "debug" feature is undocumented

2020-07-22 Thread Guido van Rossum
Guido van Rossum added the comment: I've reviewed your first PR (#21509). Regarding your second one, I think there's a misunderstanding. With "pydoc" I didn't mean "the Python docs". IMO the documentation of f-strings in the language reference is sufficient, there's no need for another

[issue41373] IDLE: edit/save files created by Windows Explorer

2020-07-22 Thread Terry J. Reedy
New submission from Terry J. Reedy : #41300 fixed one bug in the patch for #41158. A user reported another on on idle-dev list. Create a file in Windows Explorer. Leave as .txt or rename to .py. Right click and Edit with IDLE 3.8 (.4/.5 or 3.9.0b4 or 5). Edit works, Save (or Run) does

[issue41182] DefaultSelector fails to detect selector on VMware ESXi

2020-07-22 Thread miss-islington
miss-islington added the comment: New changeset bcd47837a9bf4806e559b40df73869493efcce27 by Abhijeet Kasurde in branch 'master': bpo-41182 selector: use DefaultSelector based upon implementation (GH-21257) https://github.com/python/cpython/commit/bcd47837a9bf4806e559b40df73869493efcce27

[issue41371] test_zoneinfo fails

2020-07-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41357] pathlib.Path.resolve incorrect os.path equivalent

2020-07-22 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- keywords: +patch pull_requests: +20735 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21596 ___ Python tracker

[issue12423] signal handler doesn't handle SIGABRT from os.abort

2020-07-22 Thread Howard A. Landman
Howard A. Landman added the comment: I don't think changing the documentation makes this not be a bug. My situation: I have a Python 3.7.3 program that reliably dies (after about 13 hours, having called its measure() method between 118.6M and 118.7M times) with free(): invalid pointer,

[issue41265] lzma/bz2 module: inefficient buffer growth algorithm

2020-07-22 Thread Ma Lin
Ma Lin added the comment: I'm working on a patch. lzma decompressing speed increases: baseline: 0.275722 sec patched: 0.140405 sec (Uncompressed data size 52.57 MB) The new algorithm looks like this: #define INITIAL_BUFFER_SIZE (16*1024) static inline Py_ssize_t

[issue41372] Log exception never retrieved in concurrent.futures

2020-07-22 Thread Bar Harel
Change by Bar Harel : -- nosy: +bquinlan, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41357] pathlib.Path.resolve incorrect os.path equivalent

2020-07-22 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: I uploaded a script illustrating the differences between how Path.resolve(), os.path.abspath(), and os.path.realpath() handle symlinks. As noted by Jendrik, Path.resolve() and os.path.realpath() both resolve symlinks, while os.path.abspath() does not.

[issue41372] Log exception never retrieved in concurrent.futures

2020-07-22 Thread Bar Harel
New submission from Bar Harel : Asyncio has an amazing mechanism showing "Task exception was never retrieved" or "Future exception was never retrieved" if the task threw an exception, and no one checked its `.result()` or `.exception()`. It does so by setting a private variable named

[issue41317] sock_accept() does not remove server socket reader on cancellation

2020-07-22 Thread Alex Grönholm
Change by Alex Grönholm : -- keywords: +patch pull_requests: +20734 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21595 ___ Python tracker ___

[issue41371] test_zoneinfo fails

2020-07-22 Thread doodspav
doodspav added the comment: Note: = I marked the type as `crash` because during the test run, the first attempt at `test_zoneinfo` failed with a segfault -- ___ Python tracker

[issue4630] IDLE: add cursor noblink option

2020-07-22 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +20733 pull_request: https://github.com/python/cpython/pull/21594 ___ Python tracker ___

[issue41317] sock_accept() does not remove server socket reader on cancellation

2020-07-22 Thread Alex Grönholm
Alex Grönholm added the comment: Looks like they do – fantastic! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41357] pathlib.Path.resolve incorrect os.path equivalent

2020-07-22 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41317] sock_accept() does not remove server socket reader on cancellation

2020-07-22 Thread Alex Grönholm
Alex Grönholm added the comment: Sure, it should be a rather straightforward fix. I have to check if the tests for the related methods test for proper cancellation semantics. It should be even faster if they do. -- ___ Python tracker

[issue41317] sock_accept() does not remove server socket reader on cancellation

2020-07-22 Thread Yury Selivanov
Yury Selivanov added the comment: Alex, do you want to submit a PR? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41370] PEP 585 and ForwardRef

2020-07-22 Thread Joseph Perez
Joseph Perez added the comment: However, PEP 563 will not solve the recursive type alias issue like `A = list["A"]` but this is a minor concern. -- ___ Python tracker ___

[issue33129] Add kwarg-only option to dataclass

2020-07-22 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33129] Add kwarg-only option to dataclass

2020-07-22 Thread Prakhar Goel
Prakhar Goel added the comment: Hi, As another piece of evidence: I run into this problem _all the time_. Whenever I need a field in the parent with a default, I either need to add bogus default values for every field in every subclass or just skip the default in the parent. I'd like to

[issue41370] PEP 585 and ForwardRef

2020-07-22 Thread Guido van Rossum
Guido van Rossum added the comment: I think mentioning this in the docs is the best we can do in 3.9, and for 3.10 the point will be moot. The next release is release candidate 1, so we're well past the point where we can implement new functionality. --

[issue41371] test_zoneinfo fails

2020-07-22 Thread doodspav
New submission from doodspav : Issue: == `_lzma` is not built because the required libraries are not available on my machine. `test_zoneinfo` assumes it is always available, leading it to crash on my machine. How I build and ran the tests: == git clone

[issue41370] PEP 585 and ForwardRef

2020-07-22 Thread Joseph Perez
New submission from Joseph Perez : PEP 585 current implementation (3.10.0a0) differs from current Generic implementation about ForwardRef, as illustrated bellow: ```python from dataclasses import dataclass, field from typing import get_type_hints, List, ForwardRef @dataclass class Node:

[issue41341] Recursive evaluation of ForwardRef (and PEP 563)

2020-07-22 Thread Guido van Rossum
Guido van Rossum added the comment: Łukasz, can I please have a decision on whether to backport this bugfix to 3.9? See my comment about that: https://github.com/python/cpython/pull/21553#pullrequestreview-452895735 -- ___ Python tracker

[issue41369] Update to libmpdec-2.5.1

2020-07-22 Thread Stefan Krah
Stefan Krah added the comment: New changeset 9b9f1582753979f38d2fd927cddf0621a65e9ed6 by Stefan Krah in branch 'master': bpo-41369 Update to libmpdec-2.5.1: new features (GH-21593) https://github.com/python/cpython/commit/9b9f1582753979f38d2fd927cddf0621a65e9ed6 --

[issue41341] Recursive evaluation of ForwardRef (and PEP 563)

2020-07-22 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 653f420b53a3aa87316cef59de8d3f5d9e11deb4 by wyfo in branch 'master': bpo-41341: Recursive evaluation of ForwardRef in get_type_hints (#21553) https://github.com/python/cpython/commit/653f420b53a3aa87316cef59de8d3f5d9e11deb4 --

[issue41369] Update to libmpdec-2.5.1

2020-07-22 Thread Stefan Krah
Change by Stefan Krah : -- keywords: +patch pull_requests: +20732 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21593 ___ Python tracker ___

[issue41369] Update to libmpdec-2.5.1

2020-07-22 Thread Stefan Krah
New submission from Stefan Krah : This issue tracks the update of the included libmpdec to version 2.5.1. The version includes features required for #41324. -- assignee: skrah components: Extension Modules messages: 374101 nosy: skrah priority: normal severity: normal status: open

[issue41368] Allow compiling Python with llvm-clang on Windows.

2020-07-22 Thread William Pickard
William Pickard added the comment: Note: Apparently Google-OpenID login button created a seperate account... instead of finding this one. -- nosy: +WildCard65 -William Pickard ___ Python tracker

[issue41368] Allow compiling Python with llvm-clang on Windows.

2020-07-22 Thread William Pickard
New submission from William Pickard : Since Visual Studio 2017, Microsoft has an optional C++ Desktop Development option for compiling C/C++ code with LLVM's Clang compiler. It's called: Clang with Microsoft CodeGen. While the code is parsed with LLVM's Clang parser, the code is generated

[issue41365] Python Launcher is sorry to say... No pyvenv.cfg file

2020-07-22 Thread Eryk Sun
Eryk Sun added the comment: > "Python Launcher is sorry to say... No pyvenv.cfg file" As already mentioned, that it fails with this error means you're running a virtual-environment launcher instead of a base Python executable. That it displays a message box means you ran a GUI pythonw.exe

[issue41100] Build failure on macOS 11 (beta)

2020-07-22 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41365] Python Launcher is sorry to say... No pyvenv.cfg file

2020-07-22 Thread Chuck
Chuck added the comment: Does anyone know why when Python Launcher is executed by double clicking on the Python script called ecrypt_bitcoinj_seed.pyw a small window pops of stating... "Python Launcher is sorry to say... No pyvenv.cfg file" as in the image? Why wouldn't the pyvenv.cfg file

[issue37095] [Feature Request]: Add zstd support in tarfile

2020-07-22 Thread Wicher Minnaard
Change by Wicher Minnaard : -- nosy: +wicher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39603] [security] http.client: HTTP Header Injection in the HTTP method

2020-07-22 Thread Guido van Rossum
Guido van Rossum added the comment: > It should also include 0x20 (space) since that can also be used to manipulate > the request. Can you indicate how to use a space in the HTTP verb as part of an attack? -- ___ Python tracker

[issue41335] free(): invalid pointer in list_ass_item() in Python 3.7.3

2020-07-22 Thread Howard A. Landman
Howard A. Landman added the comment: This is not a memory leak problem. "Top" reports VIRT 21768 RES 13516 for the whole run, and Python internal resource reporting says 13564 kb for the whole run. So that's less than 1 kb leaked in 118.6M measurement cycles; most likely zero. --

[issue41365] Python Launcher is sorry to say... No pyvenv.cfg file

2020-07-22 Thread Chuck
Chuck added the comment: Mr. Dower, I apologize for not being more specific... since this is Windows based and not console driven, the file used for execution should be pythonw.exe according to the instructions at https://github.com/gurnec/decrypt_bitcoinj_seed so I right clicked on

[issue39603] [security] http.client: HTTP Header Injection in the HTTP method

2020-07-22 Thread Max
Max added the comment: I've just noticed an issue with the current version of the patch. It should also include 0x20 (space) since that can also be used to manipulate the request. -- ___ Python tracker

[issue41365] Python Launcher is sorry to say... No pyvenv.cfg file

2020-07-22 Thread Steve Dower
Steve Dower added the comment: It seems like you're trying to launch the python.exe that is created for a virtual environment rather than the actual one. This probably means that at some point you created a virtual environment and updated your file association to launch it. The best thing

[issue41364] Optimise uuid platform detection

2020-07-22 Thread Steve Dower
Steve Dower added the comment: New changeset a18f22ab11a7bfb5ff3e74c737ca9e1bebe4abf9 by Steve Dower in branch '3.8': bpo-41364: Reduce import overhead of uuid module (GH-21586) https://github.com/python/cpython/commit/a18f22ab11a7bfb5ff3e74c737ca9e1bebe4abf9 --

[issue41364] Optimise uuid platform detection

2020-07-22 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40979] typing module docs: keep text, add subsections

2020-07-22 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: FWIW I like Guido's suggestion in the PR, I would rather use "importance order" than alphabetical order. -- ___ Python tracker ___

[issue41367] Popen Timeout raised on 3.6 but not on 3.8

2020-07-22 Thread Joan Prat Rigol
New submission from Joan Prat Rigol : If I run this code in Python 3.8 I get the result as expected: Python 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import subprocess >>> process =

[issue41358] Unable to uninstall Python launcher using command line

2020-07-22 Thread Ned Deily
Change by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue41356] Convert bool.__new__ to argument clinic

2020-07-22 Thread Dennis Sweeney
Dennis Sweeney added the comment: More microbenchmarks: pyperf timeit "bool()" Before: 63.1 ns +- 0.7 ns After: 51.7 ns +- 1.2 ns pyperf timeit "bool(0)" Before: 77.4 ns +- 1.9 ns After: 67.2 ns +- 1.3 ns pyperf timeit "bool(17)" Before: 77.3 ns +- 2.3 ns After:

[issue41361] Converting collections.deque methods to Argument Clinic

2020-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think we should skip applying the clinic to the code. It jumbles the code quite a bit but doesn't give any real benefit. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___

[issue41361] Converting collections.deque methods to Argument Clinic

2020-07-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: