[issue43424] Document the `controller.name` field in `webbrowser` module

2021-12-21 Thread Alex Willmer
Change by Alex Willmer : -- nosy: -Alex.Willmer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37295] Possible optimizations for math.comb()

2021-12-21 Thread Mark Dickinson
Mark Dickinson added the comment: One approach that avoids the use of floating-point arithmetic is to precompute the odd part of the factorial of n modulo 2**64, for all small n. If we also precompute the inverses, then three lookups and two 64x64->64 unsigned integer multiplications gets

[issue45235] argparse does not preserve namespace with subparser defaults

2021-12-21 Thread Frost Ming
Change by Frost Ming : -- pull_requests: +28441 pull_request: https://github.com/python/cpython/pull/30219 ___ Python tracker ___

[issue43424] Document the `controller.name` field in `webbrowser` module

2021-12-21 Thread Zachary Ware
Change by Zachary Ware : -- hgrepos: -413 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46071] Graphlib documentation

2021-12-21 Thread David Mc Dougall
Change by David Mc Dougall : -- pull_requests: +28446 pull_request: https://github.com/python/cpython/pull/30223 ___ Python tracker ___

[issue46120] Add note to `typing.Union` that it is recommended to use `|` instead

2021-12-21 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28443 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30222 ___ Python tracker ___

[issue43424] Document the `controller.name` field in `webbrowser` module

2021-12-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -28440 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45235] argparse does not preserve namespace with subparser defaults

2021-12-21 Thread Frost Ming
Frost Ming added the comment: Per the review comments of @jiasli, I worked out a second PR to fix this issue. This fix has less side-effect and better backward compatibility. I will leave the two PRs open. Any feedback is welcome. - Frost -- ___

[issue37295] Possible optimizations for math.comb()

2021-12-21 Thread Mark Dickinson
Mark Dickinson added the comment: That computation of the shift can be simplified to require only one popcount operation. With F and Finv as before: def comb_small(n, k): assert 0 <= k <= n <= Nmax return (F[n] * Finv[k] * Finv[n-k] % 2**64) << (k ^ n ^ (n-k)).bit_count()

[issue43424] Document the `controller.name` field in `webbrowser` module

2021-12-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg408987 ___ Python tracker ___ ___ Python-bugs-list

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-21 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46144] math.log() returns improper output

2021-12-21 Thread Mark Dickinson
Mark Dickinson added the comment: Yes, confirmed that this is not a bug, but just one of the many consequences of approximating real numbers by floating-point numbers. You may be interested in math.log2 and/or int.bit_length. math.log2(x) *may* give you more accurate results than

[issue46107] ExceptionGroup.split()/subgroup() don't copy __note__ to parts

2021-12-21 Thread Irit Katriel
Irit Katriel added the comment: New changeset c66fc0fb53b5316dc325fde3bc738890515d38a4 by Irit Katriel in branch 'main': bpo-46107: ExceptionGroup.subgroup()/split() should copy __note__ to the parts (GH-30159)

[issue23522] Misleading note in Statistics module documentation

2021-12-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +28444 pull_request: https://github.com/python/cpython/pull/30221 ___ Python tracker

[issue46143] [docs] IO > Text Encoding info outdated

2021-12-21 Thread Eryk Sun
Eryk Sun added the comment: The rare circumstance in which UTF-8 mode gets enabled automatically is described in the following paragraph [1]: If the PYTHONUTF8 environment variable is not set at all, then the interpreter defaults to using the current locale settings, unless the

[issue41210] Docs: More description(warning) about LZMA1 + BCJ with FORMAT_RAW

2021-12-21 Thread kdrb
kdrb added the comment: If you are a developer and looking for a job that suits your profession then please follow https://kdrb.org for latest job alerts -- nosy: +kdrb ___ Python tracker

[issue43424] Document the `controller.name` field in `webbrowser` module

2021-12-21 Thread Terry J. Reedy
Change by Terry J. Reedy : Removed file: https://bugs.python.org/file50506/images (5).jpeg ___ Python tracker ___ ___ Python-bugs-list

[issue43424] Document the `controller.name` field in `webbrowser` module

2021-12-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Zach, gaurawgoshwami is a spammer. Deleted added nosy, unlinked spam file and unrelated PR. I have no idea what 'repository containing patch' means or how g. created link to non-existent? file. -- nosy: -asvetlov, barry, dstufft, eric.araujo,

[issue23522] Misleading note in Statistics module documentation

2021-12-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +28445 pull_request: https://github.com/python/cpython/pull/30220 ___ Python tracker ___

[issue23522] Misleading note in Statistics module documentation

2021-12-21 Thread Mark Dickinson
Change by Mark Dickinson : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue41210] Docs: More description(warning) about LZMA1 + BCJ with FORMAT_RAW

2021-12-21 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg408995 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41210] Docs: More description(warning) about LZMA1 + BCJ with FORMAT_RAW

2021-12-21 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg407902 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41210] Docs: More description(warning) about LZMA1 + BCJ with FORMAT_RAW

2021-12-21 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg408966 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-21 Thread Matej Cepl
New submission from Matej Cepl : (originally filed as https://bugzilla.suse.com/1193409) When trying to start "idle3.8", I get a ZeroDivisionError in editor.py. Trying to patch it, I noticed that the complete UI of IDLE shows no text. Since the same also happens with "idle3.9", I guess it is a

[issue41210] Docs: More description(warning) about LZMA1 + BCJ with FORMAT_RAW

2021-12-21 Thread Ned Deily
Change by Ned Deily : -- nosy: -Smith129, kdrb, sakaranata ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46090] C extensions can't swap out live frames anymore

