[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread ty
ty added the comment: Actually the OS will always trust the length has already contained the last NUL. The test I did in this issue: https://github.com/rust-lang/rust/issues/69061 showed that: 1. OS trusted the input length was set correctly, both `sun_len` and the length of `struct

[issue47031] math.nan should note that NANs do not compare equal to anything

2022-03-24 Thread Stanley
Stanley added the comment: Then perhaps saying that it's *never* equal is too strong, and instead we just say it's *not* equal. Not too sure how to phrase the behavior difference between `==` and `is` though, if that's something that should be noted. --

[issue47114] random.choice and random.choices have different distributions

2022-03-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47114] random.choice and random.choices have different distributions

2022-03-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: This was an intentional decision. It is documented and tested. The rationale is that is keeps choices() internally consistent so that choices with equal weights produces the same result as if no weights are specified. For anyone who wants an

[issue47114] random.choice and random.choices have different distributions

2022-03-24 Thread Tim Peters
Tim Peters added the comment: Definitely a duplicate, and I doubt Mark or Raymond will change their mind. One observation: while floats are not uniformly dense in [0, 1), random() results are uniformly spaced. Each is of the form I / 2**53 for an integer I in range(2**53). -- nosy:

[issue46864] Deprecate ob_shash in BytesObject

2022-03-24 Thread Inada Naoki
Inada Naoki added the comment: OK. Cache efficiency is dropped from motivations list. Current motivations are: * Memory saving (currently, 4 BytesObject (= 32 bytes of ob_shash) per code object. * Make bytes objects immutable * Share objects among multi interpreters. * CoW efficiency. I

[issue47114] random.choice and random.choices have different distributions

2022-03-24 Thread Dennis Sweeney
Dennis Sweeney added the comment: Possible duplicate of https://bugs.python.org/issue44080 -- nosy: +Dennis Sweeney ___ Python tracker ___

[issue47114] random.choice and random.choices have different distributions

2022-03-24 Thread Mark Bell
Mark Bell added the comment: To give two more consequences of `random.choices` using floating point arithmetic: 1) When doing `random.choices([A, B, C], weights=[2**55, 1, 1])` the cumulative weight to bisect for is selected using `floor(random() * (2**55 + 1 + 1 + 0.0))`. Since this is

[issue47114] random.choice and random.choices have different distributions

2022-03-24 Thread Mark Bell
New submission from Mark Bell : The docstring for `random.choices` indicates that ``` import random random.choices(population, k=1) ``` should produce a list containing one item, where each item of `population` has equal likelihood of being selected. However `random.choices` draws elements for

[issue39622] KeyboardInterrupt is ignored when await asyncio.sleep(0)

2022-03-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +30184 pull_request: https://github.com/python/cpython/pull/32105 ___ Python tracker ___

[issue11339] annotation for class being defined

2022-03-24 Thread Irit Katriel
Irit Katriel added the comment: This looks like PEP 673 – Self Type. -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python tracker ___

[issue45618] Documentation builds fail with Sphinx 3.2.1

2022-03-24 Thread Maciej Olko
Maciej Olko added the comment: After the Jinja version 3.1.0 release today [1], documentation builds fail for all stable branches. Sphinx in versions pinned on those branches fails with ImportError. [2] Backporting 14a4fce457033412278ca9a056787db424310dc3 to 3.10 and 3.9 fixes the problem

[issue47097] Document PEP 646

2022-03-24 Thread Matthew Rahtz
Change by Matthew Rahtz : -- keywords: +patch pull_requests: +30183 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32103 ___ Python tracker

[issue47113] PermissionError on pip uninstall

2022-03-24 Thread Christian Heimes
Christian Heimes added the comment: pip is maintained by a different group. Please report pip issues at https://github.com/pypa/pip . -- nosy: +christian.heimes resolution: -> third party stage: -> resolved status: open -> closed ___ Python

[issue46070] [subinterpreters] crash when importing _sre in subinterpreters in parallel (Python 3.9 regression)

