[issue46257] Convert statistics sum of squares to a single pass algorithm

2022-01-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +28611 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30403 ___ Python tracker

[issue17951] TypeError during gdb backtracing

2022-01-04 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> python-gdb.py fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols ___ Python

[issue46249] [sqlite3] move set lastrowid out of the query loop

2022-01-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 04.01.2022 21:02, Erlend E. Aasland wrote: > > Erlend E. Aasland added the comment: > >> If possible, it's usually better to have the .executemany() create a >> cursor with an output array providing the row ids, e.g. using "INSERT ... >> RETURNING

[issue46258] Minor algorithmic improvements for math.isqrt

2022-01-04 Thread Mark Dickinson
New submission from Mark Dickinson : There are a couple of minor algorithmic improvements possible for the math.isqrt fast path (which is used for nonnegative integers smaller than 2**64). On my machine those improvements produce a little over a 10% speedup. The current algorithm for values

[issue46258] Minor algorithmic improvements for math.isqrt

2022-01-04 Thread Mark Dickinson
Change by Mark Dickinson : -- keywords: +patch pull_requests: +28612 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/30333 ___ Python tracker

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

2022-01-04 Thread Alex Waygood
Alex Waygood added the comment: `isinstance(list[int], type)` returns `True` in 3.9 as well, so the behaviour has been around for a while. (Not a comment on whether the change is worth making, just a note.) -- ___ Python tracker

[issue45609] Specialize STORE_SUBSCR

2022-01-04 Thread Mark Shannon
Mark Shannon added the comment: New changeset 7537f6008704b20e2d04a7ef1c0cfa34121cc5eb by Dennis Sweeney in branch 'main': bpo-45609: More specialization stats for STORE_SUBSCR (GH-30193) https://github.com/python/cpython/commit/7537f6008704b20e2d04a7ef1c0cfa34121cc5eb --

[issue46009] sending non-None values makes generator raise StopIteration on next access

2022-01-04 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset 31e43cbe5f01cdd5b5ab330ec3040920e8b61a91 by Brandt Bucher in branch 'main': bpo-46009: Remove GEN_START (GH-30367) https://github.com/python/cpython/commit/31e43cbe5f01cdd5b5ab330ec3040920e8b61a91 --

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

