[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-10-11 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2021-10-11 Thread Dong-hee Na
Dong-hee Na added the comment: > There is IBM effort to do this in container level, so that os.cpu_count() > will return right result in container Good news! -- nosy: +corona10 ___ Python tracker

[issue45373] ./configure --enable-optimizations should enable LTO

2021-10-11 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45253] mimetypes cannot detect mime of mka files

2021-10-11 Thread Andrei Kulakov
Andrei Kulakov added the comment: mkv (matroska) is not registered with IANA here: http://www.iana.org/assignments/media-types/media-types.xhtml Therefore according to the comment in mimetypes.py, it should not be added. Also note that .mkv is also not in mimetypes.py, so it's being loaded

[issue45253] mimetypes cannot detect mime of mka files

2021-10-11 Thread Andrei Kulakov
Change by Andrei Kulakov : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45253] mimetypes cannot detect mime of mka files

2021-10-11 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45351] asyncio doc: List all sockets in TCP echo server using streams

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 659812b451aefe1f0e5f83540296519a5fb8f313 by Olaf van der Spek in branch 'main': bpo-45351, asyncio: Enhance echo server example, print all addresses (GH-28828) https://github.com/python/cpython/commit/659812b451aefe1f0e5f83540296519a5fb8f313

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: > +1 for the removals. (We should fix #44970 too, but as you say that's a > separate issue. And I suspect that the Py_ADJUST_ERANGE1() use for float pow > should be replaced, too.) Well, it's scary of use functions which are documented as: * Caution: *

[issue41123] Remove Py_UNICODE APIs except PEP 623

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 2.0 -> 3.0 pull_requests: +27182 pull_request: https://github.com/python/cpython/pull/28887 ___ Python tracker ___

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 61190e092b8258ede92ac543bb39bad0f7168104 by Victor Stinner in branch 'main': bpo-45412: Move copysign() define to pycore_pymath.h (GH-28889) https://github.com/python/cpython/commit/61190e092b8258ede92ac543bb39bad0f7168104 --

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-11 Thread Raymond Hettinger
New submission from Raymond Hettinger : In the example below, __annotations__ is correct but not the corresponding Signature object. --- from typing import List def f(s: List[float]) -> None: pass def g(s: list[float]) ->

[issue40890] Dict views should be introspectable

2021-10-11 Thread Joshua Bronson
Change by Joshua Bronson : -- nosy: +jab nosy_count: 6.0 -> 7.0 pull_requests: +27187 pull_request: https://github.com/python/cpython/pull/28892 ___ Python tracker ___

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-11 Thread Guido van Rossum
Guido van Rossum added the comment: Raymond, the bug must be in the Python code in inspect.py. Could you dig a little deeper there? I don't know much about it. Specifically I think the problem may just be in the repr() of class Parameter: >>> inspect.signature(g).parameters['s']

[issue45410] python -m test -jN: write stderr in stdout to get messages in order

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1ebd798fddef51e1f6fd40a4860278a1851ac268 by Victor Stinner in branch 'main': bpo-45410: Add test.support.flush_std_streams() (GH-28885) https://github.com/python/cpython/commit/1ebd798fddef51e1f6fd40a4860278a1851ac268 --

[issue41123] Remove Py_UNICODE APIs except PEP 623

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1f316ea3b4fa319eec4f375fb683467b424c964e by Victor Stinner in branch 'main': bpo-41123: Remove Py_UNICODE_COPY() and Py_UNICODE_FILL() (GH-28887) https://github.com/python/cpython/commit/1f316ea3b4fa319eec4f375fb683467b424c964e --

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27186 pull_request: https://github.com/python/cpython/pull/28891 ___ Python tracker ___

[issue45433] libpython should not be linked with libcrypt

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset be21706f3760bec8bd11f85ce02ed6792b07f51f by Mike Gilbert in branch 'main': bpo-45433: Do not link libpython against libcrypt (GH-28881) https://github.com/python/cpython/commit/be21706f3760bec8bd11f85ce02ed6792b07f51f -- nosy:

[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-10-11 Thread Eryk Sun
Eryk Sun added the comment: It's up to the core devs whether or not Python should try to use a high-resolution timer, which is currently undocumented in the Windows API and implemented only in recent releases of Windows 10 and 11. But if this does get supported, the code should fall back on

[issue45396] Custom frozen modules get ignored.

2021-10-11 Thread Guido van Rossum
Guido van Rossum added the comment: I'm not convinced by the comment you linked to. It seems Brett is referring to the case where at the C level someone overrides `PyImport_FrozenModules` (a global in frozen.c) -- though it is never explicitly named in the thread. And that variable *is*

[issue45433] libpython should not be linked with libcrypt

2021-10-11 Thread Sam James
Change by Sam James : -- nosy: +thesamesam ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45436] test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: > 2 tests failed:test_tk test_ttk_guionly They also failed on: * x86 Gentoo Non-Debug with X 3.9 * x86 Gentoo Non-Debug with X 3.10 -- ___ Python tracker

[issue43139] test_ttk test_compound, test_tk test_type fail with Tk 8.6.11.1

2021-10-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: test_ttk test_compound and test_tk test_type fails with Tk 8.6.11.1 -> test_ttk test_compound, test_tk test_type fail with Tk 8.6.11.1 ___ Python tracker

[issue40890] Dict views should be introspectable

2021-10-11 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45433] libpython should not be linked with libcrypt

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: Nicely spotted, thanks for the fix! I prefer to not backport to avoid any risk of regression. In my experience, the build system is fragile. -- components: +Build -C API resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27190 pull_request: https://github.com/python/cpython/pull/28895 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 47717d1186563695e798b40350d15b00d04a5237 by Victor Stinner in branch 'main': bpo-45434: Cleanup Python.h header file (GH-28883) https://github.com/python/cpython/commit/47717d1186563695e798b40350d15b00d04a5237 --

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7103356455c8b0c2ba3523929327756413337a31 by Victor Stinner in branch 'main': bpo-45412: Move _Py_SET_53BIT_PRECISION_START to pycore_pymath.h (GH-28882) https://github.com/python/cpython/commit/7103356455c8b0c2ba3523929327756413337a31

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: Include/pymath.h is now better, I close the issue ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset fb8f208a4ddb38eedee71f9ecd0f22058802dab1 by Victor Stinner in branch 'main': bpo-45439: _PyObject_Call() only checks tp_vectorcall_offset once (GH-28890) https://github.com/python/cpython/commit/fb8f208a4ddb38eedee71f9ecd0f22058802dab1

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27185 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28890 ___ Python tracker ___

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-11 Thread Alex Waygood
Alex Waygood added the comment: Some thoughts from me, as an unqualified but interested party: Like Randolph, I very much like having class properties in the language, and have used them in several projects since their introduction in 3.9. I find they're especially useful with Enums.

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset ce3489cfdb9f0e050bdc45ce5d3902c2577ea683 by Victor Stinner in branch 'main': bpo-45439: Rename _PyObject_CallNoArg() to _PyObject_CallNoArgs() (GH-28891) https://github.com/python/cpython/commit/ce3489cfdb9f0e050bdc45ce5d3902c2577ea683

