[issue47105] [Doc] grp cites pwd.h instead of grp.h

2022-03-23 Thread Alex Hedges
Change by Alex Hedges : -- keywords: +patch pull_requests: +30176 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32091 ___ Python tracker ___

[issue47105] [Doc] grp cites pwd.h instead of grp.h

2022-03-23 Thread Alex Hedges
New submission from Alex Hedges : The documentation page for the grp module says to "see ", even though the source code (https://github.com/python/cpython/blob/v3.11.0a6/Modules/grpmodule.c) uses grp.h. I plan to release a PR for this shortly. -- assignee: docs@python components:

[issue18241] Add unique option to heapq functions

2022-03-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46864] Deprecate ob_shash in BytesObject

2022-03-23 Thread Inada Naoki
Inada Naoki added the comment: First of all, this is just deprecating direct access of `ob_shash`. This makes users need to use `PyObject_Hash()`. We don't make the final decision about removing it. We just make we can remove it in Python 3.13. RAM and CACHE efficiency is not the only

[issue47000] Make encoding="locale" uses locale encoding even in UTF-8 mode is enabled.

2022-03-23 Thread Inada Naoki
Inada Naoki added the comment: I am not sure about we really need "locale encoding at Python startup". For this issue, I don't want to change `encoding="locale"` behavior except ignore UTF-8 mode. So what I want is "current locale encoding" or ANSI codepage on Windows. On the other hand,

[issue46480] Implement typing.assert_type

2022-03-23 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 3354245daf89ca2c760c2c3e5b69a571f25073ed by Shantanu in branch 'main': bpo-46480: rephrase typing.assert_type docs (GH-32069) https://github.com/python/cpython/commit/3354245daf89ca2c760c2c3e5b69a571f25073ed --

[issue46657] Add mimalloc memory allocator

2022-03-23 Thread h-vetinari
Change by h-vetinari : -- nosy: +h-vetinari ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39298] add BLAKE3 to hashlib

2022-03-23 Thread Larry Hastings
Larry Hastings added the comment: > Performance wise... The SHA series have hardware acceleration on > modern CPUs and SoCs. External libraries such as OpenSSL are in a > position to provide implementations that make use of that. Same with > the Linux Kernel CryptoAPI

[issue27165] Skip callables when displaying exception fields in cgitb

2022-03-23 Thread Irit Katriel
Irit Katriel added the comment: cgi/cgitb are deprecated as per PEP 594, so there won't be further enhancements to them. -- nosy: +iritkatriel resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29067] Source archive: wrong directory attributes

2022-03-23 Thread Irit Katriel
Irit Katriel added the comment: In 3.11 it is drwxr-xr-x. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue28080] Allow reading member names with bogus encodings in zipfile

2022-03-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks Serhiy! -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___

[issue23578] struct.pack error messages do not indicate which argument was invalid

2022-03-23 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-23 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: sigh.. adding myself to nosy here too in the hope that this gets any traction -- nosy: +habnabit ___ Python tracker ___

[issue45098] asyncio.CancelledError should contain more information on cancellations

2022-03-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: #46829 deprecates cancellation messages. #46771 implements timeout context manager based on previously added cancellation counter and task.uncancel() I think this issue should be closed. -- resolution: -> rejected stage: -> resolved status: open

[issue46771] Implement asyncio.timeout() context manager

2022-03-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- title: Add some form of cancel scopes -> Implement asyncio.timeout() context manager ___ Python tracker ___

[issue47014] ProactorEventLoop ignores Ctrl+C after closing unrelated loop

2022-03-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

2022-03-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.9 ___ Python tracker ___

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

2022-03-23 Thread miss-islington
miss-islington added the comment: New changeset 9e1bfd8ce79b947dc0c1cfb4644e5afe337c2d07 by Miss Islington (bot) in branch '3.10': bpo-47104: Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase (GH-32086)

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

