[issue47061] Deprecate modules listed in PEP 594

2022-03-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue47040] Fix confusing versionchanged note in crc32 and adler32

2022-03-20 Thread miss-islington
miss-islington added the comment: New changeset 73f4b475d1d70c9ef0db9e6c79771d1a43d43a33 by Miss Islington (bot) in branch '3.9': [3.10] bpo-47040: improve document of checksum functions (GH-31955) (GH-32002) https://github.com/python/cpython/commit/73f4b475d1d70c9ef0db9e6c79771d1a43d43a33

[issue47064] thread QOS attribute on macOS

2022-03-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: > For example, using a priority policy that actually uses QOS attribute :) How would that look? The QOS class is already a high level interface that affects a number of low-level polices. The classes are comprehensively documented in sys/qos.h. In short (

[issue32927] Add typeshed documentation for unittest.TestCase._feedErrorsToResult and ._outcome

2022-03-20 Thread Irit Katriel
Irit Katriel added the comment: I think this should have been opened on the typeshed issue tracker. -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___ __

[issue40666] TarFile.add does not support pathlib.Path as a value to first argument.

2022-03-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue46759] sys.excepthook documentation doesn't mention that it isn't called for SystemExit

2022-03-20 Thread Irit Katriel
Irit Katriel added the comment: See also Issue25489. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2022-03-20 Thread Irit Katriel
Irit Katriel added the comment: See also Issue46759. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46013] Confusing period in object.__hash__ doc

2022-03-20 Thread Irit Katriel
Irit Katriel added the comment: New changeset 3af68fc77c528d4e7749046cf6e41fd79902e6e6 by jmcb in branch 'main': bpo-46013: Fix confusing kerning on period in docs (GH-29989) https://github.com/python/cpython/commit/3af68fc77c528d4e7749046cf6e41fd79902e6e6 -- nosy: +iritkatriel

[issue46013] Confusing period in object.__hash__ doc

2022-03-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +30094 pull_request: https://github.com/python/cpython/pull/32006 ___ Python tracker ___ __

[issue46013] Confusing period in object.__hash__ doc

2022-03-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +30093 pull_request: https://github.com/python/cpython/pull/32005 ___ Python tracker _

[issue32927] Add typeshed documentation for unittest.TestCase._feedErrorsToResult and ._outcome

2022-03-20 Thread Alex Waygood
Alex Waygood added the comment: Typeshed maintainer here: I agree. Feel free to open an issue over at https://github.com/python/typeshed if this is still a problem! -- nosy: +AlexWaygood resolution: -> third party stage: -> resolved status: pending -> closed ___

[issue46013] Confusing period in object.__hash__ doc

2022-03-20 Thread Irit Katriel
Irit Katriel added the comment: New changeset 87b3e202d46cdeb0a6b1ef041579a5ebc7c826a9 by Miss Islington (bot) in branch '3.10': bpo-46013: Fix confusing kerning on period in docs (GH-29989) (GH-32005) https://github.com/python/cpython/commit/87b3e202d46cdeb0a6b1ef041579a5ebc7c826a9 ---

[issue46013] Confusing period in object.__hash__ doc

2022-03-20 Thread Irit Katriel
Irit Katriel added the comment: New changeset 504973a13336d8a4d20459f68de9647a1fb25966 by Miss Islington (bot) in branch '3.9': bpo-46013: Fix confusing kerning on period in docs (GH-29989) (GH-32006) https://github.com/python/cpython/commit/504973a13336d8a4d20459f68de9647a1fb25966

[issue46013] Confusing period in object.__hash__ doc

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

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

2022-03-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30095 pull_request: https://github.com/python/cpython/pull/32007 ___ Python tracker ___

[issue37952] Add support for export_keying_material to SSL library

2022-03-20 Thread Hans-Christoph Steiner
Hans-Christoph Steiner added the comment: I understand the frustrations here, but this is really not a place to vent, since that only harms everyone's interests. When a core maintainer voices concerns or questions, they need to be addressed. This goes for any project. I'll see if I can con

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

2022-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I experimented with this a lot. There is a problem with the append mode. We can read in the append mode, therefore we need an encoding. But when we close a ZipFile after appending, non-ASCII file names will be encoded in UTF-8 in the central directory. Nex