[issue45435] delete misleading faq entry about atomic operations

2021-10-11 Thread Steven D'Aprano
New submission from Steven D'Aprano : Why do you say that the FAQ is misleading? If it is misleading, it should be replaced with a more correct answer, not just deleted. -- nosy: +steven.daprano ___ Python tracker

[issue45440] [C API] Py_IS_INFINITY() macro doesn't work in the limited C API if isinf() is not defined

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: The Py_FORCE_DOUBLE() macro was added in bpo-5724 by the change: commit e05e8409e1b47a2c018ad8a67016546217165c60 Author: Mark Dickinson Date: Mon May 4 13:30:43 2009 + Issue #5724: Fix cmath failures on Solaris 10. --

[issue45434] [C API] Clean-up the Python.h header file

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27183 pull_request: https://github.com/python/cpython/pull/2 ___ Python tracker ___

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset a9fe1a8e5b4698937e06c2c419da92e6f78f2ee7 by Victor Stinner in branch 'main': bpo-45412: Update _Py_ADJUST_ERANGE1() comment (GH-28884) https://github.com/python/cpython/commit/a9fe1a8e5b4698937e06c2c419da92e6f78f2ee7 --

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27184 pull_request: https://github.com/python/cpython/pull/28889 ___ Python tracker ___

