[issue46864] Deprecate ob_shash in BytesObject

2022-03-22 Thread Inada Naoki
Inada Naoki added the comment: Average RAM capacity doesn't grow as CPU cores grows. Additionally, L1+L2 cache is really limited resource compared to CPU or RAM. Bytes object is used for co_code that is hot. So cache efficiency is important. Would you give us more realistic (or real world)

[issue46864] Deprecate ob_shash in BytesObject

2022-03-22 Thread Ma Lin
Ma Lin added the comment: RAM is now relatively cheaper than CPU. 1 million bytes object additionally use 7.629 MiB RAM for ob_shash. (100_*8/1024/1024). This causes hash() performance regression anyway. -- ___ Python tracker

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

2022-03-22 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +30157 pull_request: https://github.com/python/cpython/pull/32068 ___ Python tracker ___

[issue38941] xml.etree.ElementTree.Element inconsistent warning for bool

2022-03-22 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I was close to merging the linked PR but there's some renewed concerns about the proposed behavior here: Do we really want to change this behavior and potentially force a lot of people to change their working code? In addition, the current code emits

[issue46769] Improve documentation for `typing.TypeVar`

2022-03-22 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- pull_requests: +30156 pull_request: https://github.com/python/cpython/pull/32067 ___ Python tracker ___

[issue46769] Improve documentation for `typing.TypeVar`

2022-03-22 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset d5ed8a8258eaf7a241978b1b0aeb971108d0f7e0 by Alex Waygood in branch '3.10': [3.10] bpo-46769: Improve documentation for `typing.TypeVar` (GH-31712) (GH-31941) https://github.com/python/cpython/commit/d5ed8a8258eaf7a241978b1b0aeb971108d0f7e0

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

2022-03-22 Thread Inada Naoki
Inada Naoki added the comment: > * sys.getfilesystemencoding(): Python filesystem encoding, return "UTF-8" if > the Python UTF-8 Mode is enabled Yes, althoguh PYTHONLEGACYWINDOWSFSENCODING takes priority. > * locale.getencoding(): Get the locale encoding, LC_CTYPE locale encoding or > the

[issue47088] Implement PEP 675 (LiteralString)

2022-03-22 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +30155 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32064 ___ Python tracker

[issue47097] Document PEP 646

2022-03-22 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : https://docs.python.org/3.11/library/typing.html doesn't say anything about TypeVarTuple yet. -- assignee: docs@python components: Documentation messages: 415850 nosy: AlexWaygood, JelleZijlstra, docs@python, gvanrossum, kj, mrahtz priority:

[issue2604] doctest.DocTestCase fails when run repeatedly

2022-03-22 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: After 14 years this bug is finally fixed. Thanks everyone for the patches and discussion. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

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

2022-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the IDLE Help menu, 'Python Docs', default hotkey 'F1', invokes '<>', which is handled by EditorWindow.help_docs. For Windows, line 599, is 'os.startfile(self.help_url)'. (Otherwise, webbrowser is used.) On Windows, help_url is

[issue39298] add BLAKE3 to hashlib

2022-03-22 Thread Jack O'Connor
Jack O'Connor added the comment: > maintaining a complicated build process in-tree For what it's worth, if you have any sort of "in a perfect world" vision for what the upstream BLAKE3 project could do to make it trivially easy for you to integrate, I'd be very interested in getting that

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

2022-03-22 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +30154 pull_request: https://github.com/python/cpython/pull/32063 ___ Python tracker ___

[issue39298] add BLAKE3 to hashlib

2022-03-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: Because I don't think blake3 or blake2 _(though we've shipped it already so there's a challenge in making changes https://bugs.python.org/issue47095)_ are important enough to be _guaranteed_ present in all builds (our release binaries would include them).

[issue47095] Deprecate blake2's tree hashing feature

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

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

2022-03-22 Thread Eric Snow
Eric Snow added the comment: Here are reasons why PyConfig relates to the runtime and not each interpreter: * PyConfig was introduced so embedders could dictate how the *runtime* should be initialized * after initialization, it represents how the runtime was initialized * in the public API,

[issue46566] Support -3.11-arm64 in py.exe launcher

2022-03-22 Thread Steve Dower
Steve Dower added the comment: Posted my WIP as a draft PR. I'm still adding docs, tests and ironing out minor issues, but the core functionality is there (as well as some added bonuses). Feel free to review, and importantly to mark anywhere you'd like more explanatory comments. Currently