[issue43902] ssl module: add getter for SSL_CTX* and SSL*

2022-03-20 Thread Hans-Christoph Steiner
Hans-Christoph Steiner added the comment: This general idea sounds nice to have, I hope it can be included. `ctx._call_with_ctypes("SSL_CTX_set_ciphersuites"...` also sounds totally workable to me, if that has the best security profile. Defense in depth is important, but it is not a reason

[issue42369] Reading ZipFile not thread-safe

2022-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e730ae7effe4f13b24f1b5fb1fca005709c86acb by Kevin Mehall in branch 'main': bpo-42369: Fix thread safety of zipfile._SharedFile.tell (GH-26974) https://github.com/python/cpython/commit/e730ae7effe4f13b24f1b5fb1fca005709c86acb --

[issue42369] Reading ZipFile not thread-safe

2022-03-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +30096 pull_request: https://github.com/python/cpython/pull/32008 ___ Python tracker

[issue42369] Reading ZipFile not thread-safe

2022-03-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +30097 pull_request: https://github.com/python/cpython/pull/32009 ___ Python tracker ___ __

[issue47015] Update tests from asyncore to asyncio

2022-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 3ae975f1ac880c47d51cca6c9e305547bd365be7 by Oleg Iarygin in branch 'main': bpo-47015: Update test_os from asyncore to asyncio (GH-31876) https://github.com/python/cpython/commit/3ae975f1ac880c47d51cca6c9e305547bd365be7 --

[issue47015] Update tests from asyncore to asyncio

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

[issue42369] Reading ZipFile not thread-safe

2022-03-20 Thread miss-islington
miss-islington added the comment: New changeset 4352ca234e979ad1c7158981addf899b119cd448 by Miss Islington (bot) in branch '3.10': bpo-42369: Fix thread safety of zipfile._SharedFile.tell (GH-26974) https://github.com/python/cpython/commit/4352ca234e979ad1c7158981addf899b119cd448 --

[issue42369] Reading ZipFile not thread-safe

2022-03-20 Thread miss-islington
miss-islington added the comment: New changeset 4aa8b802513340d12a6ffea3d5e2228ac6c7d5b8 by Miss Islington (bot) in branch '3.9': bpo-42369: Fix thread safety of zipfile._SharedFile.tell (GH-26974) https://github.com/python/cpython/commit/4aa8b802513340d12a6ffea3d5e2228ac6c7d5b8 --

[issue47071] asyncio proactor udp transport stops responding after send to port that isn't listening

2022-03-20 Thread Erik Soma
New submission from Erik Soma : Reproducer attached. Change `USE_PROACTOR` to `False` to use the `SelectorEventLoop` instead, which doesn't exhibit this behavior. The output on my machine when using the proactor loop is: ``` datagram received b'ping 1' datagram received b'ping 2' ``` And the

[issue47071] asyncio proactor udp transport stops responding after send to port that isn't listening

2022-03-20 Thread Erik Soma
Erik Soma added the comment: Uploading my hack to `asyncio.windows_events.py` -- this is based off 3.10.2's distribution. -- Added file: https://bugs.python.org/file50692/windows_events.py ___ Python tracker __

[issue47067] Add vectorcall for generica alias object

2022-03-20 Thread penguin_wwy
penguin_wwy <940375...@qq.com> added the comment: The point of bpo-40369 issue seems to be to provide vectorcall to the `GenericAliasType`, means vectorcall for `Queue[int]` However, my idea is to add vectorcall to gaobject, like this: ``` d = dict[int] d(a=1, b=2) <-- vectorcall ``` The idea

[issue47067] Add vectorcall for generica alias object

2022-03-20 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +JelleZijlstra, gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue47071] asyncio proactor udp transport stops responding after send to port that isn't listening

2022-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for the report. Could you make a pull request? The whole attached windows_events.py is hard to analyze. -- ___ Python tracker ___

[issue47067] Add vectorcall for generica alias object

2022-03-20 Thread penguin_wwy
penguin_wwy <940375...@qq.com> added the comment: There is a small problem with the example: ``` d = dict[int] ``` should ``` d = dict[str, int] ``` -- ___ Python tracker __

[issue47067] Add vectorcall for generica alias object

