[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-14 Thread Aaron Meurer
Aaron Meurer added the comment: When talking about making exit only work when typed at the interpreter, something to consider is the confusion that it can cause when there is a mismatch between the interactive interpreter and noninteractive execution, especially for novice users. I've seen

[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-14 Thread Christian Steinmeyer
New submission from Christian Steinmeyer : When executing the code below with the attached zip file (or any other that has one or more files directly at root level), I get a "ValueError: seek of closed file". It seems, the zipfile handle being part of the `TestClass` instance is being

[issue44632] Union with TypeVar does not work as intended

2021-07-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +25681 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27139 ___ Python tracker

[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-14 Thread Brandt Bucher
Brandt Bucher added the comment: Thanks for the patch @jack__d! I'll try to find time to review it today. I do wish you would have coordinated with me here before writing it, though. I'd already begun working on a patch with a few new contributors yesterday, as I mentioned in my comment.

[issue44640] Typos in error messages of isinstance() & issubclass()

2021-07-14 Thread Jack DeVries
Jack DeVries added the comment: The current string is correct. The word "union" is actually an exception to the "a/an" rule. Here is more detail: https://english.stackexchange.com/questions/266309/why-is-union-an-exception-to-the-a-an-rule -- nosy: +jack__d

[issue44618] inspect.signature does not work for datetime classes

2021-07-14 Thread Mauricio Villegas
Mauricio Villegas added the comment: > Doesn’t it do that with any built in function? Sorry. I did not include what is the behavior for other classes. An example could be calendar.Calendar. In this case the signature gives: >>> from calendar import Calendar >>> import inspect >>>

[issue44632] Union with TypeVar does not work as intended

2021-07-14 Thread Ken Jin
Ken Jin added the comment: Oh this is a fun one :). > The code for recognizing TypeVars must be wrong. Is it also wrong in e.g. > list[T]? list[T] is correct. I was pretty puzzled since I thought their code is nearly the same, but then I noticed a subtle difference -- GenericAlias checks

[issue44640] Typos in error messages of isinstance() & issubclass()

2021-07-14 Thread wyz23x2
New submission from wyz23x2 : >>> isinstance(2, 1) Traceback (most recent call last): ... TypeError: isinstance() arg 2 must be a type, a tuple of types or a union >>> issubclass(int, 1) Traceback (most recent call last): .. TypeError: issubclass() arg 2 must be a class, a tuple of classes,

[issue44616] Incorrect tracing for "except" with variable

2021-07-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44634] Version is duplicated in name of app in list of installed apps

2021-07-14 Thread Steve Dower
Steve Dower added the comment: Apart from the duplication, is there some reason why this is a problem? The name is used in a number of other places where the version number is very helpful. I'm not sure we can separate the variables in WiX. --

[issue44473] logging.handlers.QueueHandler acts unexpected

2021-07-14 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +25682 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27140 ___ Python tracker ___

[issue44635] Convert None to NoneType in the union type constructor

2021-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b81cac05606c84958b52ada09f690463a3c7e949 by Serhiy Storchaka in branch 'main': bpo-44635: Convert None to NoneType in the union type constructor (GH-27136) https://github.com/python/cpython/commit/b81cac05606c84958b52ada09f690463a3c7e949

[issue44635] Convert None to NoneType in the union type constructor

2021-07-14 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +25683 pull_request: https://github.com/python/cpython/pull/27141 ___ Python tracker ___ ___

[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-14 Thread Jack DeVries
Jack DeVries added the comment: @brandtbucher, I'm sorry for the miscommunication. I started working on this patch at the beginning of the week after message 397215... I'm a new contributor too, and I wasn't sure if I would be able to make something that worked, so I just kept my mouth

[issue44635] Convert None to NoneType in the union type constructor

2021-07-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +25684 pull_request: https://github.com/python/cpython/pull/27142 ___ Python tracker ___

[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-14 Thread Steve Dower
Steve Dower added the comment: Thanks for the contribution! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44572] Calls to platform._syscmd_ver() dependent functions consume STDIN

2021-07-14 Thread Steve Dower
Steve Dower added the comment: New changeset 5fc784e28ab9cd02c30395d1973ff825b787efa2 by Miss Islington (bot) in branch '3.9': bpo-44572: On Windows, disconnect STDIN in platform._syscmd_ver() to prevent erroneous STDIN consumption (GH-27092)

[issue38210] Intersection of dict view with iterator returns empty set

2021-07-14 Thread Łukasz Langa
Łukasz Langa added the comment: This caused an unintentional behavior change in the following code: >>> {1: 2}.items() & {1: {2: 3}}.items() set() Before this change, Python 3.6 - 3.8 behaved like this instead: >>> {1: 2}.items() & {1: {2: 3}}.items() Traceback (most recent call last):

[issue44632] Union with TypeVar does not work as intended

2021-07-14 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25685 pull_request: https://github.com/python/cpython/pull/27143 ___ Python tracker

[issue44632] Union with TypeVar does not work as intended

2021-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a158b20019b50e3ece6e4743ec4e6ae8d818b690 by Serhiy Storchaka in branch 'main': bpo-44632: Fix support of TypeVar in the union type (GH-27139) https://github.com/python/cpython/commit/a158b20019b50e3ece6e4743ec4e6ae8d818b690 --

[issue33125] Windows 10 ARM64 platform support

2021-07-14 Thread Steve Dower
Steve Dower added the comment: I'm sure it will help, but official support will continue to be blocked by availability of CI/CD systems for first- and third-party packages/testing. -- ___ Python tracker

[issue44616] Incorrect tracing for "except" with variable

2021-07-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I just retested my test case (see the coveragepy link below) with Python 3.10 git head and coveragepy git head, and I'm still seeing the misses only in Python 3.10: -- coverage: platform darwin, python 3.10.0-beta-4 --- Name

[issue44640] Typos in error messages of isinstance() & issubclass()

2021-07-14 Thread wyz23x2
Change by wyz23x2 : -- keywords: +patch pull_requests: +25686 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27144 ___ Python tracker ___

[issue44618] inspect.signature does not work for datetime classes

2021-07-14 Thread Guido van Rossum
Guido van Rossum added the comment: You're right, it seems specific to built-in *classes* like those in datetime. We get the same with inspect.signature(int), since int is also a built-in class. I don't know who maintains inspect, but it's not me. :-( --

[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread John M. Boger
New submission from John M. Boger : In the documentation for sqlite3.executescript() in python 3.9+, the pseudoword "transation" appears. I am reasonably sure "transaction" is meant, although it could be "translation". -- assignee: docs@python components: Documentation messages:

[issue44640] Typos in error messages of isinstance() & issubclass()

2021-07-14 Thread wyz23x2
wyz23x2 added the comment: Changed to only 2). -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44517] test__xxsubinterpreters: AMD64 Fedora Stable 3.x buildbot aborts at test_still_running

2021-07-14 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: The AMD64 Fedora Stable 3.x buildbot has not been red for one week. Closing this now. Victor/Pablo, please reopen if you disagree. -- resolution: -> not a bug stage: -> resolved status: pending -> closed ___

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2021-07-14 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue44626] Incorrect tracing of nested if/if/for/yield