2022-03-24 Thread Alban Browaeys
Alban Browaeys added the comment: I managed to reproduce the bug.py crash with main branch up to commit 12c0012cf97d21bc637056983ede0eaf4c0d9c33 . -- Added file: https://bugs.python.org/file50700/bug.py_asyncio_cpustressed-crash.log ___ Python

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

2022-03-24 Thread miss-islington
miss-islington added the comment: New changeset 8a0a9e5b1928fab7d9819c8d6498ef5c0b9383af by Christian Heimes in branch 'main': bpo-40280: Add wasm32-emscripten and wasm32-wasi SOABI (GH-32095) https://github.com/python/cpython/commit/8a0a9e5b1928fab7d9819c8d6498ef5c0b9383af --

[issue46070] [subinterpreters] crash when importing _sre in subinterpreters in parallel (Python 3.9 regression)

2022-03-24 Thread Alban Browaeys
Alban Browaeys added the comment: bisect of main for bug.py with each local python builds get me to commit b127e70a8a682fe869c22ce04c379bd85a00db67 "bpo-46070: Fix asyncio initialization guard (GH-30423)" as the one that fixed bug.py most of the time. At times I can make bug.py segfault be

[issue47097] Document PEP 646

2022-03-24 Thread Matthew Rahtz
Matthew Rahtz added the comment: Ooh, thanks for the reminder! I'll start drafting this now. -- nosy: +matthew.rahtz ___ Python tracker ___

[issue39298] add BLAKE3 to hashlib

2022-03-24 Thread Jack O'Connor
Jack O'Connor added the comment: I did reply to that point above with some baseless speculation, but now I can back up my baseless speculation with unscientific data :) https://gist.github.com/oconnor663/aed7016c9dbe5507510fc50faceaaa07 According to whatever `powerstat -R` measures on my

[issue47077] test_asyncio ignores exception in _ProactorBasePipeTransport.__del__: RuntimeError('Event loop is closed')

2022-03-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Perhaps the proactor should just silently skip protocol events if the event loop is closed. Selector-based event loops do it implicitly already. -- ___ Python tracker

[issue47062] Implement asyncio.Runner context manager

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

[issue47062] Implement asyncio.Runner context manager

2022-03-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4119d2d7c9e25acd4f16994fb92d656f8b7816d7 by Andrew Svetlov in branch 'main': bpo-47062: Implement asyncio.Runner context manager (GH-31799) https://github.com/python/cpython/commit/4119d2d7c9e25acd4f16994fb92d656f8b7816d7 --

[issue21873] Tuple comparisons with NaNs are broken

2022-03-24 Thread Andreas Kloeckner
Change by Andreas Kloeckner : -- nosy: +inducer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46070] [subinterpreters] crash when importing _sre in subinterpreters in parallel (Python 3.9 regression)

2022-03-24 Thread Alban Browaeys
Alban Browaeys added the comment: While bisecting main branch I did not only get segfaults but also exceptions, namely: $ ./python ../python-crash-kodi/sqlite3_crash.py Exception ignored deletion of interned string failed: Traceback (most recent call last): File

[issue46841] Inline bytecode caches

2022-03-24 Thread Irit Katriel
Irit Katriel added the comment: New changeset 2f49b97cc5426087b46515254b9a97a22ee8c807 by Irit Katriel in branch 'main': bpo-46841: remove no-longer-used macro UPDATE_PREV_INSTR_OPARG (GH-32100) https://github.com/python/cpython/commit/2f49b97cc5426087b46515254b9a97a22ee8c807 --

[issue22722] inheritable pipes are unwieldy without os.pipe2

2022-03-24 Thread Irit Katriel
Irit Katriel added the comment: Closing as this seems abandoned. Buck, if you want to bring it up again and explain the use case, please reopen this issue, create a new issue or post to python-ideas. -- nosy: +iritkatriel resolution: -> rejected stage: -> resolved status: open ->

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: It looks like the length would be short by one in Python before this change, meaning binding or connecting to a non-anonymous named AF_UNIX socket potentially loses the last character of the path name intended to be bound? Depending on if the OS uses the

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: Bug filing tip for ty/zonyitoo: Describe the problem in the text when filing the bug. Include its consequences and how it is observed in practice. A bug filed just saying "look at this code, this is wrong" does not communicate a need for anyone to spend