2022-03-20 Thread Guido van Rossum
Guido van Rossum added the comment: @Dennis, if/when the PR looks good to you, you can merge it. -- ___ Python tracker ___ ___ Pyth

[issue42658] os.path.normcase() is inconsistent with Windows file system

2022-03-20 Thread AN Long
Change by AN Long : -- keywords: +patch nosy: +asaka nosy_count: 7.0 -> 8.0 pull_requests: +30098 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32010 ___ Python tracker

[issue47071] asyncio proactor udp transport stops responding after send to port that isn't listening

2022-03-20 Thread Erik Soma
Change by Erik Soma : -- keywords: +patch pull_requests: +30099 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32011 ___ Python tracker ___ __

[issue47071] asyncio proactor udp transport stops responding after send to port that isn't listening

2022-03-20 Thread Erik Soma
Erik Soma added the comment: Certainly: https://github.com/python/cpython/pull/32011 -- ___ Python tracker ___ ___ Python-bugs-list

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

2022-03-20 Thread Guido van Rossum
Guido van Rossum added the comment: Andrew, would you be interested in investigating this? I can't even follow the flow through asyncio that causes the observed behavior (though I seem to have confirmed it). -- nosy: +asvetlov ___ Python tracker

[issue42369] Reading ZipFile not thread-safe

2022-03-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker

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

2022-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Not sure if the issue is still relevant. asyncio re-raises KeyboardInterrupt explicitly in all loop.call_exception_handler() branches: https://github.com/python/cpython/blob/main/Lib/asyncio/base_events.py#L1759-L1814 --

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

2022-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: The change exists since Python 3.8 (October of 2019) The issue discussion belongs to 2015 -- ___ Python tracker ___ _

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

2022-03-20 Thread Guido van Rossum
Guido van Rossum added the comment: Nevertheless, the example code still hangs after calling sys.exit(). I can't quite tell where it is hanging. -- ___ Python tracker ___ ___

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

2022-03-20 Thread Guido van Rossum
Guido van Rossum added the comment: With python built from main I get: /Users/guido/test_sys_exit_in_exception_handler.py:12: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() Got error, exiting Exception ignored in: > Traceback (most recent call last): Fi

[issue47006] PEP 646: Decide on substitution behavior

2022-03-20 Thread Guido van Rossum
Guido van Rossum added the comment: I think I'm with Serhiy, I don't understand the hesitance to transform tuple[*Ts][int, str] into tuple[int, str]. What would be an example of a substitution that's too complex to do? -- ___ Python tracker

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

2022-03-20 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue47064] thread QOS attribute on macOS

2022-03-20 Thread Dong-hee Na
Dong-hee Na added the comment: > I'd be more interested in trying to implement the same interface on other > platforms using the low-level APIs for those platforms Yeah, I am on the same line, I prefer to provide the interface that the user actually doesn't care about implementation detail.

[issue47072] Database corruption with the shelve module

2022-03-20 Thread Hubert Tournier
New submission from Hubert Tournier : After adding a few records, the shelve module corrupts the database keys (the database is still readable if an element key is known, but no more iterable): Traceback (most recent call last): File "./shelve-test.py", line 81, in _verify_whois_cache()

[issue37789] Update doc strings for test.bytecode_helper

2022-03-20 Thread Irit Katriel
Irit Katriel added the comment: This has been fixed by now. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue47051] Windows v3.10.3 .chm file (in python310\doc) page headings are messed up and spread out over several lines. Also the font has changed from the former san serif font to a smaller and harde

2022-03-20 Thread Ned Deily
Change by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Pytho

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2022-03-20 Thread Anton Agestam
Anton Agestam added the comment: As a consumer of `get_type_hints()` I think it'd be valuable to even have partially resolved types. My use case is that I provide an `Annotated` alias with a marker, and all I care about when inspecting user type hints is whether or not the arguments of an `A

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2022-03-20 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood, JelleZijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38256] binascii.crc32 is not 64-bit clean when USE_ZLIB_CRC32

2022-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 9d1c4d69dbc800ac344565119337fcf490cdc800 by Gregory P. Smith in branch 'main': bpo-38256: Fix binascii.crc32() when inputs are 4+GiB (GH-32000) https://github.com/python/cpython/commit/9d1c4d69dbc800ac344565119337fcf490cdc800 -- ___