2022-03-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

2022-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +30175 pull_request: https://github.com/python/cpython/pull/32088 ___ Python tracker ___

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

2022-03-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +30174 pull_request: https://github.com/python/cpython/pull/32087 ___ Python tracker

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

2022-03-23 Thread Andrew Svetlov
New submission from Andrew Svetlov : New changeset ff619c7dfe8dcb0e4c8dc655abc3acc7dc586d0d by Andrew Svetlov in branch 'main': bpo-47104: Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase (GH-32086)

[issue47101] hashlib.algorithms_available lists algorithms that are not available in OpenSSL 3.0 default provider

2022-03-23 Thread Christian Heimes
Christian Heimes added the comment: New changeset 1b6acaad9a18b2498386c60f24351ab749061e3a by Christian Heimes in branch '3.10': [3.10] bpo-47101: list only activated algorithms in hashlib.algorithms_available (GH-32076) (GH-32085)

[issue44306] asyncio.from_thread

2022-03-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: How is it better than passing the loop instance explicitly? What is the real use case? -- ___ Python tracker ___

[issue40320] Add ability to specify instance of contextvars context to Task() & asyncio.create_task()

2022-03-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Duplicate of #46994 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Accept explicit contextvars.Context in asyncio create_task() API ___ Python tracker

[issue47101] hashlib.algorithms_available lists algorithms that are not available in OpenSSL 3.0 default provider

2022-03-23 Thread miss-islington
miss-islington added the comment: New changeset ec3589f59d2c8456591f33656639bcc303eb7bd5 by Miss Islington (bot) in branch '3.9': bpo-47101: list only activated algorithms in hashlib.algorithms_available (GH-32076)

[issue34014] loop.run_in_executor should propagate current contextvars

2022-03-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: contextvars and run_in_executor() cannot be used together with process executor. asyncio.to_thread() runs with a copy of the current context. Available since Python 3.9 https://docs.python.org/3/library/asyncio-task.html?highlight=to_thread#asyncio.to_thread

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

2022-03-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +30173 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32086 ___ Python tracker ___

[issue47104] Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase

2022-03-23 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: Tests, asyncio nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase versions: Python 3.10, Python 3.11 ___ Python

[issue47101] hashlib.algorithms_available lists algorithms that are not available in OpenSSL 3.0 default provider

2022-03-23 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30172 pull_request: https://github.com/python/cpython/pull/32085 ___ Python tracker ___

[issue47101] hashlib.algorithms_available lists algorithms that are not available in OpenSSL 3.0 default provider

2022-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +30171 pull_request: https://github.com/python/cpython/pull/32084 ___ Python tracker ___

[issue47101] hashlib.algorithms_available lists algorithms that are not available in OpenSSL 3.0 default provider

2022-03-23 Thread miss-islington
miss-islington added the comment: New changeset 48e2010d92076b472922fa632fffc98ee150004f by Christian Heimes in branch 'main': bpo-47101: list only activated algorithms in hashlib.algorithms_available (GH-32076)

[issue47061] Deprecate modules listed in PEP 594

2022-03-23 Thread miss-islington
miss-islington added the comment: New changeset e513b8188af4d2f43ab2b96b51bc45bd4f6fd5b6 by Hugo van Kemenade in branch '3.9': [3.9] bpo-47061: document module deprecations due to PEP 594 (GH-31984) (GH-32082) https://github.com/python/cpython/commit/e513b8188af4d2f43ab2b96b51bc45bd4f6fd5b6

[issue47103] Copy pgort140.dll when building for PGO

2022-03-23 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +30170 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32083 ___ Python tracker

[issue47103] Copy pgort140.dll when building for PGO

2022-03-23 Thread Steve Dower
New submission from Steve Dower : Rather than trying to set up PATH properly, we should just copy pgort140.dll into the build directory when building instrumented version. This becomes more important for those (i.e. me) building and then manually running the profile stage on a different