[issue46566] Support -3.11-arm64 in py.exe launcher

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

[issue43166] Unused letters in Windows-specific pragma optimize

2022-03-22 Thread Steve Dower
Steve Dower added the comment: New changeset cd05d0a423d97be69f9de4650f68f89e99ad68d1 by neonene in branch 'main': bpo-43166: Disable ceval.c optimizations for Windows debug builds (GH-32023) https://github.com/python/cpython/commit/cd05d0a423d97be69f9de4650f68f89e99ad68d1 --

[issue39298] add BLAKE3 to hashlib

2022-03-22 Thread Larry Hastings
Larry Hastings added the comment: > Given that I don't want to see us gain new vendored copies of > significant but non-critical third party hash code in our tree > (Modules/_blake3/impl/ in PR 31686) for anything but a known > fixed term need (ex: the sha2 libtomcrypt code is gone from > our

[issue672115] Assignment to __bases__ of direct object subclasses

2022-03-22 Thread Géry
Change by Géry : -- versions: +Python 3.11 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37901] 21 tests fail when run on an IPv6-only host

2022-03-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: Here's how I created an IPv6-only host: https://gist.github.com/gpshead/f4f394593674e5f7a58e9424b4dba989 -- ___ Python tracker ___

[issue672115] Assignment to __bases__ of direct object subclasses

2022-03-22 Thread Géry
Change by Géry : -- nosy: +maggyero ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23743] Python crashes upon exit if importing g++ compiled mod after importing gcc compiled mod

2022-03-22 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2022-03-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: SG. Thanks for the advice. I'll dive in and experiment and report back when I have progress. -- status: closed -> open ___ Python tracker

[issue46114] OpenSSL 3.0 uses different version scheme

2022-03-22 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Case in point: https://buildbot.python.org/all/#/builders/355/builds/338 -- ___ Python tracker ___

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

2022-03-22 Thread Irit Katriel
Irit Katriel added the comment: I think this was fixed in issue45212. -- nosy: +iritkatriel resolution: -> duplicate status: open -> pending superseder: -> Dangling threads in skipped tests in test_socket ___ Python tracker

[issue36692] Unexpected stderr output from test_sys_settrace

2022-03-22 Thread Irit Katriel
Irit Katriel added the comment: I'm not seeing this output when I run the test. Are you still seeing it? -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___

[issue46712] Share global string identifiers in deepfreeze

2022-03-22 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +30151 pull_request: https://github.com/python/cpython/pull/32061 ___ Python tracker ___

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

2022-03-22 Thread Eryk Sun
Change by Eryk Sun : -- nosy: -eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-03-22 Thread Ned Deily
Ned Deily added the comment: This also applies to any other third-party library that a cpython build may link to, like the OpenSSL libs. Some legacy tools that depend on them may work in Rosetta 2 Intel-64 emulation mode on an Apple Silicon Mac but eventually that will go away so it is

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

2022-03-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: Well, I'm using a mac with gettext installed as part of `brew install git` with homebrew installed using the standard procedure. Only after running `brew remove --ignore-dependencies gettext` and re-running configure/make did the command build, but doing

[issue46126] Unittest output drives developers to avoid docstrings