[issue45437] Assignment to a list of dictionary wrong

2021-10-11 Thread Zachary Ware
Zachary Ware added the comment: See https://docs.python.org/3/faq/programming.html#how-do-i-create-a-multidimensional-list Not quite the same example, but the underlying reason for what you're seeing is the same: each of the `dict` objects in `[{}] * 4` is actually the *same* dict object:

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
New submission from STINNER Victor : The public C API should avoid accessing directly PyTypeObject members: see bpo-40170. I propose to move static inline functions to the internal C API, and only expose opaque function calls to the public C API. -- components: C API messages:

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27188 pull_request: https://github.com/python/cpython/pull/28893 ___ Python tracker ___

[issue45440] [C API] Py_IS_INFINITY() macro doesn't work in the limited C API if isinf() is not defined

2021-10-11 Thread STINNER Victor
New submission from STINNER Victor : If the HAVE_DECL_ISINF macro is not defined in pyconfig.h, the Py_IS_INFINITY macro is defined as: #define Py_IS_INFINITY(X) \ ((X) && (Py_FORCE_DOUBLE(X)*0.5 == Py_FORCE_DOUBLE(X))) Problem: Py_FORCE_DOUBLE() is excluded from the limited C API (and

[issue43139] test_ttk test_compound and test_tk test_type fails with Tk 8.6.11.1

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-45436: test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x. -- nosy: +vstinner ___ Python tracker ___

[issue45435] delete misleading faq entry about atomic operations

2021-10-11 Thread Thomas Grainger
Change by Thomas Grainger : -- keywords: +patch pull_requests: +27181 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28886 ___ Python tracker ___

[issue45436] test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- title: test_configure_type() failed on -> test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x ___ Python tracker ___

[issue45437] Assignment to a list of dictionary wrong

2021-10-11 Thread Xin Sheng Zhou
New submission from Xin Sheng Zhou : >>> details = [{}]*4 >>> details [{}, {}, {}, {}] >>> details[1]['A']=5 >>> details [{'A': 5}, {'A': 5}, {'A': 5}, {'A': 5}] >>> -- messages: 403679 nosy: xinshengzhou priority: normal severity: normal status: open title: Assignment to a list of

[issue45436] test_tk.test_configure_type() failed on x86 Gentoo Non-Debug with X 3.x

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-43139: test_ttk test_compound and test_tk test_type fails with Tk 8.6.11.1. -- ___ Python tracker ___

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

2021-10-11 Thread Gregory Szorc
Gregory Szorc added the comment: Note that this issue isn't macOS specific: you will get the same failure when cross-compiling targeting Linux. e.g. --build=x86_64-unknown-linux-gnu --host=i686-unknown-linux-gnu. -- nosy: +indygreg ___ Python

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

2021-10-11 Thread Ned Deily
Ned Deily added the comment: > Note that this issue isn't macOS specific: you will get the same failure when > cross-compiling targeting Linux. e.g. --build=x86_64-unknown-linux-gnu > --host=i686-unknown-linux-gnu. Can you be more specific? This particular issue isn't about cross-compiling.

[issue45434] [C API] Clean-up the Python.h header file

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 03ea862b8a8234176761240ba122254e9eb11663 by Victor Stinner in branch 'main': bpo-45434: Python.h no longer includes (GH-2) https://github.com/python/cpython/commit/03ea862b8a8234176761240ba122254e9eb11663 --

[issue45440] [C API] Py_IS_INFINITY() macro doesn't work in the limited C API if isinf() is not defined

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27189 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28894 ___ Python tracker ___

