[issue46992] If use textwrap.dedent with string formatting, may get unintended sentences.

2022-03-11 Thread 김준환
김준환 added the comment: x does not change. sorry. I also haven't figured out the implementation in my head yet. I want to provide some functionality to provide consistent indentation while using formatting . For example """ test {multi_line_text} """.format(multi_line_text,

[issue46992] If use textwrap.dedent with string formatting, may get unintended sentences.

2022-03-11 Thread Eric V. Smith
Eric V. Smith added the comment: I’m sorry, I don’t understand your proposal. Please answer my question about what “x” would be equal to under your proposed change. -- ___ Python tracker

[issue46992] If use textwrap.dedent with string formatting, may get unintended sentences.

2022-03-11 Thread 김준환
김준환 added the comment: Sorry, Can't edit comments Please see the code example below ``` Class A: def get_something_string(): return textwrap.dedent("""\ test text2 test text3 test text4""") textwrap.dedent(f"""\ test text1 {A.get_something_string()} test

[issue46992] If use textwrap.dedent with string formatting, may get unintended sentences.

2022-03-11 Thread 김준환
김준환 added the comment: No, I know `textwrap.dedent` as a convenience function used for code readability. But to have the result I want, I currently need to do something like this: If it's a method inside a class, it's even more ugly. Class A: def get_something_string(): return

[issue46992] If use textwrap.dedent with string formatting, may get unintended sentences.

2022-03-11 Thread Eric V. Smith
Eric V. Smith added the comment: What would x be equal to here: def get_something_string(): return textwrap.dedent("""\ test text2 test text3 test text4""") x = f"""\ test text1 {get_something_string()} test text5 test text6""" ? With

[issue46992] If use textwrap.dedent with string formatting, may get unintended sentences.

2022-03-11 Thread 김준환
김준환 added the comment: "<<" This marks that line. ignore it -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46992] If use textwrap.dedent with string formatting, may get unintended sentences.

2022-03-11 Thread Eric V. Smith
Eric V. Smith added the comment: What would the presence of "<<" do? You haven't described your proposal. -- ___ Python tracker ___

[issue46992] If use textwrap.dedent with string formatting, may get unintended sentences.

2022-03-11 Thread 김준환
김준환 added the comment: If it's only for version 3.11, what do you think of the default behavior of the dedent method being changed? The method description says: > Remove any common leading whitespace from every line in `text`. ``` def get_something_string(): return textwrap.dedent("""\

[issue46992] If use textwrap.dedent with string formatting, may get unintended sentences.

2022-03-11 Thread Eric V. Smith
Eric V. Smith added the comment: What is the flag you mention? What would it do? This sounds like a new feature, which can only go in to 3.11. -- nosy: +eric.smith ___ Python tracker

[issue44799] typing.get_type_hints() raises TypeError for a variable annotated by dataclasses.InitVar

2022-03-11 Thread Eric V. Smith
Eric V. Smith added the comment: I agree it's not worth fixing in 3.9 and 3.10. -- ___ Python tracker ___ ___ Python-bugs-list

[issue31975] Add a default filter for DeprecationWarning in __main__

2022-03-11 Thread Kevin Locke
Change by Kevin Locke : -- nosy: +kevinoid nosy_count: 7.0 -> 8.0 pull_requests: +29931 pull_request: https://github.com/python/cpython/pull/23172 ___ Python tracker ___

[issue46992] If use textwrap.dedent with string formatting, may get unintended sentences.

2022-03-11 Thread 김준환
김준환 added the comment: Sorry, it's an indent , not an intent . -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46992] If use textwrap.dedent with string formatting, may get unintended sentences.

2022-03-11 Thread 김준환
New submission from 김준환 : If use textwrap.dedent with string formatting, may get unintended sentences. For example, a sentence like this: ``` import textwrap def get_something_string(): return textwrap.dedent("""\ test text2 test text3 test text4""")

[issue46991] Specialize list[slice]

2022-03-11 Thread Ken Jin
New submission from Ken Jin : According to https://github.com/faster-cpython/ideas/blob/main/stats.md#binary_subscr it's the second most common failed specialization. array.array[int] is quite hard to specialize, considering that array.array deals with 13 different item types based on its

[issue46642] typing: tested TypeVar instance subclass TypeError is incidental

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: This still behaves similarly after the bpo-46642 fix: >>> class V(TypeVar("T")): pass ... Traceback (most recent call last): File "", line 1, in File "/Users/jelle/py/cpython/Lib/typing.py", line 906, in __init__ self.__constraints__ =

[issue44799] typing.get_type_hints() raises TypeError for a variable annotated by dataclasses.InitVar

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: This is now fixed in main thanks to bpo-46644: ``` >>> get_type_hints(Foo) {'attr': dataclasses.InitVar[int]} ``` We're not backporting that change to the bugfix branches. If we want to fix this issue in 3.10 and 3.9, we'll have to add a `__call__` method

[issue46990] Surprising list overallocation from .split()

2022-03-11 Thread Tim Peters
Tim Peters added the comment: Well, that's annoying ;-) In context, the OP was saving a list of 10 million splits. So each overallocation by a single element burned 80 million bytes of RAM. Overallocating by 7 burned 560 million bytes. Which is unusual. Usually a split result is

[issue2771] Test issue

2022-03-11 Thread admin
Change by admin : -- github: 1 -> 18614 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46644] typing: remove callable() check from typing._type_check

2022-03-11 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46644] typing: remove callable() check from typing._type_check

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 75174371e6cac935b598a68c1113f6db1e0d6ed8 by Jelle Zijlstra in branch 'main': bpo-46644: Fix test_typing test broken by GH-31151 due to a merge race (GH-31833) https://github.com/python/cpython/commit/75174371e6cac935b598a68c1113f6db1e0d6ed8

[issue46644] typing: remove callable() check from typing._type_check

2022-03-11 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- pull_requests: +29930 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/31833 ___ Python tracker ___

[issue46644] typing: remove callable() check from typing._type_check

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Some tests are failing on main, probably due to a race. PR incoming. -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: > So where getauxval(AT_MINSIGSTKSZ) < SIGSTKSZ the merged changes actually > resulted in decrease of the allocated signal deliver stack. faulthandler stack is only used in the least likely case: on a fatal error. It should reduce its memory footprint, so

Re: Suggestion for Linux Distro (from PSA: Linux vulnerability)

2022-03-11 Thread Cousin Stanley
Cousin Stanley wrote: >> apt-cache search lxqt | grep ^lxqt Chris Angelico wrote: > Much faster: > > apt-cache pkgnames lxqt > > apt-cache search will look for "lxqt" in descriptions too, > hence the need to filter those out > > apt-cache pkgnames is used by tab completion) > Thanks

Re: How to test input via subprocess.Popen with data from file

2022-03-11 Thread Tobiah
Why not just have scripts that echo out the various sets of test data you are interested in? That way, Popen would always be your interface and you wouldn't have to make two cases in the consumer script. In other words, make program that outputs test data just like your main data source

[issue46677] TypedDict docs are incomplete

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks @CharliieZhao for the improved documentation! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46677] TypedDict docs are incomplete

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset b5140a5811aa35f4b488849fb55d84504732d135 by Charlie Zhao in branch '3.9': [3.9] bpo-46677: Add examples of inheritance and attributes to `TypedDict` docs. (GH-31349) (GH-31808)

[issue46644] typing: remove callable() check from typing._type_check

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks for your contribution! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46644] typing: remove callable() check from typing._type_check

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 870b22b9c442d035190d2b8fb82256cd9a03da48 by Gregory Beauregard in branch 'main': bpo-46644: Remove callable() requirement from typing._type_check (GH-31151) https://github.com/python/cpython/commit/870b22b9c442d035190d2b8fb82256cd9a03da48

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread Oleksandr Pavlyk
Oleksandr Pavlyk added the comment: So where getauxval(AT_MINSIGSTKSZ) < SIGSTKSZ the merged changes actually resulted in decrease of the allocated signal deliver stack. On Sapphire Rapids due to tile registers size we have getauxval(AT_MINSIGSTKSZ) > SIGSTKSZ. This is why the initial

[issue46677] TypedDict docs are incomplete

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: New changeset 28f20a6613b9d9287848bb78369b881a72941a39 by Charlie Zhao in branch '3.10': [3.10] bpo-46677: Add examples of inheritance and attributes to `TypedDict` docs (GH-31349) (GH-31815)

[issue46990] Surprising list overallocation from .split()

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: The value 12 is hardcoded here: https://github.com/python/cpython/blob/a89c29fbcc7e7e85848499443d819c3fab68c78a/Objects/stringlib/split.h#L14 The comment there says that this is because most .split() calls are on lines of human-readable text, which has

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: On my x86-64 Fedora 35 with the CPU "Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz", I get: * SIGSTKSZ = 8192 * getauxval(AT_MINSIGSTKSZ) = 2032 * faulthandler stack.ss_size = 10224 * os.sysconf('SC_MINSIGSTKSZ') = 2032 In C, sysconf(_SC_MINSIGSTKSZ) is similar

[issue46915] Build with Py_LIMITED_API fails unknown type name ‘PyModuleDef_Slot’

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: > Fixed by > https://github.com/python/cpython/commit/0b63215bb152c06404cecbd5303b1a50969a9f9f This change is now part of Python 3.11 alpha6 released a few days ago. Python 3.11a6 news entries were merged into the Misc/NEWS.d/3.11.0a6.rst file. > Please

[issue46841] Inline bytecode caches

2022-03-11 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset a89c29fbcc7e7e85848499443d819c3fab68c78a by Brandt Bucher in branch 'main': bpo-46841: Add a _Py_SET_OPCODE macro (GH-31780) https://github.com/python/cpython/commit/a89c29fbcc7e7e85848499443d819c3fab68c78a --

[issue45274] Race condition in Thread._wait_for_tstate_lock()

2022-03-11 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29971] threading.Lock.acquire() not interruptible on Windows

2022-03-11 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: zodbpickle issue: https://github.com/zopefoundation/zodbpickle/issues/67 -- ___ Python tracker ___

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: PR for bitstruct: https://github.com/eerimoq/bitstruct/pull/26 -- ___ Python tracker ___ ___

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29929 pull_request: https://github.com/python/cpython/pull/31832 ___ Python tracker ___

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: PR for msgpack: https://github.com/msgpack/msgpack-python/pull/499 -- ___ Python tracker ___ ___

[issue46983] test_sqlite3: test_trace_too_much_expanded_sql() failed on AMD64 Arch Linux Usan 3.x

2022-03-11 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: The change that introduced this regression was reverted in GH-31788 -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: Thanks Oleksandr Pavlyk for your nice enhancement! I merged your change to 3.9, 3.10 and main branches! I also added os.sysconf('SC_MINSIGSTKSZ') to Python 3.11. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset ba2b7956fa3932769a5c0aa2575de5c8d7e7ba4b by Victor Stinner in branch '3.9': bpo-46968: Fix faulthandler for Sapphire Rapids Xeon (GH-31789) (GH-31831) https://github.com/python/cpython/commit/ba2b7956fa3932769a5c0aa2575de5c8d7e7ba4b

[issue46892] Async Call-Stack Reconstruction

2022-03-11 Thread Guido van Rossum
Guido van Rossum added the comment: I've recently dabbled a bit in some new primitives for asyncio, and based on that experience I think this would be very useful. IIRC Trio does this (presumably at considerable cost) in userland. -- ___ Python

[issue46981] Empty typing.Tuple

2022-03-11 Thread Guido van Rossum
Guido van Rossum added the comment: Alas, I have no idea. I don't even recall what copy_with() is for (it was apparently introduced in 3.7). Possibly vopy_with() is wrong here? I imaging some of this has to do with the special casing needed so that repr() of an empty Tuple type doesn't

[issue42560] Improve Tkinter Documentation

2022-03-11 Thread Mark Roseman
Mark Roseman added the comment: Just a note, that an (updated) version of the auto-generated API reference has been "officially" added to TkDocs ... see https://tkdocs.com/pyref/ Few more things I'd like to do with it in the short term, but it's a decent starting point. Let me know if you

[issue22543] -W option cannot use non-standard categories

2022-03-11 Thread Michael Merickel
Michael Merickel added the comment: Updated affected versions as I ran into this on 3.9.7. -- nosy: +mmerickel versions: +Python 3.9 ___ Python tracker ___

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29928 pull_request: https://github.com/python/cpython/pull/31831 ___ Python tracker ___

[issue46906] Add PyFloat_(Pack|Unpack)(2|4|8) to the public C API

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 882d8096c262a5945e0cfdd706e5db3ad2b73543 by Victor Stinner in branch 'main': bpo-46906: Add PyFloat_Pack8() to the C API (GH-31657) https://github.com/python/cpython/commit/882d8096c262a5945e0cfdd706e5db3ad2b73543 --

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 393e2bf6bc6effbfe821f051a230978f0edd70df by Victor Stinner in branch '3.10': bpo-46968: Fix faulthandler for Sapphire Rapids Xeon (GH-31789) (GH-31830) https://github.com/python/cpython/commit/393e2bf6bc6effbfe821f051a230978f0edd70df

[issue46990] Surprising list overallocation from .split()

2022-03-11 Thread Tim Peters
Change by Tim Peters : -- type: behavior -> resource usage ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46990] Surprising list overallocation from .split()

2022-03-11 Thread Tim Peters
New submission from Tim Peters : When looking into a StackOverflow question about surprisingly high memory use, I stumbled into this (under 3.10.1, Win64): >>> import sys >>> s = "1 2 3 4 5".split() >>> s ['1', '2', '3', '4', '5'] >>> sys.getsizeof(s) 152 >>> _ - sys.getsizeof([]) 96 >>> 96 /

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: The latest faulthandler bug on sigaltstack() was bpo-21131 about FPU state stored by "XSAVE" and a Linux kernel change to fix a security vulnerability: https://bugs.python.org/issue21131#msg349688 -- ___ Python

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

2022-03-11 Thread Christian Heimes
Christian Heimes added the comment: New changeset ecfff63e06e77e22035a7f7caa26986f033f3aea by Christian Heimes in branch 'main': bpo-40280: Disable AF_UNIX, AF_PACKET, SO_REUSE* on Emscripten (#31829) https://github.com/python/cpython/commit/ecfff63e06e77e22035a7f7caa26986f033f3aea

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29927 pull_request: https://github.com/python/cpython/pull/31830 ___ Python tracker ___

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3b128c054885fe881c3b57a5978de3ea89c81a9c by Oleksandr Pavlyk in branch 'main': bpo-46968: Fix faulthandler for Sapphire Rapids Xeon (GH-31789) https://github.com/python/cpython/commit/3b128c054885fe881c3b57a5978de3ea89c81a9c --

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset dc374ac7b0fabaed49461a2044c220765f48d229 by Victor Stinner in branch 'main': bpo-46968: Add os.sysconf_names['SC_MINSIGSTKSZ'] (GH-31824) https://github.com/python/cpython/commit/dc374ac7b0fabaed49461a2044c220765f48d229 --

[issue46761] functools.update_wrapper breaks the signature of functools.partial objects

2022-03-11 Thread Graham Dumpleton
Graham Dumpleton added the comment: My vague recollection was that I identified some time back that partial() didn't behave correctly regards introspection for some use case I was trying to apply it to in the wrapt implementation. As a result I ended up creating my own

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

2022-03-11 Thread Zachary Ware
Zachary Ware added the comment: If it's already turning into a rewrite, how feasible would it be to adopt Brett's `py` launcher? -- nosy: +brett.cannon ___ Python tracker

Re: Suggestion for Linux Distro (from PSA: Linux vulnerability)

2022-03-11 Thread Marco Sulla
On Fri, 11 Mar 2022 at 19:10, Michael Torrie wrote: > Both Debian stable and Ubuntu LTS state they have a five year support > life cycle. Yes, but it seems that official security support in Debian ends after three years: "Debian LTS is not handled by the Debian security team, but by a separate

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

2022-03-11 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +29926 pull_request: https://github.com/python/cpython/pull/31829 ___ Python tracker ___

[issue43224] Add support for PEP 646

2022-03-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +29925 pull_request: https://github.com/python/cpython/pull/31828 ___ Python tracker ___

[issue43224] Add support for PEP 646

2022-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5b1b9eacb92dd47d10793a8868246df6ea477ed6 by Serhiy Storchaka in branch 'main': bpo-43224: Implement substitution of unpacked TypeVarTuple (GH-31800) https://github.com/python/cpython/commit/5b1b9eacb92dd47d10793a8868246df6ea477ed6

[issue46981] Empty typing.Tuple

2022-03-11 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +JelleZijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31327] [doc] Add example of platform-specific support for negative timestamps to the time doc

2022-03-11 Thread miss-islington
miss-islington added the comment: New changeset b35b36e106152245fe68880f4073fd99ec17f65d by Miss Islington (bot) in branch '3.10': bpo-31327: Update time documentation to reflect possible errors (GH-31460) https://github.com/python/cpython/commit/b35b36e106152245fe68880f4073fd99ec17f65d

[issue31327] [doc] Add example of platform-specific support for negative timestamps to the time doc

2022-03-11 Thread miss-islington
miss-islington added the comment: New changeset 30d80213ae305bd0f0ed6bec7a0dff3e97b1c321 by Miss Islington (bot) in branch '3.9': bpo-31327: Update time documentation to reflect possible errors (GH-31460) https://github.com/python/cpython/commit/30d80213ae305bd0f0ed6bec7a0dff3e97b1c321

[issue46989] signal.signal, et al, doesn't support [SIGRTMIN, SIGRTMAX] on FreeBSD (not included in NSIG)

2022-03-11 Thread Enji Cooper
New submission from Enji Cooper : As noted in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262487, cpython relies on the definition of NSIG when building signal handlers to determine what signals are and aren't invalid. Unfortunately on FreeBSD, NSIG doesn't include [SIGRTMIN,SIGRTMAX],

[issue31327] [doc] Add example of platform-specific support for negative timestamps to the time doc

2022-03-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +29923 pull_request: https://github.com/python/cpython/pull/31826 ___ Python tracker ___

[issue31327] [doc] Add example of platform-specific support for negative timestamps to the time doc

2022-03-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +29924 pull_request: https://github.com/python/cpython/pull/31827 ___ Python tracker ___

[issue31327] [doc] Add example of platform-specific support for negative timestamps to the time doc

2022-03-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +29922 pull_request: https://github.com/python/cpython/pull/31825 ___ Python tracker ___

[issue31327] [doc] Add example of platform-specific support for negative timestamps to the time doc

2022-03-11 Thread miss-islington
miss-islington added the comment: New changeset c83fc9c02c9846ec3a2d0123999c98e02f00b3f5 by slateny in branch 'main': bpo-31327: Update time documentation to reflect possible errors (GH-31460) https://github.com/python/cpython/commit/c83fc9c02c9846ec3a2d0123999c98e02f00b3f5 --

[issue46892] Async Call-Stack Reconstruction

2022-03-11 Thread Matt Page
Matt Page added the comment: Sorry for the confusion, I'm working on a PR. I filed the BPO to gauge interest in the feature. -- ___ Python tracker ___

[issue45993] Main branch of CPython does not build anymore on macOS

2022-03-11 Thread Christian Heimes
Change by Christian Heimes : -- nosy: -christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-03-11 Thread Steve Dower
Steve Dower added the comment: Hah, that's funny URL formatting. Let's see if this is any better: -- ___ Python tracker

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

2022-03-11 Thread Steve Dower
Steve Dower added the comment: I'm working on what's become a rewrite of the launcher. If anyone would like to follow along, you can see my changes at https://github.com/python/cpython/compare/main...zooba:bpo-46566 It's still missing some functionality, and I'm not sure it's any faster or

[issue46988] if a python program is execute by subprocess, the python program can't output unicode characters and raise UnicodeEncodeError

2022-03-11 Thread Eryk Sun
Change by Eryk Sun : -- superseder: -> Encoding error running in subprocess with captured output ___ Python tracker ___ ___

[issue46785] On Windows, os.stat() can fail if called while another process is creating or deleting the file

2022-03-11 Thread Eryk Sun
Eryk Sun added the comment: Itai, you can add a test to Win32NtTests in Lib/test/test_os.py. Maybe spawn a child process that creates and unlinks a file in a loop. In the parent process execute a loop that tries to stat the file and ignores errors when the file or path isn't found. For

Re: Suggestion for Linux Distro (from PSA: Linux vulnerability)

2022-03-11 Thread Michael Torrie
On 3/11/22 11:03, Marco Sulla wrote: > Anyway I think I'll not install Debian, because it's LTS releases are > not long enough for me. I don't know if there's a distro based on > Debian that has a long LTS support, Ubuntu apart. Both Debian stable and Ubuntu LTS state they have a five year

Re: Suggestion for Linux Distro (from PSA: Linux vulnerability)

2022-03-11 Thread Marco Sulla
On Fri, 11 Mar 2022 at 06:38, Dan Stromberg wrote: > That's an attribute of your desktop environment, not the Linux distribution. > > EG: I'm using Debian with Cinnamon, which does support ctrl-alt-t. Never used Cinnamon. It comes from Mint, right? > Some folks say the desktop environment

[issue45993] Main branch of CPython does not build anymore on macOS

2022-03-11 Thread Andrei Kulakov
Andrei Kulakov added the comment: I'm getting the same exact error but on `arm64`, and clearing the cache does not help. clang=13.0.0 MacOS=11.5.2 Should I open a new issue for this? 257 warnings generated. 257 warnings generated. Undefined symbols for architecture arm64:

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2022-03-11 Thread Sam Bull
Sam Bull added the comment: There is still an issue here. I proposed a possible solution at: https://github.com/python/cpython/pull/28149#issuecomment-1007823782 You can also scroll up through the lengthy discussion to see how I reached that conclusion. I've not had time yet to actually try

[issue46988] if a python program is execute by subprocess, the python program can't output unicode characters and raise UnicodeEncodeError

2022-03-11 Thread markhuang3310
Change by markhuang3310 : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46988] if a python program is execute by subprocess, the python program can't output unicode characters and raise UnicodeEncodeError

2022-03-11 Thread markhuang3310
markhuang3310 added the comment: sorry, I found the duplication https://bugs.python.org/issue34618 -- resolution: -> duplicate ___ Python tracker ___

[issue46971] python takes long time when return big data

2022-03-11 Thread Mark Dickinson
Mark Dickinson added the comment: > why it costs lots of time when del a large array? That's probably a question for the NumPy folks, or possibly for Stack Overflow or some other question-and-answer resource. It'll depend on how NumPy arrays are de-allocated. > Is there any way to process

[issue46982] Error in the experts list

2022-03-11 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Oops, sorry for that! I just edited my username, hopefully that fixes things. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29921 pull_request: https://github.com/python/cpython/pull/31824 ___ Python tracker ___

[issue46984] test_concurrent_futures logs many UndefinedBehaviorSanitizer "DEADLYSIGNAL" errors on AMD64 Arch Linux Usan 3.x

2022-03-11 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Arch Linux Usan 3.x: https://buildbot.python.org/all/#/builders/719/builds/672 I don't know if ASAN_OPTIONS env var is set on this buildbot. test.pythoninfo doesn't log ASAN_OPTIONS env var. 0:04:22 load avg: 1.30 [130/433] test_concurrent_futures

[issue46988] if a python program is execute by subprocess, the python program can't output unicode characters and raise UnicodeEncodeError

2022-03-11 Thread markhuang3310
markhuang3310 added the comment: the test output: PS C:\case_dev> python3 .\test.py case 1 Я case 2 b'Traceback (most recent call last):\r\n File "", line 1, in \r\n File "C:\\Python36\\lib\\encodings\\cp1252.py", line 19, in encode\r\nreturn

[issue46987] Remove _PySys_GetObjectId / _PySys_GetObjectId

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: > ./top_5000/datatable-1.0.0.tar.gz: datatable-1.0.0/src/core/python/obj.cc: > _PySys_GetObjectId(_stdout) // borrowed ref It would be nice to notify datatable, or even propose a PR, if the _PySys_GetObjectId() is removed in Python 3.11. --

[issue46988] if a python program is execute by subprocess, the python program can't output unicode characters and raise UnicodeEncodeError

2022-03-11 Thread markhuang3310
New submission from markhuang3310 : Env: Windows 10 Python3.8.10 amd64 Desciption: I try to get output from a python program with a subprocess. The python program print a unicode character. ``` import subprocess import sys cmd = rf'''{sys.executable} -c "print('\u042f')"''' print('case 1')