[issue47102] explore hashlib use of the Linux Kernel CryptoAPI

2022-03-23 Thread Christian Heimes
Christian Heimes added the comment: And sendfile() is zero-copy. Data does not have to leave Kernel space. -- ___ Python tracker ___

[issue47102] explore hashlib use of the Linux Kernel CryptoAPI

2022-03-23 Thread Christian Heimes
Christian Heimes added the comment: test_socket has examples for HMAC, AES-CBC, and AES-GCM. with self.create_alg('hash', 'hmac(sha1)') as algo: algo.setsockopt(socket.SOL_ALG, socket.ALG_SET_KEY, b"Jefe") op, _ = algo.accept() with op: op.sendall(b"what do ya want for

[issue39298] add BLAKE3 to hashlib

2022-03-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Rust based anything comes with a baseline level of Rust code overhead. https://stackoverflow.com/questions/29008127/why-are-rust-executables-so-huge That seems expected. -- ___ Python tracker

[issue47102] explore hashlib use of the Linux Kernel CryptoAPI

2022-03-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Neat. I've never used the API, just filing a breadcrumb suggesting we see if it makes sense. Being I/O based, that even takes care of GIL releasing from Python. :) -- ___ Python tracker

[issue47061] Deprecate modules listed in PEP 594

2022-03-23 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- pull_requests: +30169 pull_request: https://github.com/python/cpython/pull/32082 ___ Python tracker ___

[issue39298] add BLAKE3 to hashlib

2022-03-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Here's a wheel which only includes the portable code (I disabled all the special cases as you suggested). Archive: dist/blake3_experimental_c-0.0.1-cp310-cp310-linux_x86_64.whl Length DateTimeName - -- -

[issue47102] explore hashlib use of the Linux Kernel CryptoAPI

2022-03-23 Thread Christian Heimes
Christian Heimes added the comment: We don't need libkcapi. I added AF_ALG support a while ago: import binascii import os import socket with socket.socket(socket.AF_ALG, socket.SOCK_SEQPACKET, 0) as cfgsock: cfgsock.bind(("hash", "sha256")) opsock, _ = cfgsock.accept() with

[issue39298] add BLAKE3 to hashlib

2022-03-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Performance wise... The SHA series have hardware acceleration on modern CPUs and SoCs. External libraries such as OpenSSL are in a position to provide implementations that make use of that. Same with the Linux Kernel CryptoAPI

[issue39298] add BLAKE3 to hashlib

2022-03-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: To anyone else who comes along with motivation: I'm fine with blake3 being in hashlib, but I don't want us to guarantee it by carrying the implementation of the algorithm in the CPython codebase itself unless it gains wide industry standard-like adoption

[issue47102] explore hashlib use of the Linux Kernel CryptoAPI

2022-03-23 Thread Gregory P. Smith
New submission from Gregory P. Smith : Linux kernels provide a CryptoAPI. This is a common place for platform specific hardware accelerated hash algorithms to be exposed to the user (especially on SoCs which often have non-standard hardware).

[issue46716] regrtest didn't respect the timeout when running test_subprocess on AMD64 Windows11 3.x

2022-03-23 Thread Jeremy Kloth
Change by Jeremy Kloth : -- pull_requests: +30168 pull_request: https://github.com/python/cpython/pull/32081 ___ Python tracker ___

[issue39298] add BLAKE3 to hashlib

2022-03-23 Thread Larry Hastings
Larry Hastings added the comment: I can't answer why the Rust one is so much larger--that's a question for Jack. But the blake3-py you built might (should?) have support for SIMD extensions. See the setup.py for how that works; it appears to at least try to use the SIMD extensions on x86

[issue39298] add BLAKE3 to hashlib

2022-03-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: With "lean" I meant: doesn't use much code and is easy to compile and install. I built a wheel from Jack's experimental package and it comes out to just under 100kB on Linux x64, compared to around the 1.1MB the Rust wheel needs: Archive:

[issue46769] Improve documentation for `typing.TypeVar`

2022-03-23 Thread Alex Waygood
Alex Waygood added the comment: Thanks Guido for your insight, and Jelle/Łukasz for the reviews and backports! I'm on holiday right now, but when I'm back, I'll take a look at maybe proposing some minor revisions to PEP 484 as well, as Guido suggests. --

[issue46769] Improve documentation for `typing.TypeVar`

2022-03-23 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks Alex for the PR and Łukasz for merging the last backport! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46964] The global config should not be stored on each interpreter

