[issue35821] Clarify when logging events are propagated when propagate is true

2021-11-29 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +28070 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29841 ___ Python tracker

[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

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

[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

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

[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

[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

[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

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

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

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

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

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

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

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

[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

[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

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

[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

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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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

[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 Irit Katriel
Change by Irit Katriel : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ 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 ___

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

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

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

[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 STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

[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

[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

[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: Sorry, parameter type is `TextIOWrapper`, not `TestIOWrapper` -- ___ 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

[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
Change by Pablo Galindo Salgado : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-29 Thread Christian Heimes
Christian Heimes added the comment: New changeset 6ac3c8a3140c17bd71ba98dfc5250c371101e77c by Christian Heimes in branch 'main': bpo-40280: Emscripten systems use .wasm suffix by default (GH-29842) https://github.com/python/cpython/commit/6ac3c8a3140c17bd71ba98dfc5250c371101e77c --

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

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

[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

<    1   2