2021-07-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal priority: normal -> release blocker ___ Python tracker ___ ___

[issue44622] async-for loops are traced incorrectly in Python 3.10

2021-07-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal priority: normal -> release blocker ___ Python tracker ___ ___

[issue44622] async-for loops are traced incorrectly in Python 3.10

2021-07-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Marking as a release blocker. Mark, please take a look at your earliest convenience -- ___ Python tracker ___

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Wed, Jul 14, 2021 at 08:10:51PM +, Aaron Meurer wrote: > There are already pseudo-keywords in the language, in particular, > super() super is not a pseudo-keyword. It's a regular builtin object that interacts with some (quite clever) compiler magic

[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-14 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset 2693132292b2acf381ac6fa729bf3acf41d9d72b by Jack DeVries in branch 'main': bpo-44589: raise a SyntaxError when mapping patterns have duplicate literal keys (GH-27131)

[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-14 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25694 pull_request: https://github.com/python/cpython/pull/27157 ___ Python tracker

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-14 Thread Mark Dickinson
Mark Dickinson added the comment: > the confusion that it can cause when there is a mismatch between the > interactive interpreter and noninteractive execution I've witnessed similar confusion when teaching, using IPython. After discovering that you can do In [1]: import pandas as pd

[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Thanks John, for the report, and Jack, for the fix! -- nosy: +erlendaasland resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-07-14 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25693 pull_request: https://github.com/python/cpython/pull/27156 ___ Python tracker ___

[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-14 Thread Jack DeVries
Jack DeVries added the comment: I'm not able to reproduce this on my machine; the script runs without any issue. > the `TestClass` instance is being closed What do you mean by this statement? You aren't doing anything to TestClass or its instance ("test") in this script. They remain in

[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 421b543311c2eee67482bba894e475a2696423d5 by Miss Islington (bot) in branch '3.9': bpo-44639: fix typo in sqlite.rst (transation => transaction) (GH-27145) (GH-27149)

[issue44473] logging.handlers.QueueHandler acts unexpected

2021-07-14 Thread miss-islington
miss-islington added the comment: New changeset 3b8075f9076490508567f0fb3dc689861544d1a8 by Vinay Sajip in branch 'main': bpo-44473: Update docstring and documentation for QueueHandler.prepar… (GH-27140) https://github.com/python/cpython/commit/3b8075f9076490508567f0fb3dc689861544d1a8

[issue44641] [sqlite3] Use vectorcall in pysqlite_collation_callback

2021-07-14 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : pysqlite_collation_callback() currently uses the variable argument function PyObject_CallFunctionObjArgs(). Suggesting micro-optimise this by using PyObject_Vectorcall instead. -- components: Extension Modules messages: 397521 nosy:

[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25689 pull_request: https://github.com/python/cpython/pull/27148 ___ Python tracker

[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread miss-islington
miss-islington added the comment: New changeset 1ca27f264730abaaa48b3c5e7c6eafb45017b824 by Jack DeVries in branch 'main': bpo-44639: fix typo in sqlite.rst (transation => transaction) (GH-27145) https://github.com/python/cpython/commit/1ca27f264730abaaa48b3c5e7c6eafb45017b824 --

[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +25690 pull_request: https://github.com/python/cpython/pull/27149 ___ Python tracker ___

[issue44617] Undesired Behavior on `match` using Singleton object

2021-07-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2021-07-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d59d7374a364c4e5c2b9a83d8e4543ee494285b8 by Shane Harvey in branch 'main': bpo-34932: Add socket.TCP_KEEPALIVE for macOS (GH-25079) https://github.com/python/cpython/commit/d59d7374a364c4e5c2b9a83d8e4543ee494285b8 -- nosy:

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2021-07-14 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +25691 pull_request: https://github.com/python/cpython/pull/27153 ___ Python tracker

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2021-07-14 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-07-14 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25692 pull_request: https://github.com/python/cpython/pull/27155 ___ Python tracker ___

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks Mark, that's a good real world experience example from the IPython side. -- ___ Python tracker ___

[issue44641] [sqlite3] Use vectorcall in pysqlite_collation_callback

2021-07-14 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +25695 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27158 ___ Python tracker

[issue44589] Pattern Matching - duplicate keys in mapping patterns

2021-07-14 Thread miss-islington
miss-islington added the comment: New changeset 016af14d93cfba43e7a95721a97fa954c534af8e by Miss Islington (bot) in branch '3.10': [3.10] bpo-44589: raise a SyntaxError when mapping patterns have duplicate literal keys (GH-27131) (GH-27157)

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2021-07-14 Thread miss-islington
miss-islington added the comment: New changeset ff7af2203c1f03d9300e93e3e06a47fb78cc2bef by Miss Islington (bot) in branch '3.10': bpo-34932: Add socket.TCP_KEEPALIVE for macOS (GH-25079) https://github.com/python/cpython/commit/ff7af2203c1f03d9300e93e3e06a47fb78cc2bef --

[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 3048b8bd2a5c62b9c65ff4cf75399c7e732acdea by Miss Islington (bot) in branch '3.10': bpo-44639: fix typo in sqlite.rst (transation => transaction) (GH-27145) (GH-27148)

[issue44479] Windows build doesn't regenerate some files

2021-07-14 Thread neonene
Change by neonene : -- nosy: +neonene nosy_count: 7.0 -> 8.0 pull_requests: +25688 pull_request: https://github.com/python/cpython/pull/27146 ___ Python tracker ___

[issue44479] Windows build doesn't regenerate some files

2021-07-14 Thread neonene
neonene added the comment: When building, some pull-requests invoke regeneration of test_frozenmain.h. On PGO mode, MSVC tries to call instrumented python and stops with "pgort140.dll not found" error. Would it be OK to run python in externals folder instead ? --

[issue38210] Intersection of dict view with iterator returns empty set

2021-07-14 Thread Dong-hee Na
Dong-hee Na added the comment: >Interestingly, this doesn't seem to have a negative effect on correctness as >the silently omitted unhashable I think so too. The error actually raises when adding the object into the set.

[issue40897] Inheriting from class that defines __new__ causes inspect.signature to always return (*args, **kwargs) for constructor

2021-07-14 Thread Mauricio Villegas
Mauricio Villegas added the comment: I created another issue since the problem appears to be a bit different: https://bugs.python.org/issue44618 -- ___ Python tracker ___

[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems similar to https://bugs.python.org/issue40564 -- nosy: +jaraco, xtreak ___ Python tracker ___

[issue44632] Union with TypeVar does not work as intended

2021-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good question. It works correctly in list[T]. There is a tiny difference between implementations of the check in genericaliasobject.c and unionobject.c. -- ___ Python tracker

[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread Jack DeVries
Jack DeVries added the comment: To my understanding, it's supposed to say "transaction". The source code is here: https://github.com/python/cpython/blob/a158b20019b50e3ece6e4743ec4e6ae8d818b690/Modules/_sqlite/connection.c#L1434-L1467 I've opened a PR to fix the typo. --

[issue44639] [sqlite3] Confusing typo "transation"

2021-07-14 Thread Jack DeVries
Change by Jack DeVries : -- keywords: +patch nosy: +jack__d nosy_count: 3.0 -> 4.0 pull_requests: +25687 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27145 ___ Python tracker

[issue44473] logging.handlers.QueueHandler acts unexpected

2021-07-14 Thread Jack DeVries
Jack DeVries added the comment: I have another question about the docstring in the source beneath logging.handlers.QueueHandler.prepare. It says: > The object returned by this method is enqueued. But, the prepare method doesn't do the enqueuing operation, it just prepares the record and

[issue44616] Incorrect tracing for "except" with variable

2021-07-14 Thread Mark Shannon
Mark Shannon added the comment: New changeset e5862f79c16e28f1ec51d179698739a9b2d8c1d2 by Mark Shannon in branch 'main': bpo-44616: Mark all clean up instructions at end of named exception block as artificial (GH-27109)

[issue44616] Incorrect tracing for "except" with variable

2021-07-14 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +25678 pull_request: https://github.com/python/cpython/pull/27135 ___ Python tracker ___

[issue44626] Incorrect tracing of nested if/if/for/yield

2021-07-14 Thread Ned Batchelder
Ned Batchelder added the comment: The original reporter of the coverage.py issue says they have a simpler reproducer: https://github.com/nedbat/coveragepy/issues/1188#issuecomment-879572874 -- ___ Python tracker

[issue44634] Version is duplicated in name of app in list of installed apps

2021-07-14 Thread Pavel Moiseenko
New submission from Pavel Moiseenko : The version of the app is duplicated in the name of the app in the list of installed apps in "Settings - Apps - Apps & features" and "Control Panel - Programs - Programs and Features" in the version for Windows. Please remove the version number from the

[issue44635] Convert None to NoneType in the union type constructor

2021-07-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There is a difference between typing.Union and the builtin union type in representing None in __args__: >>> import typing >>> typing.Union[int, None].__args__ (, ) >>> typing.Union[int, type(None)].__args__ (, ) >>> (int | None).__args__ (, None) >>>

[issue44616] Incorrect tracing for "except" with variable

2021-07-14 Thread Mark Shannon
Mark Shannon added the comment: New changeset 794ff7d505f852dc4e0f94901dc7387afaead3bb by Mark Shannon in branch '3.10': bpo-44616: Mark all clean up instructions at end of named exception block as artificial (GH-27109) (GH-27135)

[issue44634] Version is duplicated in name of app in list of installed apps

2021-07-14 Thread Pavel Moiseenko
Change by Pavel Moiseenko : Added file: https://bugs.python.org/file50148/2021-07-14 13-50-19 Programs and Features.png ___ Python tracker ___

[issue44635] Convert None to NoneType in the union type constructor

2021-07-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +25679 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27136 ___ Python tracker

[issue44635] Convert None to NoneType in the union type constructor

2021-07-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44637] Quoting issue on header Reply-To

2021-07-14 Thread Baptiste
New submission from Baptiste : Hello, When using as_string() on a Reply-To header like the following: msg['Reply-To'] = '"foo Research, Inc. Foofoo BarBar on Summer Special Friday: 0.50 days (2021-02-31)" ' The double quote disappear, which lead to wrong header value See attached file for

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-07-14 Thread miss-islington
miss-islington added the comment: New changeset 05162993fe62e7fa3acebdd0062586b9bf63d46a by Erlend Egeberg Aasland in branch 'main': bpo-42064: Move `sqlite3` exceptions to global state, part 2 of 2 (GH-26884) https://github.com/python/cpython/commit/05162993fe62e7fa3acebdd0062586b9bf63d46a

[issue44636] It is possible to create a 1-type union type

2021-07-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Union with TypeVar does not work as intended ___ Python tracker ___ ___

[issue44633] Indexing the union type can return NotImplemented

2021-07-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Union with TypeVar does not work as intended ___ Python tracker ___ ___

[issue44636] It is possible to create a 1-type union type

2021-07-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : typing.Union always collapsed to a simple type if it contains a single type. >>> import typing >>> typing.Union[int, typing.T][int] But the builtin union type can contain a single type: >>> (int | typing.T)[int] int >>> type((int | typing.T)[int])

[issue44627] Python terminal cmd line recall

2021-07-14 Thread jg
jg added the comment: Thanks, I didn't know about the F7 or F8 commands. My 'Discard Old Duplicates' was already disabled (default?). John G. Gammon -. .. .. .-.. .- -.. -- .. .-. .- .-. .. This message and any attachments hereto may contain confidential and/or

[issue44637] Quoting issue on header Reply-To

2021-07-14 Thread R. David Murray
R. David Murray added the comment: There is definitely a problem here, though I see a different problem when I run it (AttributeError: 'Group' object has no attribute 'local_part', presumably because of the ':' not getting escaped correctly). I believe it applies to any address header, not

[issue44618] inspect.signature does not work for datetime classes

2021-07-14 Thread Guido van Rossum
Guido van Rossum added the comment: Doesn’t it do that with any built in function? Try Len or open, for example. I think that’s a feature, at least not a bug specific to date time. -- nosy: +gvanrossum ___ Python tracker

[issue44632] Union with TypeVar does not work as intended

2021-07-14 Thread Guido van Rossum
Guido van Rossum added the comment: The code for recognizing TypeVars must be wrong. Is it also wrong in e.g. list[T]? -- ___ Python tracker ___

[issue44626] Incorrect tracing of nested if/if/for/yield

2021-07-14 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +25680 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27138 ___ Python tracker ___