[issue46987] Remove _PySys_GetObjectId / _PySys_GetObjectId

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: > From my view, PySys_GetObject is available since Python3.2 both APIs look > safe to remove. _PySys_GetObjectId() and _PySys_GetObjectId() are private API and can be removed anytime. We don't provide any backward compatibility warranty on the private API:

[issue46987] Remove _PySys_GetObjectId / _PySys_GetObjectId

2022-03-11 Thread STINNER Victor
STINNER Victor added the comment: https://pypi.org/project/pickle5/ should not be used on Python 3.8 and newer: it's a backport for Python 3.7 and older. -- ___ Python tracker

[issue46943] fix[imaplib]: call Exception with string instance

2022-03-11 Thread SpaceOne
SpaceOne added the comment: @iritkatriel alright, I am sorry. I created another PR: https://github.com/python/cpython/pull/31823 -- ___ Python tracker ___

[issue46943] fix[imaplib]: call Exception with string instance

2022-03-11 Thread SpaceOne
Change by SpaceOne : -- pull_requests: +29920 pull_request: https://github.com/python/cpython/pull/31823 ___ Python tracker ___ ___

[issue46987] Remove _PySys_GetObjectId / _PySys_GetObjectId

2022-03-11 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner >From my view, PySys_GetObject is available since Python3.2 both APIs look safe >to remove. -- ___ Python tracker ___