2022-03-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: And indeed, after removing the `grep ERROR` part of the repro, even the repro seems to be invalid: ``` cpython main $ ./python.exe -m test.test_importlib -v -k test_entry_points_unique test_entry_points_unique_packages

[issue47095] Deprecate blake2's tree hashing feature

2022-03-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: In the short term we should prefer libb2 linkage when available. As for deprecation, it'd be useful to research how often the options going away are used in code in PyPI packages and in Github repos to understand the deprecation impact. The PyPI

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

2022-03-22 Thread Ned Deily
Ned Deily added the comment: There shouldn't be a problem as long as gettext is properly installed on an M1 Mac, i.e. with an arm64 arch or a universal build that includes arm64. -- ___ Python tracker

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

2022-03-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: I ran into this same issue. I notice that gettext is a dependency of git, so a common dependency when developing. Is there perhaps a way that CPython could be made to ignore gettext on macos Silicon or to detect an incompatible platform and thus ignore it?

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

2022-03-22 Thread Ned Deily
Ned Deily added the comment: > Do you have any thoughts about distributing the docs in ePub format? Note that it's *much* easier to manufacture the docs in html format than it is in ePub format. -- ___ Python tracker

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

2022-03-22 Thread Steve Dower
Steve Dower added the comment: > Do you have any thoughts about distributing the docs in ePub format? If Windows includes a reader for all supported versions, and it's easy to build, sure. But I don't think the first bit is true. Most people are going to be fairly comfortable with their

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

2022-03-22 Thread Ned Deily
Ned Deily added the comment: At a minimum, though, Doc/tools/templates/download.html should be changed to remove the chm reference. -- ___ Python tracker ___

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

2022-03-22 Thread Eryk Sun
Eryk Sun added the comment: Do you have any thoughts about distributing the docs in ePub format? -- nosy: +eryksun ___ Python tracker ___

[issue46126] Unittest output drives developers to avoid docstrings

2022-03-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: Inada, you're right. Good catch. I think I missed that behavior from before because I used `grep ERROR` and when I ran it this time, I just assumed the output would be the same, but it's clear that even _with descriptions enabled_, the location of the test

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

2022-03-22 Thread Steve Dower
Steve Dower added the comment: The key is defined at https://github.com/python/cpython/blob/main/Tools/msi/doc/doc.wxs#L17 and is not set for a Store install at all. But we don't include the docs in that either - go straight to the web. -- ___

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

2022-03-22 Thread Steve Dower
Steve Dower added the comment: For the registry key, reading the default value from key "HKCU\Software\Python\PythonCore\{sys.winver}\Help\Main Python Documentation" (or HKLM - no need to worry about the Wow6432Node bit here) and passing it to os.startfile() will work for all active

[issue39298] add BLAKE3 to hashlib

2022-03-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: correction: our md5/sha1/sha2/sha3 code is not gone yet, but they are simple C implementations used as a fallback when the provider of optimal versions are unavailable (openssl for those). That keeps the copies of code in our tree simple and most people

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

2022-03-22 Thread Steve Dower
Steve Dower added the comment: Good call on IDLE, I didn't even think to check there (there is a registry key that points at the documentation if it was installed, which would be the best approach for IDLE to use). The makefiles don't urgently need to remove those references. If people

[issue13670] Increase test coverage for pstats.py

2022-03-22 Thread Irit Katriel
Irit Katriel added the comment: The patch needs to be reviewed. If the tests are still relevant and increase coverage, it needs to be converted to a GitHub PR. Otherwise this issue can be closed. -- keywords: +easy, newcomer friendly -patch nosy: +iritkatriel

[issue27132] New assert method that checks an error message for a list of strings

2022-03-22 Thread Irit Katriel
Irit Katriel added the comment: > Personally I'd write multiple asserts rather than regex permutations. I would too, because then when one of them fails it's clear which of the strings is missing. -- nosy: +iritkatriel ___ Python tracker

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

2022-03-22 Thread Ned Deily
Ned Deily added the comment: If you remove the .chm file from the Windows installer, I believe IDLE needs to be updated to look for the installed html files instead (see Lib/idlelib/editor.py). And does this mean we should no longer produce .chm files at all for 3.11+? If so, there is work

[issue2604] doctest.DocTestCase fails when run repeatedly

2022-03-22 Thread miss-islington
miss-islington added the comment: New changeset f163ad22d3321cb9bb4e6cbaac5a723444641565 by Miss Islington (bot) in branch '3.10': bpo-2604: Make doctest.DocTestCase reset globs in teardown (GH-31932) https://github.com/python/cpython/commit/f163ad22d3321cb9bb4e6cbaac5a723444641565

[issue2604] doctest.DocTestCase fails when run repeatedly

2022-03-22 Thread miss-islington
miss-islington added the comment: New changeset 3c6019035f16b673cf0f0be6918f7d5493e5690e by Miss Islington (bot) in branch '3.9': bpo-2604: Make doctest.DocTestCase reset globs in teardown (GH-31932) https://github.com/python/cpython/commit/3c6019035f16b673cf0f0be6918f7d5493e5690e

[issue13330] Attempt full test coverage of LocaleTextCalendar.formatweekday

2022-03-22 Thread Irit Katriel
Irit Katriel added the comment: See also issue25528. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25528] Attempt to further increase test coverage of calendar module

2022-03-22 Thread Irit Katriel
Irit Katriel added the comment: The patch needs to be reviewed. If the tests are still relevant and increase coverage, it needs to be converted to a GitHub PR. Otherwise this issue can be closed. See also issue13330. -- nosy: +iritkatriel ___

[issue13330] Attempt full test coverage of LocaleTextCalendar.formatweekday

2022-03-22 Thread Irit Katriel
Irit Katriel added the comment: The patch needs to be reviewed. If the tests are still relevant and increase coverage, it needs to be converted to a GitHub PR. Otherwise this issue can be closed. -- keywords: +easy -needs review, patch nosy: +iritkatriel versions: +Python 3.11

[issue22260] Rearrange tkinter tests, use test discovery

2022-03-22 Thread Irit Katriel
Irit Katriel added the comment: The patch looks very out of date. Let mw know if it's still needed, otherwise I'll close. -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue2604] doctest.DocTestCase fails when run repeatedly

2022-03-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +30150 pull_request: https://github.com/python/cpython/pull/32058 ___ Python tracker ___

[issue2604] doctest.DocTestCase fails when run repeatedly

2022-03-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +30149 pull_request: https://github.com/python/cpython/pull/32057 ___ Python tracker

[issue2604] doctest.DocTestCase fails when run repeatedly

2022-03-22 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 7ba7eae50803b11766421cb8aae1780058a57e2b by Daniël van Noord in branch 'main': bpo-2604: Make doctest.DocTestCase reset globs in teardown (GH-31932) https://github.com/python/cpython/commit/7ba7eae50803b11766421cb8aae1780058a57e2b --

[issue17733] Add tests to test__header_value_parser for RFC 2231 parsing code

2022-03-22 Thread Irit Katriel
New submission from Irit Katriel : I believe this is about smtpd, which is now deprecated under PEP 594. So I think we can close it. -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python tracker

[issue46712] Share global string identifiers in deepfreeze

2022-03-22 Thread Eric Snow
Eric Snow added the comment: > After a new `&_Py_ID(__orig_class__)` is added to > Objects/genericaliasobject.c, running `make regen-global-objects` starts > > gcc -pthread -c [snipped] -DPy_BUILD_CORE -o Objects/genericaliasobject.o > Objects/genericaliasobject.c > > which fails with a

[issue47090] Make zlib required on all platforms (simplifies code)

2022-03-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: Bringing this up on discord, others point out that the windows build requires zlib for convenience when we transitioned from having a vendored copy in our repo and that smaller "embedded" use cases may not like this if they don't already need the dep. But

[issue46788] regrtest fails to start on missing performance counter names

2022-03-22 Thread Eryk Sun
Change by Eryk Sun : Removed file: https://bugs.python.org/file50695/loadtracker.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46788] regrtest fails to start on missing performance counter names

2022-03-22 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg415781 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue47096] Use the PDH API in WindowsLoadTracker

2022-03-22 Thread Eryk Sun
New submission from Eryk Sun : In bpo-44336, a new version of WindowsLoadTracker was implemented in Lib/test/libregrtest/win_utils.py. This version resolves issues with the previous implementation that spawned typeperf.exe. The new implementation uses the registry API's HKEY_PERFORMANCE_DATA

[issue47095] Deprecate blake2's tree hashing feature

2022-03-22 Thread Christian Heimes
New submission from Christian Heimes : Python's blake2 implementation provides hashing, MAC (key, salt, personalization), variable length output, and tree hashing [1]. All features except for tree hashing are provided by OpenSSL 3.0.0 and newer [2]. It is unlikely that OpenSSL will get tree

[issue39298] add BLAKE3 to hashlib

2022-03-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: hashlib creator and other maintainer here: I do not think it was a good idea for us to add blake2 to hashlib the way we did. So blake3 should not be presumed as a given, at least not done in the same manner. Background: While OpenSSL gained _some_ blake2

[issue47091] Improve performance of list and tuple repeat methods

2022-03-22 Thread Pieter Eendebak
Pieter Eendebak added the comment: The special case of a repeat with n=1 does not use memcpy. An implementation with it showed no performance improvement. -- ___ Python tracker

[issue35540] dataclasses.asdict breaks with defaultdict fields

2022-03-22 Thread Tiger
Change by Tiger : -- nosy: +kwsp nosy_count: 7.0 -> 8.0 pull_requests: +30148 pull_request: https://github.com/python/cpython/pull/32056 ___ Python tracker ___

[issue47094] index doesn't change while looping through same elements in a list

2022-03-22 Thread Dennis Sweeney
Dennis Sweeney added the comment: The help text says this: >>> help(list.index) Help on method_descriptor: index(self, value, start=0, stop=9223372036854775807, /) Return first index of value. Raises ValueError if the value is not present. Emphasis

[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-22 Thread Brett Cannon
Brett Cannon added the comment: New changeset af341ebf00d9a45cadea4c07810564d8e8962b96 by Hugo van Kemenade in branch '3.9': [3.9] bpo-47022: Document asynchat, asyncore and smtpd removals in 3.12 (GH-31891) (#31998)

[issue47092] [C API] Add PyFrame_GetVar(frame, name) function

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-42197: Disable automatic update of frame locals during tracing. -- ___ Python tracker ___

[issue42197] Disable automatic update of frame locals during tracing

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-47092: [C API] Add PyFrame_GetVar(frame, name) function. -- ___ Python tracker ___

[issue42197] Disable automatic update of frame locals during tracing

2022-03-22 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +30147 pull_request: https://github.com/python/cpython/pull/32055 ___ Python tracker ___

[issue32033] The pwd module implementation incorrectly sets some attributes to None

2022-03-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset 4aea656d62860e78cd8384f2de375f0d4f1db579 by Christian Heimes in branch 'main': bpo-32033: Finalize WASI configure options (GH-32053) https://github.com/python/cpython/commit/4aea656d62860e78cd8384f2de375f0d4f1db579 --

[issue44336] Windows buildbots hang after fatal exit

2022-03-22 Thread Jeremy Kloth
Change by Jeremy Kloth : -- pull_requests: +30146 pull_request: https://github.com/python/cpython/pull/32048 ___ Python tracker ___

[issue46788] regrtest fails to start on missing performance counter names

2022-03-22 Thread Steve Dower
Steve Dower added the comment: Backports have been merged -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___

[issue44336] Windows buildbots hang after fatal exit

2022-03-22 Thread Steve Dower
Steve Dower added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44336] Windows buildbots hang after fatal exit

2022-03-22 Thread Steve Dower
Steve Dower added the comment: New changeset 8db7610d1a7b1f90631bac26261338f27bd20727 by Jeremy Kloth in branch '3.9': bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578) https://github.com/python/cpython/commit/8db7610d1a7b1f90631bac26261338f27bd20727

[issue44336] Windows buildbots hang after fatal exit

2022-03-22 Thread Steve Dower
Steve Dower added the comment: New changeset 8146e6b636905d9872140c990d93308ac20d13f0 by Jeremy Kloth in branch '3.10': bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578) https://github.com/python/cpython/commit/8146e6b636905d9872140c990d93308ac20d13f0

[issue42917] Block stack size for frame objects should be dynamically sizable

2022-03-22 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +30145 pull_request: https://github.com/python/cpython/pull/32055 ___ Python tracker ___

[issue46965] Enable informing callee it's awaited via vector call flag

2022-03-22 Thread Vladimir Matveev
Vladimir Matveev added the comment: - introducing dedicated opcodes for each kind of awaited call is definitely an option. In fact first implementation used it however as Dino has mentioned it was more of a logistical issue (there were several spots that produced .pyc files so compiler

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

2022-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30144 pull_request: https://github.com/python/cpython/pull/32054 ___ Python tracker ___

[issue32033] The pwd module implementation incorrectly sets some attributes to None

2022-03-22 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes nosy_count: 5.0 -> 6.0 pull_requests: +30143 pull_request: https://github.com/python/cpython/pull/32053 ___ Python tracker

[issue38242] Revert the new asyncio Streams API

2022-03-22 Thread Ian Good
Change by Ian Good : -- nosy: +icgood nosy_count: 9.0 -> 10.0 pull_requests: +30142 pull_request: https://github.com/python/cpython/pull/13143 ___ Python tracker ___

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

2022-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30141 pull_request: https://github.com/python/cpython/pull/32052 ___ Python tracker ___

[issue47093] Documentation Fix: Remove .bat when activating venv on windows

2022-03-22 Thread Eryk Sun
Eryk Sun added the comment: Running `tutorial-env\Scripts\activate` should suffice. The .bat script is for CMD, and the .ps1 script is for PowerShell. The shell should run the right script without having to include the extension. In Windows 10+, if you use a case-sensitive directory for

[issue45150] Add a file_digest() function in hashlib

2022-03-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset e03db6d5be7cf2e6b7b55284985c404de98a9420 by Christian Heimes in branch 'main': bpo-45150: Fix testing under FIPS mode (GH-32046) https://github.com/python/cpython/commit/e03db6d5be7cf2e6b7b55284985c404de98a9420 --

[issue47092] [C API] Add PyFrame_GetVar(frame, name) function

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: If PyFrameStack_GetVar(depth, name) is added, would it make PyFrame_GetVar() irrelevant? -- ___ Python tracker ___

[issue40421] [C API] Add public getter functions for the internal PyFrameObject structure

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: Issue title: "[C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API" bpo-46836 moved PyFrameObject to the internal C API. I update the issue title. -- title: [C API] Add getter functions for PyFrameObject

[issue47092] [C API] Add PyFrame_GetVar(frame, name) function

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: See also: * bpo-46836: [C API] Move PyFrameObject to the internal C API. * bpo-46836: GH-32051 "Add Doc/c-api/frame.rst" * bpo-40421: [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API. --

[issue42885] Optimize re.search() for \A (and maybe ^)

2022-03-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40065] py39: remove deprecation note for xml.etree.cElementTree

2022-03-22 Thread Irit Katriel
Irit Katriel added the comment: > We are currently debating to bring the module back and warn users that it > will be removed in 3.10. Doesn't look like it was removed in 3.10. Was this an oversight? -- nosy: +iritkatriel ___ Python tracker

[issue42885] Optimize re.search() for \A (and maybe ^)

2022-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 492d4109f4d953c478cb48f17aa32adbb912623b by Serhiy Storchaka in branch 'main': bpo-42885: Optimize search for regular expressions starting with "\A" or "^" (GH-32021)

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

2022-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30140 pull_request: https://github.com/python/cpython/pull/32051 ___ Python tracker ___

[issue45997] asyncio.Semaphore waiters deque doesn't work

2022-03-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset f47984b560f1dafe4d907cef4edadfb1746bf027 by Andrew Svetlov in branch '3.9': [3.9] bpo-45997: Fix asyncio.Semaphore re-acquiring order (GH-31910) (GH-32049) https://github.com/python/cpython/commit/f47984b560f1dafe4d907cef4edadfb1746bf027

[issue45997] asyncio.Semaphore waiters deque doesn't work

2022-03-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 9d59381a5d20157930bae34e5f5a7bc5ef09fa89 by Miss Islington (bot) in branch '3.10': [3.10] bpo-45997: Fix asyncio.Semaphore re-acquiring order (GH-31910) (#32047) https://github.com/python/cpython/commit/9d59381a5d20157930bae34e5f5a7bc5ef09fa89

[issue47094] index doesn't change while looping through same elements in a list

2022-03-22 Thread Tk44
New submission from Tk44 : Let us define a list where there are some duplicate elements. If we loop through that list as "for i in my_list" and print the index by my_list.index(i); the index doesn't change. e.g. my_list = [1,1,1,1,3] for elm in my_list: print(my_list.index(elm))

[issue47092] [C API] Add PyFrame_GetVar(frame, name) function

2022-03-22 Thread Mark Shannon
Mark Shannon added the comment: I'm looking into adding two new APIs. One to round out the getters for FrameObject and one to introspect the internal frame stack. It would probably make more sense to add this capability to the frame stack API, as it would avoid creating the frame object as

[issue47093] Documentation Fix: Remove .bat when activating venv on windows

2022-03-22 Thread J Y
New submission from J Y : https://docs.python.org/3/tutorial/venv.html For windows, tutorial-env\Scripts\activate.bat doesn't appear to set up venv successfully. Instead, tutorial-env\Scripts\activate (without .bat) works. This may confuse new users if this is not rectified. --

[issue45963] Embed interpreter frame in generator.

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: Leak fixed by: commit 064e53d19aea6d6906fa8f7706a2556a2c293ccd Author: Mark Shannon Date: Tue Dec 7 18:05:48 2021 + Fix leak when an exception is raised during generator creation. (GH-29960) -- nosy: +vstinner

[issue46788] regrtest fails to start on missing performance counter names

2022-03-22 Thread Eryk Sun
Eryk Sun added the comment: I implemented a ctypes prototype that replaces the registry-based implementation with the API calls PdhOpenQueryW(), PdhAddEnglishCounterW(), PdhCollectQueryData(), PdhGetRawCounterValue(), and PdhCloseQuery(). I'm attaching the script, but here's the class

  1   2   >