[issue42871] Regex compilation crashed if I change order of alternatives under quantifier

2022-03-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue34406] Typo in documentation

2022-03-20 Thread Irit Katriel
Irit Katriel added the comment: This has been fixed by now. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue33028] [doc] tempfile.TemporaryDirectory documentation improvements

2022-03-20 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: tempfile.TemporaryDirectory incorrectly documented -> [doc] tempfile.TemporaryDirectory documentation improvements versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python 3.8 __

[issue47067] Add vectorcall for generica alias object

2022-03-20 Thread Dennis Sweeney
Dennis Sweeney added the comment: I profiled dict[str, int](a=1, b=2), and it looks like a decent chunk of time comes from PyUnicode_New as used by PyObject_SetAttrString. You could also try replacing PyObject_SetAttrString with PyObject_SetAttr and adding "__orig_class__" to the global stri

[issue47060] importlib.metadata.version can return None

2022-03-20 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: -> jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue46774] Importlib.metadata.version picks first distribution not latest

2022-03-20 Thread Jason R. Coombs
Jason R. Coombs added the comment: Closing without prejudice. Happy to revisit if there's more information on how importlib could/should behave differently. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue23691] re.finditer iterator is not reentrant, but doesn't protect against nested calls to __next__

2022-03-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +30100 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32012 ___ Python tracker

[issue23691] re.finditer iterator is not reentrant, but doesn't protect against nested calls to __next__

2022-03-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker ___

[issue39971] [doc] Error in functional how-to example

2022-03-20 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: Error in functional how-to example -> [doc] Error in functional how-to example versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker __

[issue38256] binascii.crc32 is not 64-bit clean when USE_ZLIB_CRC32

2022-03-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +30101 pull_request: https://github.com/python/cpython/pull/32013 ___ Python tracker ___

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

2022-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 94f038cbb27dc6d1a74ae2bfedea674911f8e8c6 by Hugo van Kemenade in branch '3.10': [3.10] bpo-47022: Document asynchat, asyncore and smtpd removals in 3.12 (GH-31891) (#31997) https://github.com/python/cpython/commit/94f038cbb27dc6d1a74ae2bfedea67

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

2022-03-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: sys.exit() caught in exception handler -> sys.exit() caught in async event loop exception handler ___ Python tracker ___ ___

[issue35967] Better platform.processor support

2022-03-20 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'm going to close this issue again, as the implementation is now present in at least a couple of releases. May I suggest that if there are ongoing concerns or issues to open up a new issue and reference this one and loop me into the conversation? I'm also

[issue46125] Test the preferred API instead of relying on legacy for coverage

2022-03-20 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue47054] "SyntaxError: non-default argument follows default argument" confuses

2022-03-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch nosy: +gregory.p.smith nosy_count: 4.0 -> 5.0 pull_requests: +30102 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32014 ___ Python tracker

[issue47054] "SyntaxError: non-default argument follows default argument" confuses

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

[issue47065] test_curses fails if terminal defaults to bright white text (15)

2022-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: can we reliably query for what the default is and add that to the expectations? or just skip the test if the defaults don't match our expectations (less ideal)? if those are a challenge to do reliably - adding 15, 0 to the expected set may be the most pr

[issue47064] thread QOS attribute on macOS

2022-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: Definitely not an OS specific concept. Big.little configs are all over the place on all OSes and architectures these days. With a variety of ways OSes are experimenting with scheduling for them (nevermind that Android and iOS have been doing this for a d

[issue38256] binascii.crc32 is not 64-bit clean when USE_ZLIB_CRC32

2022-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 4c989e19c84ec224655bbbde9422e16d4a838a80 by Gregory P. Smith in branch '3.10': [3.10] bpo-38256: Fix binascii.crc32 large input. (GH-32000) (GH-32013) https://github.com/python/cpython/commit/4c989e19c84ec224655bbbde9422e16d4a838a80

[issue38256] binascii.crc32 is not 64-bit clean when USE_ZLIB_CRC32

2022-03-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +30103 pull_request: https://github.com/python/cpython/pull/32015 ___ Python tracker ___

[issue47006] PEP 646: Decide on substitution behavior

2022-03-20 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: It's simple if you only look at simple examples. Here are some examples current main (with Serhiy's patch for the Python version of typing) gets wrong: >>> from typing import * >>> Ts = TypeVarTuple("Ts") >>> T1 = TypeVar("T1") >>> T2 = TypeVar("T2") >>> Tup

