[issue45666] Warning: "'swprintf' : format string '%s' requires an argument of type 'unsigned short *', but variadic argument 1 has type 'const char *'"

2021-10-29 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now GitHub emmits this warning: ``` GitHub Actions / Windows (x64) Programs/_testembed.c#L1735 'swprintf' : format string '%s' requires an argument of type 'unsigned short *', but variadic argument 1 has type 'const char *'

[issue45502] Fix test_shelve and make it discoverable

2021-10-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +27575 pull_request: https://github.com/python/cpython/pull/29306 ___ Python tracker ___

[issue45502] Fix test_shelve and make it discoverable

2021-10-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6b867022d926be9fcc6f8038fb1093ba8c348ca5 by Serhiy Storchaka in branch '3.10': [3.10] bpo-45502: Fix test_shelve (GH-29003) (GH-29305) https://github.com/python/cpython/commit/6b867022d926be9fcc6f8038fb1093ba8c348ca5 --

[issue45621] Small fixes to mmap

2021-10-29 Thread Tim Golden
Change by Tim Golden : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45645] Deep recursion terminates script execution with no error (Windows, Python 3.9)

2021-10-29 Thread PABLO LOBATO DE LA CRUZ
PABLO LOBATO DE LA CRUZ added the comment: I see. Thank you very much Steve :) El vie, 29 oct 2021 a las 0:29, Steve Dower () escribió: > > Steve Dower added the comment: > > > But why does it happen only on Windows? > > Because it's the operating system that is terminating the process :) >

[issue45522] Allow to build Python without freelists

2021-10-29 Thread Christian Heimes
Christian Heimes added the comment: Which part of the patch is causing you extra work? Would you be fine if I only remove the configure option and leave the fixes for zero-length freelists (#define PyList_MAXFREELIST 0) in? -- ___ Python tracker

[issue45502] Fix test_shelve and make it discoverable

2021-10-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +27574 pull_request: https://github.com/python/cpython/pull/29305 ___ Python tracker ___

[issue45355] Use sizeof(_Py_CODEUNIT) instead of literal 2 for the size of the code unit

2021-10-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have opened separate issues for different cases and a meta-issue45665 for general discussion. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: +Python 3.11, Python 3.9

[issue45665] Problems caused by isinstance(list[int]) returning True

2021-10-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: isinstance(x, type) returns True for instances of types.GenericAlias (like list[int]). While it may help in some cases related to typing, in many unrelated cases it causes problems if the value which is not a type passes checks for types. Also,

[issue45665] Problems caused by isinstance(list[int]) returning True

2021-10-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : This is a meta-issue for problems caused by isinstance(list[int]) returning True. See also discussion in issue45438. -- components: Library (Lib) messages: 405290 nosy: serhiy.storchaka priority: normal severity: normal status: open title:

[issue45664] resolve_bases() and new_class() do not work with type alias of a built-in type

2021-10-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -27570 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45664] resolve_bases() and new_class() do not work with type alias of a built-in type

2021-10-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -27569 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45621] Small fixes to mmap

2021-10-29 Thread Tim Golden
Tim Golden added the comment: New changeset 7bddd96982072d04bd6314da1ee7f40b7f875f00 by Tim Golden in branch 'main': bpo-45621: Small changes to mmap (GH-29247) https://github.com/python/cpython/commit/7bddd96982072d04bd6314da1ee7f40b7f875f00 --

[issue10572] Move test sub-packages to Lib/test

2021-10-29 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27573 pull_request: https://github.com/python/cpython/pull/29304 ___ Python tracker ___

[issue45646] Star expression in comprehension wrongly indicates to use or_expression after the star

2021-10-29 Thread Dennis Sweeney
Dennis Sweeney added the comment: Hi Arthur, I agree that the line about "name ::= othername" could be more helpful. I think an affirmative example would be better than a warning against depending on variable names, because the top of the page mentions that BNF is being used and IMHO the

[issue23597] Allow easy display of local variables in log messages?

2021-10-29 Thread Martin
Martin added the comment: In this pull request[1] I introduced a `format_locals` which can be provided to customize the serialization of the local variables of each frame. This could be used to filter out variables with certain names, for example. In this context, you could use a certain

<    1   2