2022-01-04 Thread Alex Waygood
Alex Waygood added the comment: Yes, there are a few exceptions to that :( ``` >>> from typing import Annotated >>> x = Annotated[int, "idk some int"] >>> x() 0 >>> isinstance(x, type) False >>> >>> from re import Pattern >>> y = Pattern[str] >>> y() Traceback (most recent call last): File

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

2022-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My plan was to fix as much bugs in the stdlib and backport workaround to 3.9 and 3.10, then propose to revert this "feature" in 3.11. There is a risk of introducing some regressions by this change, but we can handle it. I think it is better to do it now

[issue46249] [sqlite3] move set lastrowid out of the query loop

2022-01-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: True that :) I'll close GH-30371 and prepare GH-30380 for review. I'll request your review if you don't mind. -- ___ Python tracker ___

[issue46249] [sqlite3] move set lastrowid out of the query loop and enable it for executemany()

2022-01-04 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- title: [sqlite3] move set lastrowid out of the query loop -> [sqlite3] move set lastrowid out of the query loop and enable it for executemany() ___ Python tracker

[issue46244] typing._TypeVarLike missing __slots__

2022-01-04 Thread Arie Bovenberg
Arie Bovenberg added the comment: @kj I would very much like to! Seems like a good place to start contributing :) -- ___ Python tracker ___

[issue46257] Convert statistics sum of squares to a single pass algorithm

2022-01-04 Thread Raymond Hettinger
New submission from Raymond Hettinger : The existing code makes two passes, one to compute the mean and another to compute the sum of squared differences from the mean. A consequence of making two passes is that iterator inputs must be converted to a list before processing. This throws

[issue46248] Compilation errors on macOS

2022-01-04 Thread Sandip Shah
Sandip Shah added the comment: Hi, Like I mentioned in the ticket, I am trying to compile libplist, libimobiledevice , and libimobiledevice-glue-1.0 on my mac. These are needed to do any development on a mobile device (specifically for testing / automation). I use Python for a lot of

[issue46110] compile("-"*3000000 + "4", '', mode) causes hard crash

2022-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: More data. On my Mac, with SETUPTOOLS_USE_DISTUTILS=stdlib, using -X importtime I see the following extra modules being imported: import time: 278 |278 | types import time: 112 |112 | _operator import time:

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

2022-01-04 Thread Alex Waygood
Alex Waygood added the comment: I agree with Serhiy. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: So is it too late to change this? This went out with 3.10, Serhiy has argued it's a bugfix. -- ___ Python tracker ___

[issue46259] float formatting error?

2022-01-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: The two numbers you gave become the same when rounded to the limited internal precision used by floats. >>> 1.12345678901234 == 1.123456789011 True When it comes to displaying the number, Python tries to show the shortest possible member of the

[issue46187] Optionally support rounding for math.isqrt()

2022-01-04 Thread Tim Peters
Tim Peters added the comment: > Is > > i, rem = isqrt_rem(n) > i + (rem != 0) > > better than > > (isqrt(n<<2) + 1) >> 1 > > or > > n and isqrt(n-1) + 1 > > ? Define "better"? The first way is by far the most obvious of the three, and the second way the least obvious. The first way

[issue46110] compile("-"*3000000 + "4", '', mode) causes hard crash

2022-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: I'm still wondering why speed.python.org showed such a slowdown, and how we can revert that. Here's a new theory. Thanks to an investigation I did together with Eric, I now suspect that the release of setuptools 60.0.0 on Dec 19 is a smoking gun.

[issue46260] Misleading SyntaxError on f-string

2022-01-04 Thread Matt Delengowski
New submission from Matt Delengowski : Example code ``` foo = 1 f"blank (open paren {foo )" ``` Error report File "", line 1 f"blank (open paren {foo )" ^ SyntaxError: f-string: unmatched ')' The problem is due to unmatched '}' however. --

[issue41011] [venv] record which executable and command were used to create a virtual environment

2022-01-04 Thread Éric Araujo
Change by Éric Araujo : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46259] float formatting error?

2022-01-04 Thread John Holman
New submission from John Holman : Example: str(1.12345678901234) Out[24]: '1.123456789011' shouldn't the last digit should be 2? -- messages: 409696 nosy: johngholman priority: normal severity: normal status: open title: float formatting error? type: behavior versions: Python

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

2022-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: Okay, so it is probably here to stay. We could justify it (after the fact :-) by saying that you can instantiate list[int], but not Any. Are there exceptions to that? (I.e. are there other annotation types that have isinstance(X, type) return False but

[issue46259] float formatting error?

2022-01-04 Thread John Holman
John Holman added the comment: Thanks - sorry to waste your time. On Tue, 4 Jan 2022 at 18:17, Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > The two numbers you gave become the same when rounded to the limited > internal precision used by floats. > > >>>

[issue46249] [sqlite3] move set lastrowid out of the query loop

2022-01-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > If possible, it's usually better to have the .executemany() create a > cursor with an output array providing the row ids, e.g. using "INSERT ... > RETURNING ..." (PostgreSQL). That way you can access all row ids and > can also provide the needed detail in

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

2022-01-04 Thread Guido van Rossum
Guido van Rossum added the comment: I now agree with Serhiy's plan. We should execute ASAP so people get a chance to try this in the next alpha release. We will still allow instantiating e.g. list[int], right? -- ___ Python tracker

[issue46261] [doc] fix inaccuracies in sqlite3.Cursor.lastrowid docs

2022-01-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Oh, and the docs says that lastrowid "provides the rowid of the last modified row". This is not true; it provides the row id of the last _inserted_ row. -- ___ Python tracker

[issue46261] [doc] fix inaccuracies in sqlite3.Cursor.lastrowid docs

2022-01-04 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +28613 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30407 ___ Python tracker

[issue46262] Enum tests: Error path in `_missing_()` is not covered for `Flag` and `IntFlag`

2022-01-04 Thread Alex Waygood
Change by Alex Waygood : -- title: Error path in `_missing_()` is not covered for `enum.Flag` and `enum.IntFlag` -> Enum tests: Error path in `_missing_()` is not covered for `Flag` and `IntFlag` ___ Python tracker

[issue46263] FreeBSL buiildbots cannot compile Python

2022-01-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: There is also this other builder: https://buildbot.python.org/all/#/builders/172/builds/1093 failing what what seems is a freeze problem: - 'use_frozen_modules': 1, + 'use_frozen_modules': -1, ?+ 'use_hash_seed': 0,

[issue46260] Misleading SyntaxError on f-string

2022-01-04 Thread Eric V. Smith
Eric V. Smith added the comment: Simpler reproducer: >>> f"{foo)" File "", line 1 f"{foo)" ^ SyntaxError: f-string: unmatched ')' I assume this is the same error as: >>> foo) File "", line 1 foo) ^ SyntaxError: unmatched ')' But I don't yet understand why

[issue46236] PyFunction_GetAnnotations returning Tuple vs Dict

2022-01-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am quite sure this is due to PR 23316 -- ___ Python tracker ___ ___ Python-bugs-list

[issue32642] add support for path-like objects in sys.path

2022-01-04 Thread Éric Araujo
Éric Araujo added the comment: I’m not an import expert but would have misgivings about having fancy types in sys.path too! It seems so fundamental, and used from C and Python, with a simple interface of a direct list (plus importers and finders etc), that I would understand it pure strings

[issue46261] [doc] fix inaccuracies in sqlite3.Cursor.lastrowid docs

2022-01-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I also suggest to add a note about tables without rowids, quoting the SQLite docs: Inserts into WITHOUT ROWID tables are not recorded. -- ___ Python tracker

[issue46262] Error path in `_missing_()` is not covered for `enum.Flag` and `enum.IntFlag`

2022-01-04 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28614 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30408 ___ Python tracker ___

[issue40222] "Zero cost" exception handling

2022-01-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Can this be closed? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20854] multiprocessing.managers.Server: problem with returning proxy of registered object

2022-01-04 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46263] FreeBSL buiildbots cannot compile Python

2022-01-04 Thread Ned Deily
Ned Deily added the comment: Not to point out the obvious but this buildbot uses --enable-shared which is often a source of build / bootstrap issues, such as the compiler executable being built ends up dynamically loading a libpython from a previous installation or build. -- nosy:

[issue46236] PyFunction_GetAnnotations returning Tuple vs Dict

2022-01-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46261] [doc] fix inaccuracies in sqlite3.Cursor.lastrowid docs

2022-01-04 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : The sqlite3 docs say that lastrowid is set to None after executemany(), or after execute()'ing statements that are not INSERTs or REPLACEs. This is not true; in those cases, lastrowid is preserved. lastrowid is only None in a pristine cursor.

[issue31188] Makefile.pre.in: commoninstall: reformat

2022-01-04 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7 ___ Python tracker ___

[issue46110] compile("-"*3000000 + "4", '', mode) causes hard crash

2022-01-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I did a run of pyperformance manually forcing setuptools<60.0 and another with setuptools>=60.0 I can reproduce the timing difference. I assume we can therefore close this issue and maybe open another one thinking about how to deal with the

[issue31137] Add a path attribute to NamedTemporaryFile

2022-01-04 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46249] [sqlite3] move set lastrowid out of the query loop and enable it for executemany()

2022-01-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: There are some inaccuracies in the docs I need to fix first, since those changes must be backported, and I want the updated docs applied upon the corrected docs; I'll open a separate issue/PR for that. -- ___

[issue43137] webbrowser to support "gio open "

2022-01-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: If this is not fixed by this week, I will be forced to revert the PR -- ___ Python tracker ___

[issue46263] FreeBSD buildbots cannot compile Python

2022-01-04 Thread Christian Heimes
Christian Heimes added the comment: On my FreeBSD 13 VM the sysconfig data module is build/lib.freebsd-13.0-RELEASE-amd64-3.11-pydebug/_sysconfigdata_d_freebsd13_.py It does not have any multiarch suffix. The multiarch suffix is detected by configure.ac. Did FreeBSD 14.0's CC get

[issue46260] Misleading SyntaxError on f-string

2022-01-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46261] [doc] fix inaccuracies in sqlite3.Cursor.lastrowid docs

2022-01-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: FYI: https://sqlite.org/c3ref/last_insert_rowid.html -- ___ Python tracker ___ ___

[issue46262] Error path in `_missing_()` is not covered for `enum.Flag` and `enum.IntFlag`

2022-01-04 Thread Nikita Sobolev
New submission from Nikita Sobolev : I've noticed that `enum.Flag._missing_` has some uncovered paths. For example, this error is never checked: https://github.com/python/cpython/blob/31e43cbe5f01cdd5b5ab330ec3040920e8b61a91/Lib/enum.py#L1222-L1225 The same method for `Enum` has good

[issue46262] Enum tests: Error path in `_missing_()` is not covered for `Flag` and `IntFlag`

2022-01-04 Thread Ethan Furman
Change by Ethan Furman : -- assignee: -> ethan.furman nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46262] Enum tests: Error path in `_missing_()` is not covered for `Flag` and `IntFlag`

2022-01-04 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46262] Enum tests: Error path in `_missing_()` is not covered for `Flag` and `IntFlag`

2022-01-04 Thread Ethan Furman
Ethan Furman added the comment: New changeset 91bc6f9615eabb10090e2e4f0fe5913885a29c8c by Nikita Sobolev in branch 'main': bpo-46262: [Enum] test error path in `Flag._missing_` (GH-30408) https://github.com/python/cpython/commit/91bc6f9615eabb10090e2e4f0fe5913885a29c8c --

[issue46263] FreeBSD buildbots cannot compile Python

2022-01-04 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +28616 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30410 ___ Python tracker

[issue46251] logger.config.configure_formatter executes arbitrary code

2022-01-04 Thread Ned Deily
Change by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43683] Handle generator (and coroutine) state in the bytecode.

2022-01-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Is there anything left here? -- priority: release blocker -> ___ Python tracker ___ ___

[issue46236] PyFunction_GetAnnotations returning Tuple vs Dict

2022-01-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yeah, the docs mention explicitly that is a dictionary or NULL. -- priority: normal -> release blocker ___ Python tracker ___

[issue46263] FreeBSL buiildbots cannot compile Python

2022-01-04 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Seems that the FreeBSD buildbots cannot compile Python 3.11 anymore: LD_LIBRARY_PATH=/usr/home/buildbot/python/3.x.koobs-freebsd-564d/build CC='cc -pthread' LDSHARED='cc -pthread -shared' OPT='-g -O0 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS=''

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2022-01-04 Thread Chris Satterlee
Chris Satterlee added the comment: FYI, it appears that 8.6.11 works ok with MacOS 12.1 (released on 13-Dec-2021). 8.6.12 also works with MacOS 12.1. I have not tested either extensively, however. -- nosy: +csatt ___ Python tracker

[issue46236] PyFunction_GetAnnotations returning Tuple vs Dict

2022-01-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: Pablo, should this be a release blocker? -- nosy: +Dennis Sweeney, pablogsal ___ Python tracker ___

[issue46263] FreeBSD buildbots cannot compile Python

2022-01-04 Thread Guido van Rossum
Change by Guido van Rossum : -- title: FreeBSL buiildbots cannot compile Python -> FreeBSD buildbots cannot compile Python ___ Python tracker ___

[issue46236] PyFunction_GetAnnotations returning Tuple vs Dict

2022-01-04 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +28615 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30409 ___ Python tracker ___

[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-04 Thread Éric Araujo
Change by Éric Araujo : -- type: behavior -> enhancement versions: -Python 3.10, Python 3.9 ___ Python tracker ___ ___

[issue46264] 'I'.lower() should give non dotted i for LANG=tr_TR

2022-01-04 Thread Frank Feuerbacher
New submission from Frank Feuerbacher : This blasted Turkish I will be the death of us all... https://www.unicode.org/versions/Unicode14.0.0/ch05.pdf has a lovely graphic on page 238 of the behavior of upper/lower casing of the various I's and when locale is Turkish or not. It seems that

[issue46251] logger.config.configure_formatter executes arbitrary code

2022-01-04 Thread Vinay Sajip
Vinay Sajip added the comment: > "Dont load untrusted config files" is the answer I expected. Yes. It's the usual convenience vs. security trade-off. To make configuration convenient, configurable factories with configurable parameters are provided. Can this be misused? Of course. Digital

[issue44092] [sqlite3] Remove special rollback handling

2022-01-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a09062c267a94200ad299f779429fea1b571ee35 by Erlend Egeberg Aasland in branch 'main': bpo-44092: Move What's New entry to where it belongs (GH-30381) https://github.com/python/cpython/commit/a09062c267a94200ad299f779429fea1b571ee35

[issue46212] Avoid temporary `varargs` tuple creation in argument passing

2022-01-04 Thread colorfulappl
colorfulappl added the comment: I am a rookie in Python, did not notice changing PyAPI_FUNC means breaking backward compatibility. I have reverted _PyArg_UnpackKeywordsWithVararg and committed again. -- ___ Python tracker

[issue46249] [sqlite3] move set lastrowid out of the query loop

2022-01-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 04.01.2022 00:49, Erlend E. Aasland wrote: > > Erlend E. Aasland added the comment: > > I see that PEP 249 does not define the semantics of lastrowid for > executemany(). What's the precedence here, MAL? IMO, it would be nice to be > able to fetch

[issue46249] [sqlite3] move set lastrowid out of the query loop

2022-01-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Thank you for your input Marc-André. For SQLite, it's pretty simple: we use an API called sqlite3_last_insert_rowid() which takes the database connection as it's argument, not a statement pointer. This function returns "the rowid of the most recent

[issue46254] Better fitting type for iterating in the trace_init C function

2022-01-04 Thread Uriya Harpeness
Change by Uriya Harpeness : -- components: C API nosy: uriya1998 priority: normal severity: normal status: open title: Better fitting type for iterating in the trace_init C function type: enhancement versions: Python 3.11 ___ Python tracker

[issue46245] Add support for dir_fd in shutil.rmtree()

2022-01-04 Thread Yassir Karroum
Yassir Karroum added the comment: No problem, I'll resume working on issue25927, thanks for the fix. -- ___ Python tracker ___ ___

[issue25927] add dir_fd for mkstemp, and also maybe to all tempfile.*

2022-01-04 Thread Yassir Karroum
Change by Yassir Karroum : -- versions: +Python 3.11 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46202] remove opcode POP_EXCEPT_AND_RERAISE

2022-01-04 Thread Mark Shannon
Mark Shannon added the comment: New changeset a94461d7189d7f1147ab304a332c8684263dc17e by Irit Katriel in branch 'main': bpo-46202: Remove opcode POP_EXCEPT_AND_RERAISE (GH-30302) https://github.com/python/cpython/commit/a94461d7189d7f1147ab304a332c8684263dc17e -- nosy:

[issue46240] Incorrect hint about forgetting a comma

2022-01-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 70f415fb8b632247e28d87998642317ca7a652ae by Pablo Galindo Salgado in branch 'main': bpo-46240: Correct the error for unclosed parentheses when the tokenizer is not finished (GH-30378)

[issue46240] Incorrect hint about forgetting a comma

2022-01-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28599 pull_request: https://github.com/python/cpython/pull/30390 ___ Python tracker

[issue46231] grammar rule definition is missing: invalid_double_starred_kvpairs

2022-01-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e09d94a140a5f6903017da9b6ac752ba041d69da by Pablo Galindo Salgado in branch 'main': bpo-46231: Remove invalid_* rules preceded by more tokens from the grammar docs (GH-30341)

[issue46231] grammar rule definition is missing: invalid_double_starred_kvpairs

2022-01-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +28601 pull_request: https://github.com/python/cpython/pull/30392 ___ Python tracker ___

[issue46231] grammar rule definition is missing: invalid_double_starred_kvpairs

2022-01-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28600 pull_request: https://github.com/python/cpython/pull/30391 ___ Python tracker

[issue25927] add dir_fd for mkstemp, and also maybe to all tempfile.*

2022-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have also almost finished this issue (only needed to add some tests and docs). -- ___ Python tracker ___

[issue46231] grammar rule definition is missing: invalid_double_starred_kvpairs

2022-01-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46240] Incorrect hint about forgetting a comma

2022-01-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks Andre for the report! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46249] [sqlite3] move set lastrowid out of the query loop

2022-01-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 04.01.2022 11:02, Erlend E. Aasland wrote: > > Erlend E. Aasland added the comment: > > Thank you for your input Marc-André. > > For SQLite, it's pretty simple: we use an API called > sqlite3_last_insert_rowid() which takes the database connection

[issue46252] SSLWantReadError causes _SelectorSocketTransport to close

2022-01-04 Thread Christian Heimes
Change by Christian Heimes : -- assignee: christian.heimes -> ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46238] Improve constants usage / definition in asyncio.windows_events

2022-01-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 1b111338cfe7840feea95e30ea8124063c450c65 by Nikita Sobolev in branch 'main': bpo-46238: reuse `_winapi` constants in `asyncio.windows_events` (GH-30352) https://github.com/python/cpython/commit/1b111338cfe7840feea95e30ea8124063c450c65

[issue46238] Improve constants usage / definition in asyncio.windows_events

2022-01-04 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46239] Incosistent error message in asyncio: windows_events / windows_utils

2022-01-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 5a2a65096c3ec2d37f33615f2a420d2ffcabecf2 by Nikita Sobolev in branch 'main': bpo-46239: improve error message when importing `asyncio.windows_events` (GH-30353) https://github.com/python/cpython/commit/5a2a65096c3ec2d37f33615f2a420d2ffcabecf2

[issue46187] Optionally support rounding for math.isqrt()

2022-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is i, rem = isqrt_rem(n) i + (rem != 0) better than (isqrt(n<<2) + 1) >> 1 or n and isqrt(n-1) + 1 ? As for use cases, there were few cases in my experience when I needed the ceiling square root, mostly in simple experiments in REPL, but

[issue46239] Incosistent error message in asyncio: windows_events / windows_utils

2022-01-04 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46239] Incosistent error message in asyncio: windows_events / windows_utils

2022-01-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +28598 pull_request: https://github.com/python/cpython/pull/30389 ___ Python tracker ___

[issue46239] Incosistent error message in asyncio: windows_events / windows_utils

2022-01-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28597 pull_request: https://github.com/python/cpython/pull/30388 ___ Python tracker

[issue46239] Incosistent error message in asyncio: windows_events / windows_utils

2022-01-04 Thread miss-islington
miss-islington added the comment: New changeset 86d1b8c13fcaf8a974cf2ae23b31fe87dfdb6267 by Miss Islington (bot) in branch '3.9': bpo-46239: improve error message when importing `asyncio.windows_events` (GH-30353)

[issue46239] Incosistent error message in asyncio: windows_events / windows_utils

2022-01-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset cf48a148190a6ccadc144cab2e2046e95c20fb57 by Miss Islington (bot) in branch '3.10': bpo-46239: improve error message when importing `asyncio.windows_events` (GH-30353) (#30388)

[issue46181] Destroying an expaned Combobox prevents Entry focus until Alt+Tab

2022-01-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46254] Better fitting type for iterating in the trace_init C function

2022-01-04 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +28603 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30394 ___ Python tracker

[issue46119] Update bundled pip to 21.3.1 and setuptools to 59.7.0

2022-01-04 Thread Kumar Aditya
Change by Kumar Aditya : -- pull_requests: +28602 pull_request: https://github.com/python/cpython/pull/30393 ___ Python tracker ___

[issue46202] remove opcode POP_EXCEPT_AND_RERAISE

2022-01-04 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46231] grammar rule definition is missing: invalid_double_starred_kvpairs

2022-01-04 Thread miss-islington
miss-islington added the comment: New changeset 743394f2811796b30b618d4cb6dd582715f8638c by Miss Islington (bot) in branch '3.10': bpo-46231: Remove invalid_* rules preceded by more tokens from the grammar docs (GH-30341)

[issue25927] add dir_fd for mkstemp, and also maybe to all tempfile.*

2022-01-04 Thread Yassir Karroum
Yassir Karroum added the comment: Alright, I'll stop working on it then, thanks for the fix ! -- ___ Python tracker ___ ___

[issue33252] [doc] Clarify ResourceWarning documentation

2022-01-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +28604 pull_request: https://github.com/python/cpython/pull/30395 ___ Python tracker

  1   2   >