[issue47113] PermissionError on pip uninstall

2022-03-24 Thread Zombo
New submission from Zombo : I can install a package: pip install brotli but if I try to remove, it fails: PS D:\Desktop> pip uninstall -y brotli Found existing installation: Brotli 1.0.9 Uninstalling Brotli-1.0.9: Successfully uninstalled Brotli-1.0.9 ERROR:

[issue46070] [subinterpreters] crash when importing _sre in subinterpreters in parallel (Python 3.9 regression)

2022-03-24 Thread Alban Browaeys
Alban Browaeys added the comment: 3.10 branch is fixed if I revert e6bb17fe29713368e1fd93d9ac9611017c4f570c bpo-46070: _PyGC_Fini() untracks objects (GH-30577). Be it if I revert it atop current head 9006b4471cc4d74d0cbf782d841a330b0f46a3d0 or if I test the commit before

[issue46841] Inline bytecode caches

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

[issue46070] [subinterpreters] crash when importing _sre in subinterpreters in parallel (Python 3.9 regression)

2022-03-24 Thread Alban Browaeys
Alban Browaeys added the comment: I did 3.9 branch bisect and commit 52937c26adc35350ca0402070160cf6dc838f359 bpo-46070: _PyGC_Fini() untracks objects (GH-30577) (GH-30580) is the one that broke 3.9 . While with my main branch builds this commit is fine, it is not for the 3.9 branches.

[issue47112] RuntimeError: expected scalar type Long but found Int

2022-03-24 Thread Zachary Ware
Zachary Ware added the comment: This appears to be an issue with either your code or the third-party PyTorch package. You'll have better luck asking about this in a forum specific to PyTorch, or perhaps the `Users` category of discuss.python.org. -- nosy: +zach.ware resolution: ->

[issue47112] RuntimeError: expected scalar type Long but found Int

2022-03-24 Thread Ramsey Thomson
New submission from Ramsey Thomson : Line 2846 of ~\anaconda3\lib\site-packages\torch\nn\functional.py in cross_entropy(input, target, weight, size_average, ignore_index, reduce, reduction, label_smoothing) results in > RuntimeError: expected scalar type Long but found Int The above is

[issue46841] Inline bytecode caches

2022-03-24 Thread penguin_wwy
Change by penguin_wwy <940375...@qq.com>: -- nosy: +penguin_wwy nosy_count: 4.0 -> 5.0 pull_requests: +30181 pull_request: https://github.com/python/cpython/pull/32099 ___ Python tracker

[issue39298] add BLAKE3 to hashlib

2022-03-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: You missed the key "And certainly more efficient in terms of watt-secs/byte" part. -- ___ Python tracker ___

[issue35905] macOS build docs need refresh (2019)

2022-03-24 Thread Battant
Battant added the comment: Hello, I tried to configure my installation according your instructions Her's step I follow export CPPFLAGS="-I$(brew --prefix sqlite3)/include -I$(brew --prefix zlib)/include"export LDFLAGS="-L$(brew --prefix sqlite3)/lib -L$(brew --prefix zlib)/lib" export

[issue46864] Deprecate ob_shash in BytesObject

2022-03-24 Thread Brandt Bucher
Brandt Bucher added the comment: Just a note: as of this week (GH-31888), we no longer use bytes objects to store bytecode. Instead, the instructions are stored as part of the PyCodeObject struct. (Of course, we still use bytes objects for the various exception handling and debugging

[issue46070] [subinterpreters] crash when importing _sre in subinterpreters in parallel (Python 3.9 regression)

2022-03-24 Thread Alban Browaeys
Alban Browaeys added the comment: By "It is fixed in main branch commit 12c0012cf97d21bc637056983ede0eaf4c0d9c33 ." I mean that this commit is good not that this commit fixes the issue. -- ___ Python tracker

[issue26362] Approved API for creating a temporary file path

2022-03-24 Thread Irit Katriel
Irit Katriel added the comment: > So no, while unresolved, this bug report should not be closed. This is not a bug report, it's a feature request, and there is enough resistance in the discussion to reject it (according to the Status Quo Wins a Stalemate principle). What may be unresolved

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not the socket programming expert. It just happened that I fixed some bugs here. But according to the manpage https://man7.org/linux/man-pages/man7/unix.7.html the address length should include the terminating NUL: offsetof(struct sockaddr_un,

[issue46070] [subinterpreters] crash when importing _sre in subinterpreters in parallel (Python 3.9 regression)

2022-03-24 Thread Alban Browaeys
Alban Browaeys added the comment: sqlite3_crash.py does not crashes on python 3.9 below and equal 3.9.9 and python main branch 12c0012cf97d21bc637056983ede0eaf4c0d9c33. I confirm it crashes on python 3.9.10, 3.9.11, 3.10 branch commit 9006b4471cc4d74d0cbf782d841a330b0f46a3d0 . It is fixed

[issue37430] [doc] range is not a built-in function

2022-03-24 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: range is not a built-in function -> [doc] range is not a built-in function versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread Christian Heimes
Christian Heimes added the comment: We have a dedicated team of volunteers that triage incoming tickets. They assign tickets and ping experts. It looks like nobody triaged your submissions because nobody understood it. Your ticket did not contain an explanation and the link now goes to an

[issue39298] add BLAKE3 to hashlib

2022-03-24 Thread Jack O'Connor
Jack O'Connor added the comment: > Truncated sha512 (sha512-256) typically performs 40% faster than sha256 on > X86_64. Without hardware acceleration, yes. But because SHA-NI includes only SHA-1 and SHA-256, and not SHA-512, it's no longer a level playing field. OpenSSL's SHA-512 and

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39298] add BLAKE3 to hashlib

2022-03-24 Thread Christian Heimes
Christian Heimes added the comment: sha1 should be considered broken anyway and sha256 does not perform well on 64bit systems. Truncated sha512 (sha512-256) typically performs 40% faster than sha256 on X86_64. It should get you close to the performance of BLAKE3 SSE4.1 on your system.

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread ty
ty added the comment: Oh, it should also occurs on Linux, I should correct that. -- nosy: -christian.heimes ___ Python tracker ___

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread ty
ty added the comment: More about the tests: The error will only shows on BSD systems, for example macOS. Here are some tests done with C and Rust: https://github.com/rust-lang/rust/issues/69061 If both the servers and clients are written in Python, you won't notice this bug because the

[issue37665] threading.TIMEOUT_MAX integer overflow on 32-bit builds with threading.Thread.join

2022-03-24 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> undefined behaviour: signed integer overflow in threadmodule.c ___ Python tracker

[issue39298] add BLAKE3 to hashlib

2022-03-24 Thread Jack O'Connor
Jack O'Connor added the comment: > Hardware accelerated SHAs are likely faster than blake3 single core. Surprisingly, they're not. Here's a quick measurement on my recent ThinkPad laptop (64 KiB of input, single-threaded, TurboBoost left on), which supports both AVX-512 and the SHA

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread ty
ty added the comment: Sorry Heimes. I just don't know who is responsible for this code, which is very very old. -- ___ Python tracker ___

[issue28948] Facing issue while running Python 3.6.0rc1 windows x86-64 web based installer

2022-03-24 Thread Irit Katriel
Irit Katriel added the comment: This was reported for 3.6 and there was not enough information to figure out what the problem is. I am closing it because it's unlikely that anyone will be do anything about this unless it is reported again for a current Python version, and with more

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread Christian Heimes
Christian Heimes added the comment: Antoine, Serhiy, please take a look. You are the last developers that touched the AF_UNIX socket path code. Ty, why are you pinging me on this issue or on the PR? I'm neither familiar with that code nor responsible for it. -- components:

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread ty
ty added the comment: Ping Heimes. This is a huge bug that exists for a very long time, please consider merge it and fix it in the next relesae. -- nosy: +christian.heimes ___ Python tracker