2021-12-21 Thread Brandt Bucher
Brandt Bucher added the comment: Fixing this actually ended up being a lot simpler than I anticipated (and it requires no changes on our end). All that's really required is saving and restoring: - tstate->cframe->current_frame - tstate->datastack_chunk - tstate->datastack_top -

[issue46147] Support AddressSanitizer in Windows build

2021-12-21 Thread anthony shaw
New submission from anthony shaw : I'd like to compile my C-extensions with ASAN for testing in Windows, but they cannot be loaded as the host python.exe process needs to be compiled with ASAN. https://docs.microsoft.com/en-us/cpp/sanitizers/asan?view=msvc-170#ide-msbuild The EnableASAN

[issue46106] OpenSSL 1.1.1m is now available

2021-12-21 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +28447 pull_request: https://github.com/python/cpython/pull/30224 ___ Python tracker ___

[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: (This is behavior, not crash issue, as the latter is when there is no traceback.) The editor code was added 3 years ago in #37929, PR-15452, to correct using the configured char width after font and window size changes make that invalid. It is based on

[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-21 Thread Matej Cepl
Matej Cepl added the comment: > Matej, what OS and font gives this error? Please run the > following, also uploaded, with the offending font, replacing the > name I used. I am a packager at SUSE maintaining Python packages both for openSUSE and SLE (our commercial offering), even though

[issue46146] Python IDLE fails to start (tk font issue?)

2021-12-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: On a system where IDLE will not start, the code has to be run directly with 'python3', however that is done there. One will need to add the line 'r.mainloop()' at the end of the script to see the tk window. However, this is not needed to see the printed

[issue46106] OpenSSL 1.1.1m is now available

2021-12-21 Thread Ned Deily
Ned Deily added the comment: New changeset fc54e722a2e66971f1a8e16cff24c844bf9c5ac4 by Kumar Aditya in branch 'main': bpo-46106: Update OpenSSL to 1.1.1m (GH-30211) https://github.com/python/cpython/commit/fc54e722a2e66971f1a8e16cff24c844bf9c5ac4 --

[issue46145] List reference not working properly

2021-12-21 Thread Antara
Antara added the comment: Not an issue -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue37295] Possible optimizations for math.comb()

2021-12-21 Thread Tim Peters
Tim Peters added the comment: Clever, Mark! Very nice. The justification for the shift count isn't self-evident, and appears to me to be an instance of the generalization of Kummer's theorem to multinomial coefficients. I think it would be clearer at first sight to rely instead on that

[issue46145] List reference not working properly

2021-12-21 Thread Antara
New submission from Antara : o= [1,2,3,3] print('o:',id(o)) d= o print('d:',id(d)) d= [1,2,3,4] dd= o print('dd:',id(dd)) dd[3]= 5 print('o:',o) print('d:',d) print('dd:',dd) === Output: o: 1976210449032 d: 1976210449032 dd: 1976210449032 o: [1, 2, 3, 5] d: [1, 2, 3, 4]

[issue37295] Possible optimizations for math.comb()

2021-12-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Finv = [pow(fodd, -1, 2**64) for fodd in Fodd] This is a good trick. I had already experimented with separating factorials into an odd component and a shift count, but failed to get a speed-up because the divisions were slow. Having a table of

[issue37295] Possible optimizations for math.comb()

2021-12-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Am I correct in my understanding the 64 bits are always available, that 128 bit ints aren't universal, and that #ifdefs would be needed to extend the range of the table for systems that support it? -- ___

[issue41222] POpen bufsize=0 ignored with universal_newlines=True

2021-12-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46106] OpenSSL 1.1.1m is now available

2021-12-21 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR, Kumar! Merged, with a few minor changes, to main (for 3.11.0a4), 3.10 (3.10.2), and 3.9 (3.9.10). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46147] Support AddressSanitizer in Windows build

2021-12-21 Thread anthony shaw
anthony shaw added the comment: After some experimentation, this can be done if you enable ASAN in all projects except python3dll.vcxproj I think it would make sense (if this were supported) to have a flag in build.bat like there is for pgo `build.bat --asan` --

[issue46106] OpenSSL 1.1.1m is now available

2021-12-21 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +28448 pull_request: https://github.com/python/cpython/pull/30225 ___ Python tracker ___

[issue37295] Possible optimizations for math.comb()

2021-12-21 Thread Tim Peters
Tim Peters added the comment: I see no use of 128-bit ints in the CPython core. Advice: forget it. int64_t and uint64_t are required by C99, and are used many places in the core. Advice: use freely. Note that if tables of "odd part mod 2**64" and "number of trailing zeroes" are used up

[issue46106] OpenSSL 1.1.1m is now available

2021-12-21 Thread Ned Deily
Ned Deily added the comment: New changeset cf96c279ac960f2a5025e2ac887f9b932a4f1474 by Ned Deily in branch '3.10': bpo-46106: Update OpenSSL to 1.1.1m (GH-30211) (GH-30224) https://github.com/python/cpython/commit/cf96c279ac960f2a5025e2ac887f9b932a4f1474 --

[issue46106] OpenSSL 1.1.1m is now available

2021-12-21 Thread Ned Deily
Ned Deily added the comment: New changeset 5c4d11fe755a7adeaee6b838bc8faceadc29ed7d by Ned Deily in branch '3.9': bpo-46106: Update OpenSSL to 1.1.1m (GH-30211) (GH-30225) https://github.com/python/cpython/commit/5c4d11fe755a7adeaee6b838bc8faceadc29ed7d --

[issue37295] Possible optimizations for math.comb()

2021-12-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: