[issue45020] Freeze all modules imported during startup.

2021-08-27 Thread Neil Schemenauer
Neil Schemenauer added the comment: [Larry] > The one thing I guess I never mentioned is that building and working with the > prototype was frightful; it had both Python code and C code, and it was > fragile and hard to get working. I took Larry's PR and did a fair amount of cleanup on it to

[issue45020] Freeze all modules imported during startup.

2021-08-27 Thread Larry Hastings
Larry Hastings added the comment: > What the two approaches have in common is that they require rebuilding the > python binary whenever you edit any of the changed modules. I heard somewhere > (I'm sorry, I honestly don't recall who said it first, possibly Eric himself) > that Jeethu's

[issue45020] Freeze all modules imported during startup.

2021-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: > Since nobody's said so in so many words (so far in this thread anyway): the > prototype from Jeethu Rao in 2018 was a different technology than what Eric > is doing. The "Programs/_freeze_importlib.c" Eric's playing with essentially > inlines a .pyc

[issue45027] Allow basicConfig to configure any logger, not just root

2021-08-27 Thread Greg Werbin
Change by Greg Werbin : -- keywords: +patch pull_requests: +26452 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28010 ___ Python tracker ___

[issue44809] Changelog missing removal of StrEnum etc.

2021-08-27 Thread Ned Deily
Change by Ned Deily : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45031] [Windows] datetime.fromtimestamp(t) when t = 253402210800 fails on Python 3.8

2021-08-27 Thread Eryk Sun
Eryk Sun added the comment: The supported range depends on the platform. The C runtime library in Windows can handle dates through the year 3000 [1]: >>> datetime.fromtimestamp(3253679) datetime.datetime(3001, 1, 19, 7, 59, 59) >>> datetime.fromtimestamp(3253680)

[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

2021-08-27 Thread Andrei Kulakov
Andrei Kulakov added the comment: I went through dunder methods to check if any other operators or builtins work on objects without respective dunder methods: - del x works even though there is no object.__del__ - operator.length_hint() => 0 when there is no object.__length_hint__ So in

[issue33084] statistics module: NaN handling in median, median_high an median_low

2021-08-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: See thread on Python-Ideas. https://mail.python.org/archives/list/python-id...@python.org/thread/EDRF2NR4UOYMSKE64KDI2SWUMKPAJ3YM/ -- ___ Python tracker

[issue45020] Freeze all modules imported during startup.

2021-08-27 Thread Larry Hastings
Larry Hastings added the comment: There should be a boolean flag that enables/disables cached copies of .py files from Lib/. You should be able to turn it off with either an environment variable or a command-line option, and when it's off it skips all the internal cached stuff and uses the

[issue45020] Freeze all modules imported during startup.

2021-08-27 Thread Larry Hastings
Larry Hastings added the comment: Since nobody's said so in so many words (so far in this thread anyway): the prototype from Jeethu Rao in 2018 was a different technology than what Eric is doing. The "Programs/_freeze_importlib.c" Eric's playing with essentially inlines a .pyc file as C

[issue45032] struct.unpack() returns NaN

2021-08-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Jorge, next time you have questions about how to use a module (and struct is fairly advanced), please ask on an appropriate forum, such as python-list. Then Steven's nice answer could be read by 100s of people instead of likely less than 10. I looked as

[issue45034] Improve struct.pack out of range error messages

2021-08-27 Thread Steven D'Aprano
New submission from Steven D'Aprano : Packing errors using struct in 3.9 seem to be unnecessarily obfuscated to me. >>> import struct >>> struct.pack('H', 7) Traceback (most recent call last): File "", line 1, in struct.error: ushort format requires 0 <= number <=

[issue45032] struct.unpack() returns NaN

2021-08-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug, and I'm unconvinced that it needs a documentation change. If you are using struct to assemble values, you need to know the meaning of the struct format. It returns a float NAN because you give it the bit pattern of a NAN. For C singles

[issue45020] Freeze all modules imported during startup.

2021-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: Adding Larry in case he remembers more color. (Larry: the key question here is whether some version of this (like the one I've been working on, or a simpler one that Eric has prepared) is viable, given that any time someone works on one of the frozen or

[issue45020] Freeze all modules imported during startup.

2021-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: The plot thickens. By searching my extensive GMail archives for Jeethu Rao I found an email from Sept. 14 to python-dev by Larry Hastings titled "Store startup modules as C structures for 20%+ startup speed improvement?" It references an issue and a PR:

[issue45033] Calls to PyErr_PrintEx in destructors cause calling async functions to incorrectly return None

2021-08-27 Thread Zac Bentley
New submission from Zac Bentley : If an object's destructor contains native code which calls PyErr_PrintEx, and that object's refcount drops to zero as the result of an async function returning, the async function incorrectly returns None. I first identified this behavior while using

[issue45020] Freeze all modules imported during startup.

2021-08-27 Thread Eric Snow
Eric Snow added the comment: Neil, do you recall the story here? -- nosy: +BTaskaya, brandtbucher, nascheme ___ Python tracker ___

[issue45021] Race condition in thread.py

2021-08-27 Thread nullptr
nullptr added the comment: I don't think so: this issue would only arise when using fork on linux and not spawn (win/osx) like it seems your system is doing -- ___ Python tracker

[issue17120] Mishandled _POSIX_C_SOURCE and _XOPEN_SOURCE in pyconfig.h

2021-08-27 Thread Irit Katriel
Irit Katriel added the comment: I can't find pyconfig.h or "#define _POSIX_C_SOURCE" or "#define _XOPEN_SOURCE". If nobody will object I will soon close this issue as out of date. -- nosy: +iritkatriel resolution: -> out of date status: open -> pending

[issue45007] OpenSSL 1.1.1l is released

2021-08-27 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +26451 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/28009 ___ Python tracker

[issue33511] Update config.sub

2021-08-27 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> update config.guess and config.sub ___ Python tracker

[issue45021] Race condition in thread.py

2021-08-27 Thread Irit Katriel
Irit Katriel added the comment: I'm seeing this (intermittently) on main branch, could be related? iritkatriel@Irits-MBP cpython-1 % ./python.exe Lib/test/test_importlib/partial/pool_in_threads.py Traceback (most recent call last): Traceback (most recent call last): Traceback (most recent

[issue45021] Race condition in thread.py

2021-08-27 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +pitrou, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44998] macOS build test failure

2021-08-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +macOS nosy: +ned.deily, ronaldoussoren title: tests failed -> macOS build test failure ___ Python tracker ___

[issue44995] "Hide the prompts and output" works abnormal

2021-08-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44989] Fix documentation for truth testing

2021-08-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think that this proposal is either premature or not needed. (But did you have anything specific in mind.) As you indicated, there are two separate subissues here. 1. NotImplemented: Issue 35712 added "It should not be evaluated in a boolean context" to

[issue19113] duplicate test names in Lib/ctypes/test/test_functions.py

2021-08-27 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 8.0 -> 9.0 pull_requests: +26450 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/28008 ___ Python tracker

[issue45021] Race condition in thread.py

2021-08-27 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +26449 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28007 ___ Python tracker

[issue43913] unittest module cleanup functions not run unless tearDownModule() is defined

2021-08-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26448 pull_request: https://github.com/python/cpython/pull/28006 ___ Python tracker ___

[issue43913] unittest module cleanup functions not run unless tearDownModule() is defined

2021-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are several other bugs in the code for cleaning up classes and modules: * Functions registered with addClassCleanup() are not called if tearDownClass is set to None or its look up raises AttributeError. * Buffering in TestResult blows up when

[issue44983] Wrong definition of a starred expression in the Language Reference

2021-08-27 Thread Éric Araujo
Éric Araujo added the comment: This should answer questions about the processes: https://devguide.python.org/tracker/ -- ___ Python tracker ___

[issue44983] Wrong definition of a starred expression in the Language Reference

2021-08-27 Thread Éric Araujo
Éric Araujo added the comment: Hello! For future tickets, please include all relevant info here rather that only links. Linked message is: According to the Language Reference, a starred expression is defined by starred_expression ::= expression | (starred_item ",")* [starred_item]

[issue25130] Make tests more PyPy compatible

2021-08-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26447 pull_request: https://github.com/python/cpython/pull/28005 ___ Python tracker ___

[issue25130] Make tests more PyPy compatible

2021-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unfortunately Martin's comments are not available now, after shutting down the Rietveld service. Here is a new PR which contains extraction of PyPy changes related to calling gc.collect() for 3.8. I removed changes which look specific for PyPy and left

[issue24888] FileNotFoundException raised by subprocess.call

2021-08-27 Thread Diana
Diana added the comment: Hi, I will work on this. I will create a pull request within 3 days. -- nosy: +DonnaDia ___ Python tracker ___

[issue44925] [docs] Confusing deprecation notice for typing.IO

2021-08-27 Thread Diana
Change by Diana : -- keywords: +patch pull_requests: +26446 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28004 ___ Python tracker ___

[issue44925] [docs] Confusing deprecation notice for typing.IO

2021-08-27 Thread Diana
Diana added the comment: Hi, I can handle this. I will provide a pull request within 3 days. -- nosy: +DonnaDia ___ Python tracker ___

[issue33426] [doc] Behavior of os.path.join does not match documentation

2021-08-27 Thread Diana
Change by Diana : -- keywords: +patch pull_requests: +26445 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28003 ___ Python tracker ___

[issue33426] [doc] Behavior of os.path.join does not match documentation

2021-08-27 Thread Diana
Diana added the comment: Hi, I'm working on it. I will provide the pull request within 3 days. -- nosy: +DonnaDia ___ Python tracker ___

[issue14088] sys.executable generating canonical path

2021-08-27 Thread Irit Katriel
Irit Katriel added the comment: This is still unresolved: iritkatriel@Irits-MBP Lib % pwd /Users/iritkatriel/src/cpython-1/Lib iritkatriel@Irits-MBP Lib % ../python.exe -m test -v test_sys [snipped] == FAIL: test_executable

[issue45032] struct.unpack() returns NaN

2021-08-27 Thread Jorge Rojas
New submission from Jorge Rojas : Hi all! I have this case when trying to get a float value applying pack to these integer values: struct.unpack('f', struct.pack('HH', 0, 32704)) This happens when executing the unpack function to a float format, from a bit-array where the sign bit is not in

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread E. Paine
E. Paine added the comment: Thanks for reporting this issue. This was (very) recently fixed in issue42560 / PR27842. These changes include a new hello world example and can be seen in the 3.10 / 3.11 docs (https://docs.python.org/3.10/library/tkinter.html#a-hello-world-program). This

[issue45022] Update libffi to 3.4.2

2021-08-27 Thread Steve Dower
Steve Dower added the comment: Realised that 3.8 needs the change to ensure it keeps using the same build of libffi. Obviously it won't be getting the new one (and since the new one is apparently a new API version, it may not even go into 3.10). --

[issue45022] Update libffi to 3.4.2

2021-08-27 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +26444 pull_request: https://github.com/python/cpython/pull/28001 ___ Python tracker ___

[issue45022] Update libffi to 3.4.2

2021-08-27 Thread miss-islington
miss-islington added the comment: New changeset db36fdb1f42f490b7c2a3484a69aa1e6c72b6a4c by Miss Islington (bot) in branch '3.10': bpo-45022: Pin current libffi build to fixed version in preparation for upcoming update (GH-27982)

[issue45022] Update libffi to 3.4.2

2021-08-27 Thread miss-islington
miss-islington added the comment: New changeset 399cd466d0379d12e4af343a49ca7e8ec84997fa by Miss Islington (bot) in branch '3.9': bpo-45022: Pin current libffi build to fixed version in preparation for upcoming update (GH-27982)

[issue13033] Add shutil.chowntree

2021-08-27 Thread sedrubal
Change by sedrubal : -- nosy: +sedrubal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20779] Add pathlib.chown method

2021-08-27 Thread sedrubal
Change by sedrubal : -- nosy: +sedrubal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45030] Integer overflow in __reduce__ of the range iterator