[issue44493] Missing terminated NUL in the length of sockaddr_un

2022-03-24 Thread ty
ty added the comment: I think I have already provided enough information about this bug. The `len_ret` was the length of `sockaddr_un`, which should include the terminated NUL in the `sun_path`. But the original implementation only use `path.len + offsetof(struct sockaddr_un, sun_path)`.

[issue47111] ENUM TypeError using mixing

2022-03-24 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17246] inspect.getargvalues fails if arg name is not bound to a value

2022-03-24 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47083] The __complex__ method is missing from the complex, float, and int built-in types

2022-03-24 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10, mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47111] ENUM TypeError using mixing

2022-03-24 Thread Benyamin Guedj
New submission from Benyamin Guedj : when trying to implement mixing with enum ```python from typing import Tuple from enum import Enum class Blah(Tuple[str, ...], Enum): val = ('a', 'b') ``` >>> from typing import Tuple >>> from enum import Enum >>> class Blah(Tuple[str, ...], Enum):

[issue40465] Deprecate the optional *random* argument to random.shuffle()

2022-03-24 Thread STINNER Victor
STINNER Victor added the comment: commit 70a071d9e1d65f8c168b4b96a18c86d5230789c5 Author: Raymond Hettinger Date: Tue May 4 01:55:40 2021 -0700 bpo-40465: Remove random module features deprecated in 3.9 (GH-25874) -- nosy: +vstinner ___

[issue40465] Deprecate the optional *random* argument to random.shuffle()

2022-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 12c0012cf97d21bc637056983ede0eaf4c0d9c33 by Tomáš Hrnčiar in branch 'main': bpo-40465: Document random module changes in 3.11 What's new (#31818) https://github.com/python/cpython/commit/12c0012cf97d21bc637056983ede0eaf4c0d9c33 --

[issue47110] Refactor bytearray strip methods

2022-03-24 Thread Pieter Eendebak
Change by Pieter Eendebak : -- keywords: +patch pull_requests: +30180 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32096 ___ Python tracker ___

[issue47110] Refactor bytearray strip methods

2022-03-24 Thread Pieter Eendebak
New submission from Pieter Eendebak : The bytearray strip, lstrip and rstrip methods contain a lot of duplicated code. -- components: Interpreter Core messages: 415939 nosy: pieter.eendebak priority: normal severity: normal status: open title: Refactor bytearray strip methods versions:

[issue47107] Navigation bar in python3103.chm is broken

2022-03-24 Thread stephan
stephan added the comment: Good idea with the html files, thank you (by the way I still love the chm because its compact and fast) -- ___ Python tracker ___

[issue46972] Documentation: Reference says AssertionError is raised by `assert`, but not all AssertionErrors are.

2022-03-24 Thread Thomas Fischbacher
Thomas Fischbacher added the comment: Addendum Serhiy, I agree that my assessment was incorrect. It actually is unittest/mock.py that has quite a few 'raise AssertionError' that are not coming from an 'assert' keyword statement. At a deeper level, the problem here is as follows: Every

[issue47107] Navigation bar in python3103.chm is broken

