[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

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

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

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

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

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

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

[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

[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

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

[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

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

[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

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

[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

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

[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

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

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

[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

[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

[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

[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

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

[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

[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

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

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

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

[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

[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

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

[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 miss-islington
Change by miss-islington : -- pull_requests: +28084 pull_request: https://github.com/python/cpython/pull/29856 ___ Python tracker ___

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

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

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

[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

[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

[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

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

[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

[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

[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

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

[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

[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

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

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

[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

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

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

[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

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

[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

[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

[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

[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

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

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

[issue45924] Incorrect traceback when future's exception is raised multiple times

2021-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: There's a similar issue with concurrent.futures.Future, and really, anything that stores exceptions and later raises them can get in trouble if there's a way to get the exception raised multiple times. This is rarely noticed because usually the exception

[issue18531] Undocumented different between METH_KEYWORDS and **kws

2021-11-29 Thread Irit Katriel
Irit Katriel added the comment: This seems fixed in 3.11: >>> from collections import defaultdict >>> '{foo}{bar}'.format(**defaultdict(str)) Traceback (most recent call last): File "", line 1, in KeyError: 'foo' -- nosy: +iritkatriel status: open -> pending

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

2021-11-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +28081 pull_request: https://github.com/python/cpython/pull/29852 ___ 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 c1f93f0d378958dfae4f24aad0c0088e3e04e403 by andrei kulakov in branch 'main': bpo-43905: Expand dataclasses.astuple() and asdict() docs (GH-26154) https://github.com/python/cpython/commit/c1f93f0d378958dfae4f24aad0c0088e3e04e403 --

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

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

[issue45921] codecs module doesn't support iso-8859-6-i, iso-8859-6-e, iso-8859-8-i or iso-8859-8-i

2021-11-29 Thread Mark Sapiro
Mark Sapiro added the comment: The mailman-us...@python.org list received a post with the From: header containing a Hebrew display name RFC 2047 encoded with the iso-8859-8-i charset which threw a LookupError: unknown encoding: iso-8859-8-i exception in processing and shunted the message.

[issue45905] Provide a C API for introspectable frames for Cython and similar tools

2021-11-29 Thread da-woods
Change by da-woods : -- nosy: +da-woods ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44391] PC/launcher.c,one more argument than required

2021-11-29 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker ___

[issue44391] PC/launcher.c,one more argument than required

2021-11-29 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset af39cfa6ca1e5dc4e5d28c1f09a875a14354e4ae by Miss Islington (bot) in branch '3.10': [3.10] bpo-44391: Remove unused argument from a varargs call. (GH-29843) (GH-29849)

[issue19022] Improve handling of type.__abstractmethods__ descriptor

2021-11-29 Thread Irit Katriel
Change by Irit Katriel : -- components: +Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19022] Improve handling of type.__abstractmethods__ descriptor

2021-11-29 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue45930] Lambda function bug

2021-11-29 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue44391] PC/launcher.c,one more argument than required

2021-11-29 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 40a57532a5ad5dfd81ab6c72c5fb2e2dc4509199 by Miss Islington (bot) in branch '3.9': [3.9] bpo-44391: Remove unused argument from a varargs call. (GH-29843) (GH-29850) https://github.com/python/cpython/commit/40a57532a5ad5dfd81ab6c72c5fb2e2dc4509199

[issue44391] PC/launcher.c,one more argument than required

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

[issue44391] PC/launcher.c,one more argument than required

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

[issue44391] PC/launcher.c,one more argument than required

2021-11-29 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 4141d94fa608cdf5c8cd3e62f7ea1c27fd41eb8d by Vinay Sajip in branch 'main': bpo-44391: Remove unused argument from a varargs call. (GH-29843) https://github.com/python/cpython/commit/4141d94fa608cdf5c8cd3e62f7ea1c27fd41eb8d --

[issue45928] Set up file stream for redirecting GC logs

2021-11-29 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2021-11-29 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11, and the error message is a little weirder now: >>> "{0[-1]}".format('fox') Traceback (most recent call last): File "", line 1, in TypeError: string indices must be integers, not 'str' -- nosy: +iritkatriel versions: +Python 3.11

[issue45928] Set up file stream for redirecting GC logs

2021-11-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: There is another problem: PySys_WriteStderr is faster than your gc_log, which can potentially slow down heavy GC-based programs, even if the file descriptor is not used. -- ___ Python tracker

[issue45928] Set up file stream for redirecting GC logs

2021-11-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: There are several problems with this change: 1) The lifetime of the file descriptor. The file descriptor is borrowed, which normally will lead to not being properly cleaned upon failure or interpreter deallocation. 2) The statistics you are trying

[issue45928] Set up file stream for redirecting GC logs

2021-11-29 Thread penguin_wwy
penguin_wwy <940375...@qq.com> added the comment: Sorry, parameter type is `TextIOWrapper`, not `TestIOWrapper` -- ___ Python tracker ___

[issue23764] [doc] Reference inspect.Signature.bind from functools.wraps documentation

2021-11-29 Thread Irit Katriel
Change by Irit Katriel : -- title: Reference inspect.Signature.bind from functools.wraps documentation -> [doc] Reference inspect.Signature.bind from functools.wraps documentation versions: +Python 3.11 -Python 3.4, Python 3.5 ___ Python tracker

[issue45928] Set up file stream for redirecting GC logs

2021-11-29 Thread penguin_wwy
penguin_wwy <940375...@qq.com> added the comment: Thank you for the reminder. At first, I wanted to analyze the effectiveness of GC through logs. However, because GC through the stderr output, these logs are mixed in with other output(such as warnings). This make it difficult to handle them

[issue21915] [doc] telnetlib.Telnet constructor does not match telnetlib.Telnet.__init__ docstring

2021-11-29 Thread Irit Katriel
Change by Irit Katriel : -- title: telnetlib.Telnet constructor does not match telnetlib.Telnet.__init__ docstring -> [doc] telnetlib.Telnet constructor does not match telnetlib.Telnet.__init__ docstring type: -> enhancement versions: +Python 3.11 -Python 2.7, Python 3.4

[issue45930] Lambda function bug

2021-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is known behaviour due to binding. Please see https://docs.python.org/3/faq/programming.html#why-do-lambdas-defined-in-a-loop-with-different-values-all-return-the-same-result -- nosy: +xtreak ___

[issue26552] Failing ensure_future still creates a Task

2021-11-29 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3354] Improve error reporting for the argument parsing C API

2021-11-29 Thread Irit Katriel
Irit Katriel added the comment: Reproduced in 3.11: >>> sorted([1,2,3], reverse=None) Traceback (most recent call last): File "", line 1, in TypeError: 'NoneType' object cannot be interpreted as an integer -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.3

[issue26552] Failing ensure_future still creates a Task

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.5 ___ Python tracker ___

[issue45930] Lambda function bug

2021-11-29 Thread Valery Lovchikov
New submission from Valery Lovchikov : Python 3.9.7 (default, Sep 10 2021, 14:59:43) [GCC 11.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> f=[lambda x: y**x for y in [2,3]] >>> f[0](2) 9 >>> f[1](2) 9 = I expected 4 as a result of f[0](2),

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-29 Thread Christian Heimes
Christian Heimes added the comment: New changeset 992565f7f72fd8250b788795f76eedcff5636a64 by Christian Heimes in branch 'main': bpo-45881: configure --with-freeze-module --with-build-python (GH-29835) https://github.com/python/cpython/commit/992565f7f72fd8250b788795f76eedcff5636a64

[issue45916] documentation link error

2021-11-29 Thread Zachary Ware
Zachary Ware added the comment: We had a similar report in bpo-45620, but as Dennis and Eric reported in that issue, I can't reproduce that behavior here. We are using a non-HTTPS link there even though the site supports HTTPS; I'm not sure if fixing that might actually fix things for you

[issue23017] string.printable.isprintable() returns False

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.4, Python 3.5 ___ Python tracker ___

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

2021-11-29 Thread Vito De Tullio
New submission from Vito De Tullio : It would be useful to let json.tool support empty rows during handling of json lines generally speaking, this tolerance is already present in parsers like srsly and jsonlines actual behavior: # happy scenario $ echo -e '{"foo":1}\n{"bar":2}' | python3.10

[issue45928] Set up file stream for redirecting GC logs

2021-11-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for opening this issue..I think you need to elaborate a bit more about this feature you are suggesting. In general we don't allow this kind of facilities to redirect to file stream anywhere else in the interpreter. -- nosy: +pablogsal

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-29 Thread Christian Heimes
Christian Heimes added the comment: New changeset b394af13f69c1a2ac0e7d32dabf6d86443606ab2 by Christian Heimes in branch 'main': bpo-45847: PY_STDLIB_MOD_SIMPLE now checks py_stdlib_not_available (GH-29844) https://github.com/python/cpython/commit/b394af13f69c1a2ac0e7d32dabf6d86443606ab2

[issue45928] Set up file stream for redirecting GC logs

2021-11-29 Thread penguin_wwy
Change by penguin_wwy <940375...@qq.com>: -- keywords: +patch pull_requests: +28077 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29848 ___ Python tracker

[issue45928] Set up file stream for redirecting GC logs

2021-11-29 Thread penguin_wwy
New submission from penguin_wwy <940375...@qq.com>: Set up file stream for redirecting logs by adding a parameter in `set_debug`. The stderr is used by default. -- components: Library (Lib) messages: 407286 nosy: penguin_wwy priority: normal severity: normal status: open title: Set up

[issue24301] gzip module failing to decompress valid compressed file

2021-11-29 Thread Ruben Vorderman
Change by Ruben Vorderman : -- keywords: +patch pull_requests: +28076 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29847 ___ Python tracker ___

[issue45828] [sqlite3] use unraisable exceptions in callbacks

2021-11-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c4a69a4ad035513ada1c0d41a46723606b538e13 by Erlend Egeberg Aasland in branch 'main': bpo-45828: Use unraisable exceptions within sqlite3 callbacks (FH-29591)

  1   2   >