[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

[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. python3.1

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

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

[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: https://mail.p

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

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

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

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

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

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

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

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

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

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

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

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: This issue is closed. If you consider that time.sleep() has a bug or could be enhanced, please open a new issue. -- ___ 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 ___ __

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

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

2021-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 15188b115a2da815556053372c912a81a74be43b by Serhiy Storchaka in branch 'main': bpo-45401: Fix a resource warning in test_logging (GH-28864) https://github.com/python/cpython/commit/15188b115a2da815556053372c912a81a74be43b -- ___

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

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

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

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

[issue45430] PEP 523 no longer works

2021-10-11 Thread Mark Shannon
New submission from Mark Shannon : https://github.com/python/cpython/pull/28488 breaks PEP 523 as it bypasses _PyEval_EvalFrame. The fix is simple, we need to check tstate->interp->eval_frame. -- assignee: Mark.Shannon components: Interpreter Core messages: 403637 nosy: Mark.Shannon p

[issue44571] itertools: takedowhile()

2021-10-11 Thread paul rubin
paul rubin added the comment: Bah, the above doesn't work in the cases where the iterator is empty or (different symptom) where the tail part is empty. Rather than posting a corrected version (unless someone wants it) I'll just say not to use that code fragment, but that the intended API st

[issue45430] PEP 523 no longer works

2021-10-11 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +27169 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28871 ___ Python tracker ___ ___

[issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

2021-10-11 Thread STINNER Victor
New submission from STINNER Victor : #include should only define names which start with "Py" (Py, _Py, PY, _PY), but it now defines a structure called "CFrame" in Include/cpython/pystate.h. We should either make the whole PyThreadState structure private (move it to the internal C API), or r

[issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-45316: [C API] Functions not exported with PyAPI_FUNC(). -- ___ Python tracker ___ _

[issue45316] [C API] Functions not exported with PyAPI_FUNC()

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-45431: [C API] Rename CFrame or hide it to only export names starting with Py. -- ___ Python tracker ___ __

[issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: See also the old isssue with "READONLY": bpo-2897 "PyMemberDef missing in limited API / Deprecate structmember.h". -- ___ Python tracker ___

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

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset ac421c348bf422f9a0d85fe0a1de3fa3f4886650 by Miss Islington (bot) in branch '3.9': bpo-45401: Change shouldRollover() methods to only rollover regular f… (GH-28822) (#28866) https://github.com/python/cpython/commit/ac421c348bf422f9a0d85fe0a1de3fa

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

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5aca34f17c4baf8e4882a7e8a827cff06ac6ef25 by Miss Islington (bot) in branch '3.10': bpo-45401: Change shouldRollover() methods to only rollover regular f… (GH-28822) (#28867) https://github.com/python/cpython/commit/5aca34f17c4baf8e4882a7e8a827cf

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

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

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

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

[issue45427] importlib.readers.MultiplexedPath

2021-10-11 Thread David Rajaratnam
David Rajaratnam added the comment: Thanks for the quick response. I think the attached file shows the issue. In the directory where you download and run this file create a sub-directory 'data'. Then running the file creates the output (note: I've truncated the path name): > Traverse data:

[issue42253] xml.dom.minidom.rst missing standalone documentation

2021-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c7e81fcf9548ab6a0a4828d6f2db9ece9d204826 by Jens Diemer in branch 'main': bpo-42253: Update xml.dom.minidom.rst (GH-23126) https://github.com/python/cpython/commit/c7e81fcf9548ab6a0a4828d6f2db9ece9d204826 -- nosy: +serhiy.storchaka

[issue42253] xml.dom.minidom.rst missing standalone documentation

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

[issue42253] xml.dom.minidom.rst missing standalone documentation

2021-10-11 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27172 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28874 ___ Python tracker

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

2021-10-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: Marc, thanks for the update. Will there be a Tcl/Tk release soonish that includes this fix? Alternatively, is there patch that we can apply to the latest release when building the copy of Tk included with the installers? -- __

[issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

2021-10-11 Thread Mark Shannon
Mark Shannon added the comment: Struct names aren't exported as symbols. $ nm ./python | grep CFrame So, I assume that are worried about name clashes for code that has #include "Python.h". Isn't the threadstate struct supposed to be opaque? If so, then shouldn't it be moved to an internal h

[issue45430] PEP 523 no longer works

2021-10-11 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45431] [C API] Rename CFrame or hide it to only export names starting with Py

2021-10-11 Thread STINNER Victor
STINNER Victor added the comment: Mark Shannon: > Struct names aren't exported as symbols. Right. > So, I assume that are worried about name clashes for code that has > #include "Python.h". Right :-) > Isn't the threadstate struct supposed to be opaque? Technically, it's public. I'm workin

[issue45411] Add Mimetypes for Subtitle Files

2021-10-11 Thread Julien Palard
Julien Palard added the comment: New changeset d74da9e140441135a4eddaef9a37f00f32579038 by Josephine-Marie in branch 'main': bpo-45411: Update mimetypes.py (GH-28792) https://github.com/python/cpython/commit/d74da9e140441135a4eddaef9a37f00f32579038 -- __

[issue20028] csv: Confusing error message when giving invalid quotechar in initializing dialect

2021-10-11 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset ab62051152cb24470056ffaeb9107c8b4311375e by Dong-hee Na in branch 'main': bpo-20028: Empty escapechar/quotechar is not allowed for csv.Dialect (GH-28833) https://github.com/python/cpython/commit/ab62051152cb24470056ffaeb9107c8b4311375e --

[issue20028] csv: Confusing error message when giving invalid quotechar in initializing dialect

2021-10-11 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

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

2021-10-11 Thread Marc Culler
Marc Culler added the comment: Hi Ronald, There is no calendar scheduling for Tk releases. Don Porter decides when they happen. But I think we are due for another one soonish. In case it doesn't happen before the next Python release I will attach the patch file for commit a32262e9. (Note

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

2021-10-11 Thread Randolf Scholz
Randolf Scholz added the comment: Dear Raymond, I think decorator chaining is a very useful concept. At the very least, if all decorators are functional (following the `functools.wraps` recipe), things work out great -- we even get associativity of function composition if things are done pro

[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: https://mail.pytho

[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: https://mail.pytho

[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

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

[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: https://mail.python.or

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

[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

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

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

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

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

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

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

[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: https://mail.python.o

[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: https:/

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

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

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

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

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

[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: https://mail.py

[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

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

[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: > +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: *

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

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

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

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

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

[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

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

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

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

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

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

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

[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

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

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

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

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

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

[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
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
Change by STINNER Victor : -- pull_requests: +27184 pull_request: https://github.com/python/cpython/pull/28889 ___ 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 03ea862b8a8234176761240ba122254e9eb11663 by Victor Stinner in branch 'main': bpo-45434: Python.h no longer includes (GH-2) https://github.com/python/cpython/commit/03ea862b8a8234176761240ba122254e9eb11663 -- _

  1   2   >