2022-03-23 Thread STINNER Victor
STINNER Victor added the comment: > thus far we have had no actual use cases for initializing an interpreter > with a different config I don't think that sub-interpreters should have config.install_signal_handlers=1. Same for config.configure_c_stdio=1. Only the main interpreter should

[issue46769] Improve documentation for `typing.TypeVar`

2022-03-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0bbb6956f83ef457872b8f04242bb02b6898350d by Jelle Zijlstra in branch '3.9': [3.9] bpo-46769: Improve documentation for `typing.TypeVar` (GH-31712) (GH-31941) (GH-32067)

[issue39298] add BLAKE3 to hashlib

2022-03-23 Thread Larry Hastings
Larry Hastings added the comment: The Rust version is already quite "lean". And it can be much faster than the C version, because it supports internal multithreading. Even without multithreading I bet it's at least a hair faster. Also, Jack has independently written a Python package based

[issue39298] add BLAKE3 to hashlib

2022-03-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 23.03.2022 17:53, Larry Hastings wrote: > > Ok, I give up. Sorry to spoil the fun, but there's no need to throw everything in the bin ;-) A lean and fast blake3 C package would still be a great thing to have on PyPI, e.g. provide support for

[issue46716] regrtest didn't respect the timeout when running test_subprocess on AMD64 Windows11 3.x

2022-03-23 Thread Jeremy Kloth
Change by Jeremy Kloth : -- keywords: +patch pull_requests: +30167 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32079 ___ Python tracker ___

[issue31582] Add _pth breadcrumb to sys.path documentation

2022-03-23 Thread Steve Dower
Steve Dower added the comment: New changeset c62b944dfc98911a5050389fa6ac753e283fee1f by Russel Webber in branch 'main': bpo-31582: Created a new documentation section describing sys.path initialization (GH-31082)

[issue33028] [doc] tempfile.TemporaryDirectory documentation improvements

2022-03-23 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.9 ___ Python tracker ___

[issue44090] Add class binding to unbound super objects for allowing autosuper with class methods

2022-03-23 Thread Géry
Géry added the comment: Apologies for the long delay. > Do we have any meaningful examples to show that this is desired and useful? A use case of `super()` in a `classmethod` that comes to mind is for parameterized factory methods. It is a variation of the classic factory method design

[issue39298] add BLAKE3 to hashlib

2022-03-23 Thread Larry Hastings
Larry Hastings added the comment: Ok, I give up. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46850] [C API] Move _PyEval_EvalFrameDefault() to the internal C API

2022-03-23 Thread Itamar Ostricher
Change by Itamar Ostricher : -- nosy: +itamaro ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33028] [doc] tempfile.TemporaryDirectory documentation improvements

2022-03-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +30166 pull_request: https://github.com/python/cpython/pull/32077 ___ Python tracker

[issue47086] Include HTML docs with Windows installer instead of CHM

2022-03-23 Thread Steve Dower
Steve Dower added the comment: New changeset fe010605f87f988ef1053e372d1c3898d2633d96 by Steve Dower in branch 'main': bpo-47086: Remove dead link to old CHM documentation (GH-32075) https://github.com/python/cpython/commit/fe010605f87f988ef1053e372d1c3898d2633d96 --