2021-08-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26443 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28000 ___ Python tracker

[issue45028] module 'unittest.mock' has no attribute 'AsyncMock'

2021-08-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: compile error -> behavior ___ Python tracker ___

[issue45031] [Windows] datetime.fromtimestamp(t) when t = 253402210800 fails on Python 3.8

2021-08-27 Thread Jan Ripke
New submission from Jan Ripke : When executing the following statement on a Windows machine it fails. On a linux machine it returns the expected date (-31-12 00:00:00) The Error we get on Windows is: OSError: [Errno 22] Invalid argument In another manor it was reported before:

[issue45030] Integer overflow in __reduce__ of the range iterator

2021-08-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : >>> it = iter(range(2**63-10, 2**63-1, 10)) >>> it.__reduce__() (, (range(9223372036854775798, -9223372036854775808, 10),), 0) >>> import pickle >>> it2 = pickle.loads(pickle.dumps(it)) >>> list(it) [9223372036854775798] >>> list(it2) [] --

[issue45020] Freeze all modules imported during startup.

2021-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: We should ask Neil S. for the issue where Larry introduced this. That might have some discussion. But if I had to guess, it’s confusing that you can see *Python* source that you can’t edit (or rather, where editing doesn’t get reflected in the next Python

[issue45028] module 'unittest.mock' has no attribute 'AsyncMock'

2021-08-27 Thread Phani Kumar Yadavilli
Phani Kumar Yadavilli added the comment: Sure, will do that. Regards Phani kumar yadavilli On Fri, Aug 27, 2021 at 7:54 PM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Singaravelan added the comment: > > AsyncMock is a feature of Python 3.8 . Please upgrade to

[issue45028] module 'unittest.mock' has no attribute 'AsyncMock'

2021-08-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: AsyncMock is a feature of Python 3.8 . Please upgrade to Python 3.8 or use mock backport for AsyncMock in Python 3.7 https://github.com/testing-cabal/mock . I guess this can be closed as not a bug. --

[issue45028] module 'unittest.mock' has no attribute 'AsyncMock'

2021-08-27 Thread Phani Kumar Yadavilli
Phani Kumar Yadavilli added the comment: I am using python 3.7. Regards Phani kumar yadavilli On Fri, Aug 27, 2021 at 7:49 PM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Karthikeyan Singaravelan added the comment: > > What version of Python are you using? > > -- >

[issue45028] module 'unittest.mock' has no attribute 'AsyncMock'

2021-08-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: What version of Python are you using? -- ___ Python tracker ___ ___ Python-bugs-list

[issue45020] Freeze all modules imported during startup.

2021-08-27 Thread Mark Shannon
Mark Shannon added the comment: I don't recall, but... You can't modify any builtin modules. Freezing modules effectively makes them builtin from a user's perspective. There are plenty of modules that can't be modified: >>> sys.builtin_module_names ('_abc', '_ast', '_codecs',

[issue45020] Freeze all modules imported during startup.

2021-08-27 Thread Eric Snow
Eric Snow added the comment: @Guido, @Mark Shannon, do you recall the other issue where folks objected to that other patch, due to local changes to source files not being reflected? Also, one thought that comes to mind is that we could ignore the frozen modules when in a dev environment

[issue40608] PY3.8 GC segfault (Py_TRASHCAN_SAFE_BEGIN/END are not backwards compatible)

2021-08-27 Thread Irit Katriel
Irit Katriel added the comment: Superseeded by deprecation under Issue44874. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-27 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for the fix, Ronald and Erlend! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.8, Python 3.9 ___ Python tracker

[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-27 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 9500dd5144cb911cf4e6fb027bb25b675f0e3643 by Miss Islington (bot) in branch '3.9': bpo-44997: macOS does not support loadable SQLite extensions (GH-27979) (GH-27995) https://github.com/python/cpython/commit/9500dd5144cb911cf4e6fb027bb25b675f0e3643

[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-27 Thread miss-islington
miss-islington added the comment: New changeset baa8d48230e3ab8a504f39ee800f8852897cb3be by Miss Islington (bot) in branch '3.10': bpo-44997: macOS does not support loadable SQLite extensions (GH-27979) https://github.com/python/cpython/commit/baa8d48230e3ab8a504f39ee800f8852897cb3be

[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-27 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 9c74678d53847f61df255435a0e5a6e3e1d657f5 by Miss Islington (bot) in branch '3.8': bpo-44997: macOS does not support loadable SQLite extensions (GH-27979) (GH-27996) https://github.com/python/cpython/commit/9c74678d53847f61df255435a0e5a6e3e1d657f5

[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-27 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for your input, Pablo. In this case this can safely be closed. Thank you Irit for finding this and providing the PR! ✨  ✨ -- ___ Python tracker

[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-27 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I prefer to not backport this to 3.10 because technically we cannot introduce new deprecations in an rc and I don't want someone compiling with -Werror to crash between rcs. -- ___ Python tracker

[issue45013] os.path.isfile fails on path exactly 260 Chars long in Windows

2021-08-27 Thread Luke Rossi
Luke Rossi added the comment: What an annoying edge case - makes sense that there isn't an easy fix. The extended path prefix worked perfectly - thanks -- ___ Python tracker

[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +26442 pull_request: https://github.com/python/cpython/pull/27996 ___ Python tracker ___

[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +26441 pull_request: https://github.com/python/cpython/pull/27995 ___ Python tracker ___

[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-27 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 2ec9428e3516b6e7c6583687aa3b39fb96925577 by Erlend Egeberg Aasland in branch 'main': bpo-44997: macOS does not support loadable SQLite extensions (GH-27979) https://github.com/python/cpython/commit/2ec9428e3516b6e7c6583687aa3b39fb96925577

[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +26440 pull_request: https://github.com/python/cpython/pull/27994 ___ Python tracker

[issue45018] Pickling a range iterator with an index of over sizeof(int) stores an invalid index

2021-08-27 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 02437641d20f58191558ba52570832ef3a30cfef by Miss Islington (bot) in branch '3.9': bpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938) (GH-27991) https://github.com/python/cpython/commit/02437641d20f58191558ba52570832ef3a30cfef --

[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-27 Thread Łukasz Langa
Łukasz Langa added the comment: This isn't closed yet because we need a decision whether to issue warnings about Py_TRASHCAN_SAFE_BEGIN/END usage in 3.10 as well. This was suggested by Petr here:

[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-27 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +26439 pull_request: https://github.com/python/cpython/pull/20104 ___ Python tracker ___

[issue44874] Deprecate Py_TRASHCAN_SAFE_BEGIN/END

2021-08-27 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- nosy: +jdemeyer nosy_count: 4.0 -> 5.0 pull_requests: +26438 pull_request: https://github.com/python/cpython/pull/12607 ___ Python tracker ___

[issue45018] Pickling a range iterator with an index of over sizeof(int) stores an invalid index

2021-08-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26436 pull_request: https://github.com/python/cpython/pull/27990 ___ Python tracker

[issue45018] Pickling a range iterator with an index of over sizeof(int) stores an invalid index

2021-08-27 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 94a3d2a6329ab7941e93ad2f5bcbb8af2b8b80d2 by chilaxan in branch 'main': bpo-45018: Fix rangeiter_reduce in rangeobject.c (GH-27938) https://github.com/python/cpython/commit/94a3d2a6329ab7941e93ad2f5bcbb8af2b8b80d2 --

[issue45018] Pickling a range iterator with an index of over sizeof(int) stores an invalid index

2021-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +26437 pull_request: https://github.com/python/cpython/pull/27991 ___ Python tracker ___

[issue44929] Some RegexFlag cannot be printed in the repr

2021-08-27 Thread Łukasz Langa
Łukasz Langa added the comment: repr(re.RegexFlag(0)) no longer crashes so we can close this. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread Lyndon D'Arcy
Lyndon D'Arcy added the comment: Apologies, my original post was unclear. The help(app.quit) which I posted is what we should get when the method isn't clobbered. What Serhiy has posted is what you get after running the example as-is. It shows that after running the example self.quit refers

[issue45014] SyntaxError describing the error using a wrong term

2021-08-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The error is correct: >>> *(2,3,4) File "", line 1 SyntaxError: can't use starred expression her The problem is that you are trying to use as top level while: *(), is equivalent to: (*(),) which is using them in a tuple -- nosy:

[issue44826] Specialize STORE_ATTR using PEP 659 machinery.

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

[issue44945] Specialize BINARY_ADD using PEP 659 machinery.

2021-08-27 Thread Mark Shannon
Change by Mark Shannon : -- stage: resolved -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45028] module 'unittest.mock' has no attribute 'AsyncMock'

2021-08-27 Thread Phani Kumar Yadavilli
Phani Kumar Yadavilli added the comment: from unittest import mock @mock.patch( "project.celerytasks.embedder.BulkEmbedder.fetch_embedding", mock.AsyncMock(return_value=embedding_response), ) def test_document_embedding(): doc = { "orgId": "orgtest" } doc =

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I get different result: >>> app.quit >>> help(app.quit) Help on Button in module tkinter object: class Button(Widget) | Button(master=None, cnf={}, **kw) | | Button widget. | ... -- nosy: +serhiy.storchaka

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread Lyndon D'Arcy
New submission from Lyndon D'Arcy : Below is the example as it is. Currently self.quit clobbers a built-in method of the same name. I would suggest renaming self.quit to self.quit_button or similar. --- import tkinter as tk class

[issue44945] Specialize BINARY_ADD using PEP 659 machinery.

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

[issue44945] Specialize BINARY_ADD using PEP 659 machinery.

2021-08-27 Thread Mark Shannon
Mark Shannon added the comment: New changeset d3eaf0cc5b311ad023fd13e367f817d528403306 by Mark Shannon in branch 'main': bpo-44945: Specialize BINARY_ADD (GH-27967) https://github.com/python/cpython/commit/d3eaf0cc5b311ad023fd13e367f817d528403306 --

[issue45028] module 'unittest.mock' has no attribute 'AsyncMock'

2021-08-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add a sample script to reproduce the problem. It will be also helpful to add how you run the script and also attach the error message you are getting. Given that you have selected Python 3.7 version AsyncMock was added in Python 3.8

[issue45028] module 'unittest.mock' has no attribute 'AsyncMock'

2021-08-27 Thread Phani Kumar Yadavilli
New submission from Phani Kumar Yadavilli : The unittest.mock does not have AsyncMock. I tested the same code in 3.9 it works fine. -- messages: 400400 nosy: wandermonk priority: normal severity: normal status: open title: module 'unittest.mock' has no attribute 'AsyncMock' type:

[issue45025] Reliance on C bit fields in C API is undefined behavior

2021-08-27 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45026] More compact range iterator

2021-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: step can be negative. So the condition should be more complex: ((r->stop > 0) ? (result < r->stop) : (result > r->stop)). And it would look much more complex for longrangeiterobject. -- ___ Python tracker

[issue34804] Repetition of 'for example' in documentation

2021-08-27 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 6.0 -> 7.0 pull_requests: +26435 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27989 ___ Python tracker