[issue45410] python -m test -jN: write stderr in stdout to get messages in order

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: Calling sys.stdout doesn't help :-( Fail at commit ce3489cfdb9f0e050bdc45ce5d3902c2577ea683: https://buildbot.python.org/all/#/builders/73/builds/788 --- 0:00:10 load avg: 7.59 [306/427/1] test_ftplib failed (env changed) Warning -- Uncaught thread exception:

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-10-11 Thread Guy DeStefano
Guy DeStefano added the comment: Thank you very much for the reply. Sorry for previous text. Guy DeStefano On Mon, Oct 11, 2021 at 2:10 PM Marc Culler wrote: > > Marc Culler added the comment: > > No, Apple is not going to do away with their NSOpenPanel. There is always > some churn when

[issue45424] ssl.SSLError: unknown error (_ssl.c:4034)

2021-10-11 Thread Rahul Lakshmanan
Rahul Lakshmanan added the comment: Thanks for the answer! When I upgraded Python to 3.8.12, the issue went away. Can be closed. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker

[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-19007: "precise time.time() under Windows 8: use GetSystemTimePreciseAsFileTime". -- ___ Python tracker ___

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-10-11 Thread Marc Culler
Marc Culler added the comment: No, Apple is not going to do away with their NSOpenPanel. There is always some churn when they release a new OS. Subtle changes to APIs can occur with no warning and no documentation. Sometimes they are bugs. Sometimes they disappear when the OS is

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-10-11 Thread Guy DeStefano
Guy DeStefano added the comment: Thank you very Guy DeStefano On Mon, Oct 11, 2021 at 2:10 PM Marc Culler wrote: > > Marc Culler added the comment: > > No, Apple is not going to do away with their NSOpenPanel. There is always > some churn when they release a new OS. Subtle changes to

[issue45351] asyncio doc: List all sockets in TCP echo server using streams

2021-10-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +27175 pull_request: https://github.com/python/cpython/pull/28880 ___ Python tracker ___

[issue45351] asyncio doc: List all sockets in TCP echo server using streams

2021-10-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +27174 pull_request: https://github.com/python/cpython/pull/28879 ___ Python tracker

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27178 pull_request: https://github.com/python/cpython/pull/28884 ___ Python tracker ___

[issue45435] delete misleading faq entry about atomic operations

2021-10-11 Thread Thomas Grainger
Change by Thomas Grainger : -- assignee: docs@python components: Documentation nosy: docs@python, graingert priority: normal severity: normal status: open title: delete misleading faq entry about atomic operations ___ Python tracker

[issue45351] asyncio doc: List all sockets in TCP echo server using streams

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: Thanks Olaf van der Spek, I merged your PR and backported it to 3.9 and 3.10 branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python

[issue45351] asyncio doc: List all sockets in TCP echo server using streams

2021-10-11 Thread miss-islington
miss-islington added the comment: New changeset bb4f885892be0c337db3a81ef2936be0b3855de3 by Miss Islington (bot) in branch '3.10': bpo-45351, asyncio: Enhance echo server example, print all addresses (GH-28828) https://github.com/python/cpython/commit/bb4f885892be0c337db3a81ef2936be0b3855de3

[issue45351] asyncio doc: List all sockets in TCP echo server using streams

2021-10-11 Thread miss-islington
miss-islington added the comment: New changeset 320084fe7de90319928d8f3e597d5bca04db13f3 by Miss Islington (bot) in branch '3.9': bpo-45351, asyncio: Enhance echo server example, print all addresses (GH-28828) https://github.com/python/cpython/commit/320084fe7de90319928d8f3e597d5bca04db13f3

[issue45432] sys.argv is processed strangely under Windows

2021-10-11 Thread Paul
New submission from Paul : here is my test file: ''' import sys print(sys.argv) ''' when I then try 'python test.py ^test' the ^ character is stripped away, this doesn't happen on Linux. This also doesn't happen if I put ^test in quotes (only ") the ' quotes don't work --

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-10-11 Thread Ned Deily
Ned Deily added the comment: @Guy, thanks for your interest but in the future please don't use the issue tracker as a help forum. There are lots of places to ask about such matters; https://www.python.org/about/help/ has a good list of resources and, among the Python-specific mailing lists

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-10-11 Thread Guy DeStefano
Guy DeStefano added the comment: I appreciate the information, In the future I will do as is stated. Thanks for the reply. Guy DeStefano On Mon, Oct 11, 2021 at 2:24 PM Ned Deily wrote: > > Ned Deily added the comment: > > @Guy, thanks for your interest but in the future please don't use

[issue45428] py_compile fails to read filenames from stdin

2021-10-11 Thread Stefano Rivera
Change by Stefano Rivera : -- nosy: +stefanor ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-11 Thread Mark Dickinson
Mark Dickinson added the comment: +1 for the removals. (We should fix #44970 too, but as you say that's a separate issue. And I suspect that the Py_ADJUST_ERANGE1() use for float pow should be replaced, too.) -- ___ Python tracker

[issue45410] python -m test -jN: write stderr in stdout to get messages in order

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27179 pull_request: https://github.com/python/cpython/pull/28885 ___ Python tracker ___

[issue45434] [C API] Clean-up the Python.h header file

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27180 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28883 ___ Python tracker ___

[issue45432] sys.argv is processed strangely under Windows

2021-10-11 Thread Zachary Ware
Zachary Ware added the comment: This is Windows behavior, not Python; ^ is an escape character in cmd.exe. Try for example `echo test ^| python -c "print('hello world')"` with and without the ^ character. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue45432] sys.argv is processed strangely under Windows

2021-10-11 Thread Paul
Paul added the comment: oh ok. thx -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45433] libpython should not be linked with libcrypt

2021-10-11 Thread Mike Gilbert
New submission from Mike Gilbert : In https://bugs.python.org/issue44751, crypt.h was removed from Python.h. This would imply that libpython is not meant to expose any crypt-related symbols. In fact, it looks like libpython does not use crypt() or crypt_r() at all. These are only used by

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2f92e2a590f0e5d2d3093549f5af9a4a1889eb5a by Victor Stinner in branch 'main': bpo-45412: Remove Py_SET_ERRNO_ON_MATH_ERROR() macro (GH-28820) https://github.com/python/cpython/commit/2f92e2a590f0e5d2d3093549f5af9a4a1889eb5a --

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27177 pull_request: https://github.com/python/cpython/pull/28882 ___ Python tracker ___

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: > *This isn't reliable. See Py_OVERFLOWED comments. Oops, Py_OVERFLOWED() has been removed: I created PR 28884 to fix the comment. -- ___ Python tracker

[issue45434] [C API] Clean-up the Python.h header file

2021-10-11 Thread STINNER Victor
New submission from STINNER Victor : I would like to remove #include from Python.h, and make Python.h smaller. -- components: C API messages: 403675 nosy: vstinner priority: normal severity: normal status: open title: [C API] Clean-up the Python.h header file versions: Python 3.11

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-10-11 Thread Guy DeStefano
Guy DeStefano added the comment: Please help me. Am new to Python, and don't know enough to post here, but I will try. Have written a couple of programs that use tkinter, especially tkinter.filedialog.askopenfilenames, and as everyone else mine has quit working since Monterey. I have a

[issue45433] libpython should not be linked with libcrypt

2021-10-11 Thread Mike Gilbert
Change by Mike Gilbert : -- keywords: +patch pull_requests: +27176 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28881 ___ Python tracker ___

[issue45410] python -m test -jN: write stderr in stdout to get messages in order

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: Sadly, a recent build failure (at commit 560a79f94e94de66a18f2a5e4194c2fe51e2adf1) still write "Uncaught thread exception" at the top of logs: --- 0:00:11 load avg: 6.07 [315/427/1] test_ftplib failed (env changed) Warning -- Uncaught thread exception:

[issue45436] test_configure_type() failed on

2021-10-11 Thread STINNER Victor
New submission from STINNER Victor : x86 Gentoo Non-Debug with X 3.x: https://buildbot.python.org/all/#/builders/58/builds/891 test.pythoninfo: tkinter.TCL_VERSION: 8.6 tkinter.TK_VERSION: 8.6 tkinter.info_patchlevel: 8.6.11 2 tests failed: test_tk test_ttk_guionly

[issue44571] itertools: takedowhile()

2021-10-11 Thread paul rubin
paul rubin added the comment: Oh wow, before_and_after will go into the itertools module per that patch? I found this issue while looking for a way to this, but had written the following implementation: def span(pred, xs): # split xs into two iterators a,b where a() is the prefix of xs

[issue45415] Assert oparg < INSTR_OFFSET()

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: Steve: > Also +Victor, because I think we should switch back to debug builds in CI in > order to catch failed assertions before they get merged. Ken Jin: > So I don't see why Windows is special. The Python test suite is way slower on Windows when Python is

[issue45426] PANDAS INSTALLATION PIP FAILED ON WINDOWS 11

2021-10-11 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: > $ ./python -X tracemalloc -m test -v test_logging -m test_should_not_rollover FYI you can use -X tracemalloc=10 to get a more complete traceback. -- ___ Python tracker

[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: See also: https://groups.google.com/a/chromium.org/g/scheduler-dev/c/0GlSPYreJeY -- ___ Python tracker ___

[issue45428] py_compile fails to read filenames from stdin

2021-10-11 Thread Graham Inggs
New submission from Graham Inggs : py_compile fails to read a list of filenames to be compiled from standard input. This is a regression in 3.10. example files-to-compile.txt is a text file containing hello.py and goodbye.py on separate lines. hello.py and goodbye.py must exist.

[issue45415] Assert oparg < INSTR_OFFSET()

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: > *facepalm* on myself, for not even thinking of that. Indeed, clearing all my > .pyc files fixes it. This issue has been fixed, no? Can it be closed? commit 5e173f5db17cbb2e3f2139a3c5ccb6b81ac59785 Author: Mark Shannon Date: Sat Oct 9 14:17:22 2021

[issue45427] importlib.readers.MultiplexedPath

2021-10-11 Thread David Rajaratnam
New submission from David Rajaratnam : I'm trying to use `importlib.resources.files()`. However, I cannot work out how to properly use the `importlib.readers.MultiplexedPath()` object that is returned. As I expect and want, the returned object is referring to a directory, but I cannot seem

[issue45424] ssl.SSLError: unknown error (_ssl.c:4034)

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

[issue45426] PANDAS INSTALLATION PIP FAILED ON WINDOWS 11

2021-10-11 Thread Eric V. Smith
Eric V. Smith added the comment: Please report this on the pandas bug tracker: https://github.com/pandas-dev/pandas/issues -- nosy: +eric.smith ___ Python tracker ___

[issue21302] time.sleep (floatsleep()) should use clock_nanosleep() on Linux

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: > That said, using a waitable timer leaves the door open for improvement in > future versions of Python. In particular, it's possible to get higher > resolution in newer versions of Windows 10 and Windows 11 with > CreateWaitableTimerExW() and the

[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: Vinay: Oh, thanks for the fix! Using os.path.isfile() is a reasonable fix to detect if the file is a device. -- ___ Python tracker ___

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27166 pull_request: https://github.com/python/cpython/pull/28865 ___ Python tracker ___

[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-10-11 Thread STINNER Victor
New submission from STINNER Victor : In bpo-21302, the Windows implementation of time.sleep() was modified to use a waitable timer: New changeset 58f8adfda3c2b42f654a55500e8e3a6433cb95f2 by Victor Stinner in branch 'main': bpo-21302: time.sleep() uses waitable timer on Windows (GH-28483)

[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: The Go programming language called timeBeginPeriod(1) to get more accurate timers. With the following change, it can now use a high resolution timer (CREATE_WAITABLE_TIMER_HIGH_RESOLUTION) to sleep: https://go-review.googlesource.com/c/go/+/248699/

[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2021-10-11 Thread Vadym Stupakov
Vadym Stupakov added the comment: > Do we have any news about this? There is IBM effort to do this in container level, so that os.cpu_count() will return right result in container https://www.phoronix.com/scan.php?page=news_item=Linux-CPU-Namespace -- nosy: +RedEyed

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +27165 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/28864 ___ Python tracker ___

[issue45427] importlib.readers.MultiplexedPath

2021-10-11 Thread Eric V. Smith
Eric V. Smith added the comment: Can you provide a short code snippet that we can run that demonstrates the problem? Looking at the code, and not knowing much about it, maybe iterating over the paths with .iterdir() is what you want? -- nosy: +eric.smith

  1   2   >