[issue33028] [doc] tempfile.TemporaryDirectory documentation improvements

2022-03-23 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +iritkatriel nosy_count: 5.0 -> 6.0 pull_requests: +30165 pull_request: https://github.com/python/cpython/pull/32078 ___ Python tracker ___

[issue46829] Confusing CancelError message if multiple cancellations are scheduled

2022-03-23 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed by deprecating the message argument to cancel(). It will be removed in 3.13. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46712] Share global string identifiers in deepfreeze

2022-03-23 Thread Eric Snow
Eric Snow added the comment: New changeset febf54bcf3fdc45ad84b4073e24bbaaee0ac8b2a by Eric Snow in branch 'main': bpo-46712: Do not Regen Deep-Frozen Modules before Generating Global Objects (gh-32061) https://github.com/python/cpython/commit/febf54bcf3fdc45ad84b4073e24bbaaee0ac8b2a

[issue46541] Replace _Py_IDENTIFIER() with statically initialized objects.

2022-03-23 Thread Eric Snow
Eric Snow added the comment: New changeset 21412d037b07c08266e96dfd0c0e44a1b7693bc1 by Eric Snow in branch 'main': bpo-46541: Add a Comment About When to Use _Py_DECLARE_STR(). (gh-32063) https://github.com/python/cpython/commit/21412d037b07c08266e96dfd0c0e44a1b7693bc1 --

[issue47101] hashlib.algorithms_available lists algorithms that are not available in OpenSSL 3.0 default provider