[issue33028] [doc] tempfile.TemporaryDirectory documentation improvements

2022-03-20 Thread Stanley
Change by Stanley : -- keywords: +patch nosy: +slateny nosy_count: 4.0 -> 5.0 pull_requests: +30104 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32016 ___ Python tracker __

[issue45297] Improve the IDLE shell save command

2022-03-20 Thread Steven D'Aprano
Steven D'Aprano added the comment: Here is another example of a newbie caught by this: https://discuss.python.org/t/syntax-error-in-python-3-10-when-running-on-terminal/14462 -- ___ Python tracker _

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

2022-03-20 Thread Stanley
Stanley added the comment: Vedran's got a good point, as existing documentation for math.nan already says "... Equivalent to the output of float('nan')." so it does seem a bit redundant to say both, though I wonder if we should still be explicit since >>> import math >>> math.nan is math.na

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

2022-03-20 Thread Guido van Rossum
Guido van Rossum added the comment: I will wait until there is a draft PR to review, or until you ping me.-- --Guido (mobile) -- ___ Python tracker ___ ___

[issue47073] Solution for recursion error when comparing dataclass objects

2022-03-20 Thread Yonatan Dankner
New submission from Yonatan Dankner : TL;DR: A possible method to avoid infinite recursion when comparing dataclasses with circular references, using a decorator. >>> @dataclass ... class A: ... x: int = 1 ... self_reference: Any = field(init=False) ... ... def __post_init__(self):

[issue47055] `issubclass` on two different subclasses of abstract base class like `os.PathLike` returns unexpected value on early versions of Py3.7 and Py3.8

2022-03-20 Thread mobiusklein
mobiusklein added the comment: Understood. It's probably good practice to keep the interpreter version up to date in any case when debugging. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker

[issue35967] Better platform.processor support

2022-03-20 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: -yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue47073] Solution for recursion error when comparing dataclass objects

2022-03-20 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

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

2022-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30105 pull_request: https://github.com/python/cpython/pull/32017 ___ Python tracker ___ __

[issue47026] BytesWarning in zipimport paths on sys.path

2022-03-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: This warning can be fixed by changing the following line: https://github.com/python/cpython/blob/9d1c4d69dbc800ac344565119337fcf490cdc800/Lib/importlib/_bootstrap_external.py#L1419 to: if not path and str(path) == '': and running `make regen-importl

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

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 332b04bac35cd7305c60da2d5733940dc089949a by Victor Stinner in branch 'main': bpo-46850: Remove _PyEval_SetAsyncGenFinalizer() (GH-32017) https://github.com/python/cpython/commit/332b04bac35cd7305c60da2d5733940dc089949a --

[issue46126] Unittest output drives developers to avoid docstrings

2022-03-20 Thread Jason R. Coombs
Jason R. Coombs added the comment: In an attempt to replicate Terry's usage, I added the following patch: ``` diff --git a/Lib/idlelib/idle_test/test_text.py b/Lib/idlelib/idle_test/test_text.py index 0f31179e04..be977bbfff 100644 --- a/Lib/idlelib/idle_test/test_text.py +++ b/Lib/idlelib/idl

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

2022-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30106 pull_request: https://github.com/python/cpython/pull/32018 ___ Python tracker ___ __

[issue47073] Solution for recursion error when comparing dataclass objects

2022-03-20 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

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

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9087243e2c167e38570e819b228efc3492c38c9c by Victor Stinner in branch 'main': bpo-46850: Remove _PyEval_GetCoroutineOriginTrackingDepth() (GH-32018) https://github.com/python/cpython/commit/9087243e2c167e38570e819b228efc3492c38c9c -- _

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

2022-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +30107 pull_request: https://github.com/python/cpython/pull/32019 ___ Python tracker ___ __

[issue47074] Convenient `simplefilter()` in `warnings.catch_warnings()`

