[issue26552] Failing ensure_future still creates a Task

2021-11-29 Thread Guido van Rossum
Change by Guido van Rossum : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue23819] test_asyncio fails when run under -O

2021-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: I'd be happy to mentor someone who wants to tackle this. -- keywords: +easy ___ Python tracker ___

[issue43905] dataclasses.astuple (and .asdict) do deepcopy on all fields

2021-11-29 Thread miss-islington
miss-islington added the comment: New changeset 376b24e4f69cba53bae9856e9d076af47bb2b6c6 by Miss Islington (bot) in branch '3.9': bpo-43905: Expand dataclasses.astuple() and asdict() docs (GH-26154) https://github.com/python/cpython/commit/376b24e4f69cba53bae9856e9d076af47bb2b6c6 --

[issue43905] dataclasses.astuple (and .asdict) do deepcopy on all fields

2021-11-29 Thread miss-islington
miss-islington added the comment: New changeset 32f1491a9770b7f2989507ecf8f13ef35dd95b0b by Miss Islington (bot) in branch '3.10': bpo-43905: Expand dataclasses.astuple() and asdict() docs (GH-26154) https://github.com/python/cpython/commit/32f1491a9770b7f2989507ecf8f13ef35dd95b0b -

[issue37699] Explicit mention of raised ValueError's after .detach() of underlying IO buffer

2021-11-29 Thread Irit Katriel
Irit Katriel added the comment: What is the advantage of making the doc more specific in this manner? If we do change the doc like this, we need to add unit test ensuring that this is the behaviour, and we need are committing cpython (and all other python implementations) to behave like this

[issue34820] binascii.c:1578:1: error: the control flow of function ‘binascii_crc32’ does not match its profile data (counter ‘arcs’)

2021-11-29 Thread James Gerity
James Gerity added the comment: The Makefile issue was fixed in bpo-37725 (GitHub: https://github.com/python/cpython/commit/c6bbcd258302b4b9b3d4f3c39bb5f7ff0120ec67), but the change wasn't ported to the 3.7, 3.8 branches. Those versions are now security-only, so this issue can probably just

[issue43905] dataclasses.astuple (and .asdict) do deepcopy on all fields

2021-11-29 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks, @andrei.avk! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue37699] Explicit mention of raised ValueError's after .detach() of underlying IO buffer

2021-11-29 Thread Brian Skinn
Brian Skinn added the comment: Indeed, I hadn't been thinking about the testing/maintenance burden to CPython or other implementations when I made the suggestion. I no longer have a strong opinion about this change, so I am happy to reject/close. -- resolution: -> rejected stage:

[issue43905] dataclasses.astuple (and .asdict) do deepcopy on all fields

2021-11-29 Thread Andrei Kulakov
Andrei Kulakov added the comment: Thank you for reviewing Eric! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue45917] Add math.exp2() function: 2^x

2021-11-29 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 6266e4af873a27c9d352115f2f7a1ad0885fc031 by Gideon in branch 'main': bpo-45917: Add math.exp2() method - return 2 raised to the power of x (GH-29829) https://github.com/python/cpython/commit/6266e4af873a27c9d352115f2f7a1ad0885fc031 --

[issue45917] Add math.exp2() function: 2^x

2021-11-29 Thread Mark Dickinson
Mark Dickinson added the comment: All done. Many thanks, Gideon! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue17005] Add a topological sort algorithm

2021-11-29 Thread Adrian Garcia Badaracco
Adrian Garcia Badaracco added the comment: As part of working on a tool that deals with dependencies, I was building my own topological sort. I iterated through various APIs (iterable of tasks, iterable of parallelizable groups of tasks, etc.) until I found the (now stdlib) version which end