[issue46987] Remove _PySys_GetObjectId / _PySys_GetObjectId

2022-03-11 Thread Dong-hee Na
Dong-hee Na added the comment: @pitrou https://github.com/pitrou/pickle5-backport/blob/e6117502435aba2901585cc6c692fb9582545f08/pickle5/_pickle.c#L1937 Do you have a plan to use PySys_GetObject("modules") instead of _PySys_GetObjectId(_modules)? -- nosy: +pitrou

[issue46987] Remove _PySys_GetObjectId / _PySys_GetObjectId

2022-03-11 Thread Dong-hee Na
Dong-hee Na added the comment: ./top_5000/datatable-1.0.0.tar.gz: datatable-1.0.0/src/core/python/obj.cc: _PySys_GetObjectId(_stdin) // borrowed ref ./top_5000/datatable-1.0.0.tar.gz: datatable-1.0.0/src/core/python/obj.cc: _PySys_GetObjectId(_stdout) // borrowed ref

[issue46982] Error in the experts list

2022-03-11 Thread Zachary Ware
Zachary Ware added the comment: Jelle, I think the simplest solution would be to remove the space from your bpo login name. -- nosy: +zach.ware ___ Python tracker ___

[issue46943] fix[imaplib]: call Exception with string instance

2022-03-11 Thread Irit Katriel
Irit Katriel added the comment: That happened because your PR was wrong - it contained many commits that touched many files, all of whose owners were modified. If you make the PR against the main branch, the diff will not have all those files a and they will not be notified. --

  1   2   >