2022-03-23 Thread Christian Heimes
Christian Heimes added the comment: $ ./python Tools/ssl/multissltests.py --openssl 3.0.2 --steps modules $ ./python -c "import hashlib; print(hashlib.algorithms_available)" {'blake2b', 'sha512', 'sm3', 'shake_128', 'md5', 'sha3_256', 'sha224', 'sha512_224', 'sha3_384', 'sha384', 'md5-sha1',

[issue46829] Confusing CancelError message if multiple cancellations are scheduled

2022-03-23 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 0360e9f34659e7d7f3dae021b82f78452db8c714 by Andrew Svetlov in branch 'main': bpo-46829: Deprecate passing a message into Future.cancel() and Task.cancel() (GH-31840)

[issue47101] hashlib.algorithms_available lists algorithms that are not available in OpenSSL 3.0 default provider

2022-03-23 Thread Christian Heimes
Christian Heimes added the comment: Hubert's suggested solution EVP_MD_do_all_provided() worked almost straight forward. The function signature is a bit different and I got "undefined" in the result set. Filtering out NID_undef got right of it. --

[issue47101] hashlib.algorithms_available lists algorithms that are not available in OpenSSL 3.0 default provider

2022-03-23 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +30164 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32076 ___ Python tracker

[issue47101] hashlib.algorithms_available lists algorithms that are not available in OpenSSL 3.0 default provider

2022-03-23 Thread Christian Heimes
New submission from Christian Heimes : Hubert Kario wrote in https://bugzilla.redhat.com/show_bug.cgi?id=2054702 Description of problem: The hashlib.algorithms_available set includes algorithms like ripemd160 and whirlpool, those algorithms are not usable unless openssl legacy provider is

[issue28080] Allow reading member names with bogus encodings in zipfile

2022-03-23 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: I'm not going to have time to look at the PR for a couple days. I don't understand what the use case is for writing or appending with filenames in a non-UTF-8 encoding. At least in my experience, reading such files is rare, but I have never been asked

[issue46975] clang: error: linker command failed with exit code 1 (use -v to see invocation) on m1 mac

2022-03-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: It's possible my bad experience may have been avoided through issue35905. -- ___ Python tracker ___

[issue46975] clang: error: linker command failed with exit code 1 (use -v to see invocation) on m1 mac

2022-03-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: Aha. If I configure/make without LDFLAGS or CPPFLAGS set, compilation works. Then I noticed for `LDFLAGS`, some users were using `-L`. I thought it was slightly odd that my recipe was using `-I` for both flags. How is it that [this

[issue46975] clang: error: linker command failed with exit code 1 (use -v to see invocation) on m1 mac

2022-03-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: As suggested, I uninstalled and reinstalled everything in homebrew: $ brew list | xargs brew remove $ brew install python@3.10 python-launcher python@3.9 python@3.8 gh git Even after following those steps and setting LDFLAGS and CPPFLAGS to point to `brew

[issue47099] Replace with_traceback() with exception chaining and reraising

2022-03-23 Thread Irit Katriel
Irit Katriel added the comment: You don't need sys.exc_info() for the traceback anymore. except Exception as e: raise OSError('blah').with_traceback(e.__traceback__) -- nosy: +iritkatriel ___ Python tracker

[issue46975] clang: error: linker command failed with exit code 1 (use -v to see invocation) on m1 mac

2022-03-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: I did [this search](https://www.google.com/search?q=gittext+homebrew+"ld%3A+symbol(s)+not+found+for+architecture+arm64"), which surfaced a few related results. [This

[issue46126] Unittest output drives developers to avoid docstrings

2022-03-23 Thread Éric Araujo
Éric Araujo added the comment: I think the situation and the discussion should be summarized on python-dev! -- ___ Python tracker ___

[issue47100] Help text for Store Python shows "null" under usage

2022-03-23 Thread Steve Dower
New submission from Steve Dower : C:\> python3.11 -h usage: (null) [option] ... [-c cmd | -m mod | file | -] [arg] ... Options and arguments (and corresponding environment variables): ... Should not show "(null)" there -- components:

[issue46836] [C API] Move PyFrameObject to the internal C API

2022-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset b0f886d1bca499db1118a60b707923fa8e157073 by Victor Stinner in branch 'main': bpo-46836: Add Doc/c-api/frame.rst (GH-32051) https://github.com/python/cpython/commit/b0f886d1bca499db1118a60b707923fa8e157073 --

[issue47095] Prefer libb2 over vendored copy of blake2

2022-03-23 Thread Christian Heimes
Change by Christian Heimes : -- title: Deprecate blake2's tree hashing feature -> Prefer libb2 over vendored copy of blake2 ___ Python tracker ___

[issue47000] Make encoding="locale" uses locale encoding even in UTF-8 mode is enabled.

2022-03-23 Thread STINNER Victor
STINNER Victor added the comment: sys.getlocaleencoding() versus locale.getencoding(). For me, the Python locale module should use the C API to access the Unix locales like LC_CTYPE, nl_langinfo(CODESET), etc. The sys module are more for things specific to Python, like

[issue42238] Deprecate suspicious.py?

2022-03-23 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47086] Include HTML docs with Windows installer instead of CHM

2022-03-23 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +30163 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/32075 ___ Python tracker ___

[issue47086] Include HTML docs with Windows installer instead of CHM

2022-03-23 Thread Steve Dower
Steve Dower added the comment: This should work for you (luckily, this is about the simplest possible case): import sys import winreg def get_help(): KEY = rf"Software\Python\PythonCore\{sys.winver}\Help\Main Python Documentation" try: return

[issue46864] Deprecate ob_shash in BytesObject

2022-03-23 Thread Ma Lin
Ma Lin added the comment: If put a bytes object into multiple dicts/sets, the hash need to be computed multiple times. This seems a common usage. bytes is a very basic type, users may use it in various ways. And unskilled users may checking the same bytes object against dicts/sets many

[issue47099] Replace with_traceback() with exception chaining and reraising

2022-03-23 Thread Oleg Iarygin
Change by Oleg Iarygin : -- keywords: +patch pull_requests: +30162 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32074 ___ Python tracker ___

[issue47099] Replace with_traceback() with exception chaining and reraising

2022-03-23 Thread Oleg Iarygin
New submission from Oleg Iarygin : Currently, exception chaining in Lib/ modules is implemented with pre-3.11 `raise Foo(...).with_traceback(sys.exc_info()[2])`. However, this approach can be simplified: 1. PEP 3134 introduced a proper `raise Foo(...) from bar` construction that takes a

[issue39298] add BLAKE3 to hashlib

2022-03-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 23.03.2022 02:12, Gregory P. Smith wrote: > > I view the NIST standard hashes as important enough to attempt to guarantee > as present (all the SHAs and MD5) as built-in. Others should really > demonstrate practical application popularity to gain

[issue13011] Frozen programs require the original build directory in order to run.

2022-03-23 Thread Irit Katriel
Irit Katriel added the comment: Closing, please reopen or create a new issue if this is still a problem after all these years. -- stage: needs patch -> resolved status: pending -> closed ___ Python tracker

[issue47098] sha3: Replace Keccak Code Package with tiny_sha3

2022-03-23 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +30161 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32060 ___ Python tracker

[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2022-03-23 Thread Kumar Aditya
Change by Kumar Aditya : -- pull_requests: +30160 pull_request: https://github.com/python/cpython/pull/32073 ___ Python tracker ___

[issue47098] sha3: Replace Keccak Code Package with tiny_sha3

2022-03-23 Thread Christian Heimes
New submission from Christian Heimes : The Keccak Code Package (kcp) provides the reference implementation for SHA3 and SHAKE hashing algorithms. CPython has vendored a copy of KCP since I added SHA3 in 3.6. CPython 3.10 and newer require OpenSSL >= 1.1.1, which provide an optimized

[issue42238] Deprecate suspicious.py?

2022-03-23 Thread Julien Palard
Julien Palard added the comment: New changeset ec8906fb5930b1f078e2a2170cdf445e6c6faf57 by Julien Palard in branch 'main': bpo-42238: [doc] Some lines moved in rst, but had hardcoded lineno in susp-ignored.csv. (GH-32070)

[issue47012] Speed up iteration of bytes and bytearray

2022-03-23 Thread Kumar Aditya
Change by Kumar Aditya : -- components: +Interpreter Core resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue43884] Cannot cleanly kill a subprocess using high-level asyncio APIs

2022-03-23 Thread Kumar Aditya
Kumar Aditya added the comment: @asvetlov Do you have any insight for this issue? -- ___ Python tracker ___ ___ Python-bugs-list

[issue47012] Speed up iteration of bytes and bytearray

2022-03-23 Thread Dennis Sweeney
Dennis Sweeney added the comment: New changeset bd1cf6ecee76bcdce87b4f69567b95756ecf5a4c by Kumar Aditya in branch 'main': bpo-47012: speed up iteration of bytes and bytearray (GH-31867) https://github.com/python/cpython/commit/bd1cf6ecee76bcdce87b4f69567b95756ecf5a4c -- nosy:

[issue46864] Deprecate ob_shash in BytesObject

2022-03-23 Thread Inada Naoki
Inada Naoki added the comment: New changeset 894d0ea5afa822c23286e9e68ed80bb1122b402d by Inada Naoki in branch 'main': bpo-46864: Suppress deprecation warnings for ob_shash. (GH-32042) https://github.com/python/cpython/commit/894d0ea5afa822c23286e9e68ed80bb1122b402d --

[issue34861] Improve cProfile standard output

2022-03-23 Thread Daniël van Noord
Daniël van Noord added the comment: I have resubmitted the patch that changes the default sorting order in https://github.com/python/cpython/pull/31929 as it was asked to separate that from the original patch by Anders. I also added documentation changes that follow from changing the default

[issue42238] Deprecate suspicious.py?

2022-03-23 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +30159 pull_request: https://github.com/python/cpython/pull/32070 ___ Python tracker ___

  1   2   >