[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread David Federman
New submission from David Federman : When building with Visual Studio 2017+, any Directory.Build.props/targets above the repo in the file structure (eg. in the parent repo when the python repo is a submodule) will be imported automatically. -- components: Build messages: 407320 nosy:

[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread David Federman
Change by David Federman : -- keywords: +patch pull_requests: +28082 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29854 ___ Python tracker ___ _

[issue45917] Add math.exp2() function: 2^x

2021-11-29 Thread Tim Peters
Tim Peters added the comment: Bad news: on Windows, exp2(x) is way worse then pow(2, x). Here I changed the loop of Mark's little driver like so: differ = really_bad = 0 worst = 0.0 for n in range(100_000): x = random.uniform(-1000.0, 999.0) + random.random() if ex

[issue45582] Rewrite getpath.c in Python

2021-11-29 Thread Steve Dower
Steve Dower added the comment: It's one data point (well, statistics over 1000 points), but it looks like it's actually a slight improvement in performance over the previous code on Windows :) before after min 23.103 22.154 25% 25.069 23.59925 50% 25.8125 24.2715 75% 26.65175 24.8

[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread Eric V. Smith
Change by Eric V. Smith : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ P

[issue45653] Freeze the encodings module.

2021-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 02b5ac6091ada0c2df99c4e1eae37ddccbcd91f0 by Kumar Aditya in branch 'main': bpo-45653: fix test_embed on windows (GH-29814) https://github.com/python/cpython/commit/02b5ac6091ada0c2df99c4e1eae37ddccbcd91f0 -- nosy: +gvanrossum __

[issue45675] pkgutil.get_data() doesn't add subpackages to parent packages when importing

2021-11-29 Thread Matt Wozniski
Matt Wozniski added the comment: I wondered if it would be backwards compatible to make `pkgutil.get_data()` delegate to `importlib.resources.read_binary()`. It isn't, because `pkgutil.get_data()` accepts a relative path for the resource, and `importlib.resources.read_binary()` accepts only

[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread Steve Dower
Steve Dower added the comment: Nice catch, thanks! Did you start the CLA process already? (I personally would exempt this PR from it as "not sufficiently creative", but I'm not sure I'm allowed to do that anymore...) -- ___ Python tracker

[issue45582] Rewrite getpath.c in Python

2021-11-29 Thread Steve Dower
Steve Dower added the comment: Basically unchanged on Debian/WSL as well. There's a new conflict arisen, so I'll resolve that and then merge. -- ___ Python tracker ___ __

[issue45451] IDLE Shell GUI - remove window border

2021-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I request that this entire new feature be reverted. Having used it in classroom environment, it has been a catastrophe for teaching and is a significant regression in usability. Here are my notes so far: 1) As the OP says, this strong vertical line is v

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2021-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I recommend not adding support for negative indexing to format() for accessing positional arguments. There is almost no reason to do this because it almost always makes the format string less readable, because the number of arguments is always known in a

[issue45932] EmailMessage incorrectly splits reply-to header

2021-11-29 Thread Alexander Mohr
New submission from Alexander Mohr : If you have a reply-to list that contains a name with a comma it must be quoted, however if the line length is just right python with split the name incorrectly and not keep the quote. Note that the CC line keeps the quote in the name but the reply-to doe

[issue45933] Illegal Instrution (Core Dumped)

2021-11-29 Thread Tom E
New submission from Tom E : When compiling CPython 3.10 on Ubuntu 22.04, with GCC 11.2.0, it compiles successfully, but when trying to run it it just gives Illegal Instrution (Core Dumped). But when I build 3.9.9 its just fine... CPU is Intel Core i5-10400. -- messages: 407330 nosy: g

[issue45451] IDLE Shell GUI - remove window border

2021-11-29 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue45932] EmailMessage incorrectly splits name and address header

2021-11-29 Thread Alexander Mohr
Change by Alexander Mohr : -- title: EmailMessage incorrectly splits reply-to header -> EmailMessage incorrectly splits name and address header ___ Python tracker ___

[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +28084 pull_request: https://github.com/python/cpython/pull/29856 ___ Python tracker ___ __

[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +28083 pull_request: https://github.com/python/cpython/pull/29855 ___ Python tracker _

[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread Steve Dower
Steve Dower added the comment: New changeset 734ed3538314c9651ae64d5e2e0e98aae3aec17b by David Federman in branch 'main': bpo-45931: Prevent Directory.Build.props/targets from leaking from directories above the repo when building on Windows (GH-29854) https://github.com/python/cpython/commit

[issue45934] python curses newterm implementation

2021-11-29 Thread NIKOLA DRAGANIC
Change by NIKOLA DRAGANIC : -- components: C API, Windows nosy: draganic1, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: python curses newterm implementation type: enhancement versions: Python 3.10, Python 3.11, Python 3.6, Python 3

[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread Steve Dower
Steve Dower added the comment: Looks like it's gone through. Thanks! -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker

[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread miss-islington
miss-islington added the comment: New changeset 5a6d9ed700ecc6984387e0533b11d81692c40469 by Miss Islington (bot) in branch '3.10': bpo-45931: Prevent Directory.Build.props/targets from leaking from directories above the repo when building on Windows (GH-29854) https://github.com/python/cpyth

[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread miss-islington
miss-islington added the comment: New changeset b91805ec0283f0642aa3311ec617c8596f65b7b4 by Miss Islington (bot) in branch '3.9': bpo-45931: Prevent Directory.Build.props/targets from leaking from directories above the repo when building on Windows (GH-29854) https://github.com/python/cpytho

[issue45935] Add test for Issue11109: socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass.

2021-11-29 Thread Irit Katriel
New submission from Irit Katriel : As mentioned in https://bugs.python.org/issue11109#msg136869, test_socketserver needs to be updated to serve as a regression test for Issue11109. -- components: Tests messages: 407335 nosy: giampaolo.rodola, gregory.p.smith, iritkatriel, jwarkentin, o

[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass

2021-11-29 Thread Irit Katriel
Irit Katriel added the comment: I've created Issue45935 for the missing test and will close this as resolved in version 3.3. -- nosy: +iritkatriel status: open -> closed ___ Python tracker _

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2021-11-29 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: Traceback (most recent call last): File "/Users/iritkatriel/src/cpython-1/Lib/encodings/idna.py", line 165, in encode raise UnicodeError("label empty or too long") ^ UnicodeError: label e

[issue13236] unittest needs more flush calls

2021-11-29 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.11 -Python 2.7, Python 3.2 ___ Python tracker ___ ___

[issue22859] unittest.TestProgram.usageExit no longer invoked

2021-11-29 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.11 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue23056] tarfile raises an exception when reading an empty tar in streaming mode

2021-11-29 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker _

[issue23717] strptime() with year-weekday pair can produce invalid data

2021-11-29 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker _

[issue23217] help() function incorrectly captures comment preceding a nested function

2021-11-29 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.2, Python 3.3, Python 3.5 ___ Python tracker _

[issue45451] IDLE - modify text frame and widget borders

2021-11-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue applies to both Shell, with the prompt sidebar, and editor windows, with line number sidebars. I looked carefully at Windows Notepad++ editor tabs. They have a tab border, separate from the window border, that encompasses the line numbers, text,

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-11-29 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue22656] `help` ignores `__doc__` of descriptors

2021-11-29 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce the problem on 3.11 (on a Mac). I get both help messages from Ram's code. -- nosy: +iritkatriel ___ Python tracker __

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-11-29 Thread Andrei Kulakov
Andrei Kulakov added the comment: Closing by request of OP. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-11-29 Thread Dennis Sweeney
Dennis Sweeney added the comment: I think the PR fixed one case, but the other case (when coro is kept around) still fails an assertion: Python 3.11.0a2+ (heads/main:734ed35383, Nov 29 2021, 19:29:25) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for m

[issue45896] Conflicting statements in docs about default support for asyncio subprocesses on Windows

2021-11-29 Thread Rob
Change by Rob : -- keywords: +patch pull_requests: +28085 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29857 ___ Python tracker ___

[issue44413] OverflowError: mktime argument out of range after 2019

2021-11-29 Thread Andrei Kulakov
Andrei Kulakov added the comment: Cannot reproduce with 3.8.6 on MacOS. The code runs without any errors. As OP hasn't responded in 4 months I think we should close as "works for me". -- nosy: +andrei.avk ___ Python tracker

[issue44413] OverflowError: mktime argument out of range after 2019

2021-11-29 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue22656] `help` ignores `__doc__` of descriptors

2021-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: This was fixed long ago in commit ac4bdcc80e986bdd5b9d10ab0bce35aabb790a3e The code is in inspect.py::_finddoc(). See issue 25503. -- nosy: +rhettinger resolution: -> out of date stage: patch review -> resolved status: open -> closed ___

[issue45936] collections.Counter drops key if value is 0 and updating using += operator

2021-11-29 Thread Richard Decal
New submission from Richard Decal : In brief: ``` from collections import Counter x = Counter({'a': 0, 'b': 1}) x.update(x) # works: Counter({'a': 0, 'b': 2}) x += x # expected: Counter({'a': 0, 'b': 3}) actual: Counter({'b': 3}) ``` I expect `+=` and `.update()` to be synonymous. However, t

[issue45936] collections.Counter drops key if value is 0 and updating using += operator

2021-11-29 Thread Dennis Sweeney
Dennis Sweeney added the comment: This is consistent with the docstrings of the methods: - >>> help(Counter.__iadd__) Help on function __iadd__ in module collections: __iadd__(self, other) Inplace add from another counter

[issue45937] Pdb can't use the commands through -c or .pdbrc files

2021-11-29 Thread Hozoy
New submission from Hozoy : I have a python file: def do_something(): pass def main(): a = 1 b = 2 c = a+b print(f"c:{c}") pass if __name__ == '__main__': main() I run this command: python -m pdb -c "b 5" -c "commands 1;;do_something();;end" -c "c" main.py It do

[issue45936] collections.Counter drops key if value is 0 and updating using += operator

2021-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think there is a need to list the inplace methods. They were put in to optimize what was already occurring when only the __add__ method was defined. Also, other container typically don't specifically call out the inplace methods. -- nosy

[issue45936] collections.Counter drops key if value is 0 and updating using += operator

2021-11-29 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue45917] Add math.exp2() function: 2^x

2021-11-29 Thread Tim Peters
Tim Peters added the comment: Across millions of tries, same thing: Windows exp2 is off by at least 1 ulp over a third of the time, and by over 2 ulp about 3 times per million. Still haven't seen pow(2, x) off by as much as 0.52 ulp. >From its behavior, it appears Windows implements exp2(x)

[issue33381] [doc] Incorrect documentation for strftime()/strptime() format code %f

2021-11-29 Thread Vishal Pandey
Vishal Pandey added the comment: I have made a PR into the repository, can anyone please review and merge it. -- ___ Python tracker ___ ___

[issue44413] OverflowError: mktime argument out of range after 2019

2021-11-29 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue45929] extend json.tool --json-lines to ignore empty rows

2021-11-29 Thread Vito De Tullio
Change by Vito De Tullio : -- keywords: +patch pull_requests: +28086 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29858 ___ Python tracker ___ _

[issue45842] AddressSanitizer: bad-free - hello world c extension

2021-11-29 Thread Francesc Elies
Francesc Elies added the comment: I am closing this one, bad-free is in this case a false positive. Starting python and loading a dll which was linked with asan is incorrect. One should asan-rt as earyly as possible, in order to do that in linux one should use LD_PRELOAD but in windows it's

<    1   2