2022-03-20 Thread Zac Hatfield-Dodds
New submission from Zac Hatfield-Dodds : Many pytest users would like a concise way to either suppress warnings, or convert them to errors [1]. The current best approach is: with warnings.catch_warnings(): warnings.simplefilter("ignore") # or "error" but even this becomes tediou

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

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset e63894b3eed8ad2dd7690695f7f07bfbff59c05a by Victor Stinner in branch 'main': bpo-46850: Remove _PyEval_CallTracing() function (GH-32019) https://github.com/python/cpython/commit/e63894b3eed8ad2dd7690695f7f07bfbff59c05a --

[issue46126] Unittest output drives developers to avoid docstrings

2022-03-20 Thread Inada Naoki
Inada Naoki added the comment: > As you can see, the location of the failing test in the log is masked, and > instead the description is present. Could you elaborate? ``` test_index_empty (idlelib.idle_test.test_text.MockTextTest) Failing test with bad description. ... ERROR (snip) =

[issue47075] test_multiprocessing_spawn leaks QueueManager dangling processes

2022-03-20 Thread STINNER Victor
New submission from STINNER Victor : Apply attached manager_timeout.patch and run the command: ./python -m test --fail-env-changed test_multiprocessing_spawn -v -m test_rapid_restart -F -j4 If you fail to reproduce the issue, replace -j4 with -j10 or use a larger number of concurrent job

[issue47075] test_multiprocessing_spawn leaks QueueManager dangling processes

2022-03-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +erlendaasland, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47075] test_multiprocessing_spawn leaks QueueManager dangling processes

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: BaseManager._finalize_manager() timeout should be configurable, the test should use the same timeout than support.wait_process() (SHORT_TIMEOUT), and maybe the default timeout should be increased? I propose to use the same timeout for the two process.join(ti

[issue47075] test_multiprocessing_spawn leaks QueueManager dangling processes

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: Recent failures. AMD64 FreeBSD Non-Debug 3.x: https://buildbot.python.org/all/#/builders/172/builds/1654 --- Warning -- Dangling processes: {} Warning -- Dangling processes: {} 1 test altered the execution environment: test_multiprocessing_spawn ---

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

2022-03-20 Thread STINNER Victor
New submission from STINNER Victor : x86-64 macOS 3.x failures: * https://buildbot.python.org/all/#/builders/366/builds/2085 * https://buildbot.python.org/all/#/builders/366/builds/2078 * https://buildbot.python.org/all/#/builders/366/builds/2077 * https://buildbot.python.org/all/#/builders/366

[issue47035] Rewrite asyncio queue tests with IsolatedAsyncioTestCase

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: Please have a look at bpo-47076 "test_asyncio: test_get_cancelled() fails randomly on x86-64 macOS 3.x". -- nosy: +vstinner ___ Python tracker _

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

2022-03-20 Thread STINNER Victor
STINNER Victor added the comment: > Recent change related to this test: commit > e707ceb6e464b24ddc9fdbdac7bfe15f7eeb43fd This change comes from bpo-47035 "Rewrite asyncio queue tests with IsolatedAsyncioTestCase". -- ___ Python tracker

[issue47067] Add vectorcall for generica alias object

2022-03-20 Thread penguin_wwy
penguin_wwy <940375...@qq.com> added the comment: > You could also try replacing PyObject_SetAttrString with PyObject_SetAttr and > adding "__orig_class__" to the global strings with > Tools/scripts/generate_global_objects.py, probably for a later PR. Already done via `make regen-global-objec

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

2022-03-20 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Windows8.1 Refleaks 3.x: https://buildbot.python.org/all/#/builders/511/builds/274 Logs (reformatted manually): --- 0:52:04 load avg: 4.31 [147/433/1] test_asyncio failed (env changed) (41 min 6 sec) -- running: test_io (3 min 8 sec) beginning 6 repet

[issue47078] test_ctypes modified files on aarch64 Fedora Rawhide 3.9

2022-03-20 Thread STINNER Victor
New submission from STINNER Victor : aarch64 Fedora Rawhide 3.9: https://buildbot.python.org/all/#/builders/245/builds/445 It seems like the "ldconfig" command crashed (signal 11: SIGSEGV). ldconfig is used by _findSoname_ldconfig() of ctypes.util which runs the "/sbin/ldconfig -p" command wi

  1   2   >