2022-03-24 Thread Steve Dower
Steve Dower added the comment: Thanks for the report. This is a duplicate of issue47051 (and also no longer applies to 3.11 because we've removed the CHM file completely and now ship all the HTML files). -- resolution: -> duplicate stage: -> resolved status: open -> closed

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

2022-03-24 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30179 pull_request: https://github.com/python/cpython/pull/32095 ___ Python tracker ___

[issue47109] Old ctypes.macholib tests are ignored by python -m test

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

[issue47109] Old ctypes.macholib tests are ignored by python -m test

2022-03-24 Thread Oleg Iarygin
New submission from Oleg Iarygin : Some tests for `ctypes.macholib.dyld` and all tests for `ctypes.macholib.dylib` and `ctypes.macholib.framework` are located outside of expected `ctypes.test` module and were not ported from `assert` to `unittest` facilities. This causes the following

[issue47031] math.nan should note that NANs do not compare equal to anything

2022-03-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: > We cannot guarantee that NAN never equal to anything, because we can > create an object equal to it. For example mock.ANY Sure. I don't expect that mock.ANY or other weird objects should obey the IEEE-754 rules. But we're talking numeric comparisons

[issue47108] asyncio-stream does not document exceptions

2022-03-24 Thread Christian Bodt
New submission from Christian Bodt : reader.read() might raise ConnectionResetError and possibly other exceptions, but this is not explained in the documentation. See this stacktrace example: Traceback (most recent call last): File "D:\Dropbox\repos\wxasync\src\examples\server.py", line 23,

[issue27817] tkinter string variable misinterpreted as boolean

2022-03-24 Thread Irit Katriel
Irit Katriel added the comment: This problem was reported for 2.7 without a manageable reproducer. I suggest we close it because it's unlikely that anyone will want to investigate this now unless it's reported again for a supported python version. -- nosy: +iritkatriel resolution:

[issue47107] Navigation bar in python3103.chm is broken

2022-03-24 Thread stephan
stephan added the comment: added screenshot -- Added file: https://bugs.python.org/file50698/2022-03-24_python3.10.3.png ___ Python tracker ___

[issue47107] Navigation bar in python3103.chm is broken

2022-03-24 Thread stephan
New submission from stephan : As you see in 2022-03-24_python3.10.3.png the navigation bar in python3103.chm is broken. In 2022-03-24_python3.10.2.png you see the same the same for python3102.chm. I suppose it would make sense: - to hide this navigation bar when you create a chm - to have a

[issue47031] math.nan should note that NANs do not compare equal to anything

2022-03-24 Thread Charlie Zhao
Charlie Zhao added the comment: > "Due to the requirements of the `IEEE-754 standard > `_, math.nan and float('nan') are > never equal to any other value, including themselves. Use math.isnan to test > for NANs." It seems to me, Steven's description

[issue22608] test_socket fails with sem_init: Too many open files

2022-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Note that it is a FreeBSD-only issue. We need to test on FreeBSD (ulimit -n can be used for this) to check whether it was fixed in issue45212. -- status: pending -> open ___ Python tracker

[issue20291] Argument Clinic should understand *args and **kwargs parameters

2022-03-24 Thread colorfulappl
Change by colorfulappl : -- pull_requests: +30177 pull_request: https://github.com/python/cpython/pull/32092 ___ Python tracker ___

[issue46864] Deprecate ob_shash in BytesObject

2022-03-24 Thread Inada Naoki
Inada Naoki added the comment: > I guess not much difference in benchmarks. > But if put a bytes object into multiple dicts/sets, and len(bytes_key) is > large, it will take a long time. (1 GiB 0.40 seconds on i5-11500 DDR4-3200) > The length of bytes can be arbitrary,so computing time may be

[issue47106] test_asyncio: test_shutdown_cleanly() failed with timeout (10 seconds) on slow x86 Gentoo Non-Debug with X 3.x

2022-03-24 Thread STINNER Victor
New submission from STINNER Victor : test_shutdown_cleanly() of test_asyncio failed on x86 Gentoo Non-Debug with X 3.x with a timeout of 10 seconds: https://buildbot.python.org/all/#/builders/58/builds/1958 asyncio uses a default timeout of 60 seconds for a TLS handshake, but the test takes

[issue46864] Deprecate ob_shash in BytesObject

2022-03-24 Thread Ma Lin
Ma Lin added the comment: > I posted remove-bytes-hash.patch in this issue. Would you measure how this > affects whole application performance rather than micro benchmarks? I guess not much difference in benchmarks. But if put a bytes object into multiple dicts/sets, and len(bytes_key) is