[issue46864] Deprecate ob_shash in BytesObject

2022-03-22 Thread Ma Lin
Ma Lin added the comment: Since hash() is a public function, maybe some users use hash value to manage bytes objects in their own way, then there may be a performance regression. For a rough example, dispatch data to 16 servers. h = hash(b) sendto(server_number=h & 0xF, data=b)

[issue46864] Deprecate ob_shash in BytesObject

2022-03-22 Thread Inada Naoki
Inada Naoki added the comment: Since the hash is randomized, using hash(bytes) for such use case is not recommended. User should use stable hash functions instead. I agree that there is few use cases this change cause performance regression. But it is really few compared to overhead of addin

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

2022-03-22 Thread Gregory P. Smith
New submission from Gregory P. Smith : We have a pile of conditionals and extra code in CPython to deal with building on systems that do not have zlib. The zlib C library has been around forever at this point and should be present on every system in the world. zlib is already required on Win

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

2022-03-22 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +30133 pull_request: https://github.com/python/cpython/pull/32043 ___ Python tracker ___ ___

[issue47043] Argparse can't parse subparsers with parse_known_args

2022-03-22 Thread rive_n
rive_n added the comment: Long time no updates here. Another fix. In past version more than 1 argument could not be parsed. Fix (finally with unittests): ```python3 def __call__(self, parser, namespace, values, option_string=None, arg_strings_pattern:list =None): o_amount = arg_s

[issue47006] PEP 646: Decide on substitution behavior

2022-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Alias = C[T, *Ts] > Alias2 = Alias[*tuple[int, ...]] > # Alias2 should be C[int, *tuple[int, ...]] tuple[int, ...] includes also an empty tuple, and in this case there is no value for T. > Oh, also interesting - I didn't know about this one either. Could

[issue47006] PEP 646: Decide on substitution behavior

2022-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > 1. Some edge case seems to be that if *tuple[...] is involved on either side > we will never simplify. Or perhaps a better rule is that *tuple[...] is never > simplified away (but fixed items before and after it may be). I do not understand this. Do you

[issue45150] Add a file_digest() function in hashlib

2022-03-22 Thread miss-islington
miss-islington added the comment: New changeset 4f97d64c831c94660ceb01f34d51fa236ad968b0 by Christian Heimes in branch 'main': bpo-45150: Add hashlib.file_digest() for efficient file hashing (GH-31930) https://github.com/python/cpython/commit/4f97d64c831c94660ceb01f34d51fa236ad968b0 ---

[issue47081] Replace "qualifiers" with "quantifiers" in the re module documentation

2022-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c6cd3cc93c40363ce704d34a70e6fb73ea1d97a3 by Serhiy Storchaka in branch 'main': bpo-47081: Replace "qualifiers" with "quantifiers" in the re module documentation (GH-32028) https://github.com/python/cpython/commit/c6cd3cc93c40363ce704d34a70e6f

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

2022-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a25a985535ccbb7df8caddc0017550ff4eae5855 by Serhiy Storchaka in branch 'main': bpo-28080: Add support for the fallback encoding in ZIP files (GH-32007) https://github.com/python/cpython/commit/a25a985535ccbb7df8caddc0017550ff4eae5855 ---

[issue47081] Replace "qualifiers" with "quantifiers" in the re module documentation

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

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

2022-03-22 Thread miss-islington
miss-islington added the comment: New changeset deeaac49e267285158264643799624623f4a7b29 by Christian Heimes in branch 'main': bpo-40280: Skip socket, fork, subprocess tests on Emscripten (GH-31986) https://github.com/python/cpython/commit/deeaac49e267285158264643799624623f4a7b29 --

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2022-03-22 Thread Thomas Grainger
Change by Thomas Grainger : -- keywords: +patch nosy: +graingert nosy_count: 4.0 -> 5.0 pull_requests: +30134 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/32044 ___ Python tracker

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2022-03-22 Thread Mark Shannon
Mark Shannon added the comment: You are on own if you create code objects by calling `types.CodeType`. The docs could be a lot clearer about that, though. -- ___ Python tracker __

[issue47085] missing frame.f_lineno on JUMP_ABSOLUTE

2022-03-22 Thread Mark Shannon
Mark Shannon added the comment: The `JUMP_ABSOLUTE` doesn't have a line number, as it doesn't correspond to any source. The jump back to the top could follow either the `if i >= 0:` or the `pass`, so cannot have a line number. Don't expect every bytecode to map directly back to the source,

[issue46838] Parameters and arguments parser syntax error improvments

2022-03-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7d810b6a4eab6eba689acc5bb05f85515478d690 by Pablo Galindo Salgado in branch 'main': bpo-46838: Syntax error improvements for function definitions (GH-31590) https://github.com/python/cpython/commit/7d810b6a4eab6eba689acc5bb05f85515478d690

[issue39298] add BLAKE3 to hashlib

2022-03-22 Thread Larry Hastings
Larry Hastings added the comment: Jack: I've updated the PR, improving compatibility with the "blake3" package on PyPI. I took your notes, and also looked at the C module you wrote. The resulting commit is here: https://github.com/python/cpython/pull/31686/commits/37ce72b0444ad63fd1989ad36b

[issue47091] Improve performance of list and tuple repeat methods

2022-03-22 Thread Pieter Eendebak
New submission from Pieter Eendebak : Approach is similar to https://github.com/python/cpython/pull/31856 and https://github.com/python/cpython/pull/31999 -- components: Interpreter Core messages: 415762 nosy: pieter.eendebak priority: normal severity: normal status: open title: Improv

[issue47091] Improve performance of list and tuple repeat methods

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

[issue47084] Statically allocated Unicode objects leak cached representations

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 88872a29f19092d2fde27365af230abd6d301941 by Jeremy Kloth in branch 'main': bpo-47084: Clear Unicode cached representations on finalization (GH-32032) https://github.com/python/cpython/commit/88872a29f19092d2fde27365af230abd6d301941 --

[issue47084] Statically allocated Unicode objects leak cached representations

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: > The newly implemented statically allocated Unicode objects do not clear their > cached representations (wstr and utf-8) at exit causing leaked blocks at exit > (see also issue46857). Good job to discover this single leaking memory allocation!!! --

[issue46857] Python leaks one reference at exit on Windows

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: The last leak of a memory block on Windows was fixed by: New changeset 88872a29f19092d2fde27365af230abd6d301941 by Jeremy Kloth in branch 'main': bpo-47084: Clear Unicode cached representations on finalization (GH-32032) https://github.com/python/cpython/comm

[issue47045] Remove the RESUME instruction

2022-03-22 Thread Mark Shannon
Mark Shannon added the comment: New changeset 49daf6dba8178c5ae5d4d65408b20566d39c36a8 by Mark Shannon in branch 'main': bpo-47045: Remove `f_state` field (GH-31963) https://github.com/python/cpython/commit/49daf6dba8178c5ae5d4d65408b20566d39c36a8 -- ___

[issue45150] Add a file_digest() function in hashlib

2022-03-22 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +30136 pull_request: https://github.com/python/cpython/pull/32046 ___ Python tracker ___

[issue25489] sys.exit() caught in async event loop exception handler

2022-03-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: > Is it safe to use `locale.getlocale(locale.LC_CTYPE)[1] or "UTF-8"`? I would like to deprecate getlocale(), see bpo-43557. -- ___ Python tracker _

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

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: > But some user want to use UTF-8 mode to change default encoding in their > Python environments without waiting Python default encoding changed. IMO it's a different use case and it should be a different thing. Changing encoding="locale" today is too late,

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

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: I propose: * sys.getfilesystemencoding(): Python filesystem encoding, return "UTF-8" if the Python UTF-8 Mode is enabled * Implementation: PyConfig.filesystem_encoding * https://docs.python.org/dev/library/sys.html#sys.getfilesystemencoding * https://

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 673755bfbac46b3cd2c84d7e0d68c2c488e039c3 by Andrew Svetlov in branch 'main': bpo-47076: Make asyncio.Queue stable on slow test boxes (GH-32040) https://github.com/python/cpython/commit/673755bfbac46b3cd2c84d7e0d68c2c488e039c3 -- _

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

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

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

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

2022-03-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +30137 pull_request: https://github.com/python/cpython/pull/32047 ___ Python tracker _

[issue46724] Odd Bytecode Generation in 3.10

2022-03-22 Thread Mark Shannon
Mark Shannon added the comment: I think this is fixed (for 3.11 at least) by https://github.com/python/cpython/pull/31888 -- ___ Python tracker ___ __

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: Thank you Andrew! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

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

2022-03-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +30138 pull_request: https://github.com/python/cpython/pull/32049 ___ Python tracker ___ __

[issue44336] Windows buildbots hang after fatal exit

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

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

2022-03-22 Thread Jeremy Kloth
Jeremy Kloth added the comment: Backports state that they are ready... I'm just a little uneasy as I've never used cherry_picker before. 3.10 went smooth, but 3.9 required manual merging. -- ___ Python tracker

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

2022-03-22 Thread STINNER Victor
New submission from STINNER Victor : In Python 3.10, it's possible to call PyFrame_FastToLocalsWithError() on a frame to get all variables as a dictionary. In Python, getting frame.f_locals calls PyFrame_FastToLocalsWithError(). It's used by the pdb module for example: self.curframe_local

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

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

[issue47076] test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x

2022-03-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Welcome! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: > In Python 3.10, it's possible to call PyFrame_FastToLocalsWithError() on a > frame to get all variables as a dictionary. In 2018, it was decided to *not* document this function: see bpo-19431. In C, It is possible to call PyObject_GetAttrString(frame, "f_l

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

2022-03-22 Thread STINNER Victor
STINNER Victor added the comment: Currently, Tools/gdb/libpython.py uses PyFramePtr.iter_locals() which iterates on PyFrameObject.f_frame.localsplus. There is a PyFramePtr.get_var_by_name() function which only checks for frame variables in PyFrameObject.f_frame.localsplus, or look up in glob

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

[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

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

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

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

[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

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

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

[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) https://github.com/python/cpython/commit/492d4109f4d953c478cb48f17aa32adbb9

[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
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

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

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

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

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

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

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

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

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

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

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

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

[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: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ 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 Jeremy Kloth
Change by Jeremy Kloth : -- pull_requests: +30146 pull_request: https://github.com/python/cpython/pull/32048 ___ 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 -- __

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

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

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

[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) https://github.com/python/cpython/commit/af341ebf00d9a45cadea4c07810564d8e8

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

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

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

[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

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

[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

[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

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

[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

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

[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

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

[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 miss-islington
Change by miss-islington : -- pull_requests: +30150 pull_request: https://github.com/python/cpython/pull/32058 ___ Python tracker ___ ___

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

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

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

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

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

[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

[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

[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

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

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

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

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

  1   2   >