[issue44186] TimedRotatingFileHandler overwrite log

2021-07-31 Thread Vinay Sajip
Vinay Sajip added the comment: I modified the provided test script (-> test_44186.py) and added a test shell script which runs it twice in succession. What it printed was: 6 51 43 TEST > [INFO] [2021-08-01 06:51:43] : foo 2021-08-01T06:51:43.091681 6 51 43 TEST > [INFO] [2021-08-01 06:51:43]

[issue44186] TimedRotatingFileHandler overwrite log

2021-07-31 Thread Vinay Sajip
Change by Vinay Sajip : Added file: https://bugs.python.org/file50194/log_44186.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43758] dict.config TimedRotatingFileHandler filename .suffix does not function

2021-07-31 Thread Vinay Sajip
Vinay Sajip added the comment: This is not the place for asking questions like this - please use Stack Overflow or the python-users mailing list. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue44800] Code readability: rename interpreter frames to execution frames

2021-07-31 Thread Nick Coghlan
Nick Coghlan added the comment: As a side effect of working on this, I noticed some changes that are needed to adapt the GDB integration hooks to the new frame state layout. -- nosy: +pablogsal ___ Python tracker

[issue42053] fwalk: incorrect boolean test for non-fd arguments

2021-07-31 Thread Hasan
Change by Hasan : -- pull_requests: -26038 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42053] fwalk: incorrect boolean test for non-fd arguments

2021-07-31 Thread Hasan
Change by Hasan : -- pull_requests: +26039 pull_request: https://github.com/python/cpython/pull/27524 ___ Python tracker ___ ___

[issue42053] fwalk: incorrect boolean test for non-fd arguments

2021-07-31 Thread Hasan
Change by Hasan : -- keywords: +patch nosy: +AliyevH nosy_count: 2.0 -> 3.0 pull_requests: +26038 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27523 ___ Python tracker

[issue43468] functools.cached_property incorrectly locks the entire descriptor on class instead of per-instance locking

2021-07-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Antti Haapala, I agree that this situation is catastrophic and that we need some way to avoid blocking parallel calculations of cached values for distinct instances of the same class. Here's an idea that might possibly work. Perhaps, hold one lock only

[issue42053] fwalk: incorrect boolean test for non-fd arguments

2021-07-31 Thread Andrei Kulakov
Andrei Kulakov added the comment: By the way I confirmed that fixing this doesn't break any tests (perhaps unsurprising ;) ) -- ___ Python tracker ___

[issue44784] test_importlib uses deprecated SelectableGroups interface

2021-07-31 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44784] test_importlib uses deprecated SelectableGroups interface

2021-07-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 21d5897982698a461215203ab51f56ad05648001 by Miss Islington (bot) in branch '3.10': bpo-44784: Apply changes from importlib_metadata 4.6.3 (GH-27508) (#27510) https://github.com/python/cpython/commit/21d5897982698a461215203ab51f56ad05648001

[issue44206] Add a version number to dict keys.

2021-07-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Reopening this and marking as a release blocker. Seems that a buildbot has found some cases where an assert fails: https://buildbot.python.org/all/#/builders/562/builds/110/steps/5/logs/stdio ..python: Objects/dictobject.c:350: dictkeys_set_index:

[issue42053] fwalk: incorrect boolean test for non-fd arguments

2021-07-31 Thread Andrei Kulakov
Andrei Kulakov added the comment: dubiousjim: I agree, it should be `and` or have the form `not (isinstance(..) or hasattr(..))`. If you would like to make the patch, I can review. -- nosy: +andrei.avk ___ Python tracker

[issue44800] Code readability: rename interpreter frames to execution frames

2021-07-31 Thread Nick Coghlan
Change by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44800] Code readability: rename interpreter frames to execution frames

2021-07-31 Thread Nick Coghlan
Change by Nick Coghlan : -- dependencies: +Create frame objects lazily when needed ___ Python tracker ___ ___ Python-bugs-list

[issue44800] Code readability: rename interpreter frames to execution frames

2021-07-31 Thread Nick Coghlan
New submission from Nick Coghlan : When merging the bpo-44590 changes into my PEP 558 implementation branch, I found it very hard to follow when the code was referring to the new interpreter frames rather than the existing Python frame objects that were historically used for both execution

[issue34013] Inconsistent SyntaxError for print

2021-07-31 Thread miss-islington
miss-islington added the comment: New changeset 35035bc35a9cb8617ab9fe9aac38aaf67c926aef by Miss Islington (bot) in branch '3.10': bpo-34013: Don't consider a grouped expression when reporting legacy print syntax errors (GH-27521)

[issue34013] Inconsistent SyntaxError for print

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

[issue34013] Inconsistent SyntaxError for print

2021-07-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +26037 pull_request: https://github.com/python/cpython/pull/27522 ___ Python tracker ___

[issue34013] Inconsistent SyntaxError for print

2021-07-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 208a7e957b812ad3b3733791845447677a704f3e by Pablo Galindo Salgado in branch 'main': bpo-34013: Don't consider a grouped expression when reporting legacy print syntax errors (GH-27521)

[issue42028] Regression in mimetypes for image/bmp

2021-07-31 Thread Andrei Kulakov
Andrei Kulakov added the comment: This was fixed in https://github.com/python/cpython/pull/26300 so the issue can be closed as fixed, and the PR can also be closed. -- nosy: +andrei.avk ___ Python tracker

[issue44645] Python 3.10: Under some trivial circunstances, GIL not released

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

[issue34013] Inconsistent SyntaxError for print

2021-07-31 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +26036 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27521 ___ Python tracker ___

[issue34013] Inconsistent SyntaxError for print

2021-07-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Is not about the eagerness, the problem is that it matches *first*, the parser never gets to the indentation error in the second phase. For example, with: print(3) $ 34 ❯ ./python bug.py File "/home/pablogsal/github/python/main/bug.py", line 1

[issue44789] CPython cannot be compiled with -pedantic

2021-07-31 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- title: Code compliance concern in Parser/pegen/pegen.c -> CPython cannot be compiled with -pedantic ___ Python tracker ___

[issue44789] Code compliance concern in Parser/pegen/pegen.c

2021-07-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I'm removing the parser component, as this is a general problem (the only reason you see the parser is because with -Werror that is reported first). -- ___ Python tracker

[issue44789] Code compliance concern in Parser/pegen/pegen.c

2021-07-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: For example, if I remove -Werror, you will get tons of warnings that will eventually become errors even if the parser code is "fixed": ./Modules/posixmodule.c:13781:18: note: (near initialization for ‘DirEntryType_slots[1].pfunc’)

[issue44789] Code compliance concern in Parser/pegen/pegen.c

2021-07-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: You cannot compile CPython with `-pedantic`. For example, if i add that to my collection of CFLAGS with gcc 11, many object files do not compile (too many to report here). That is not a supported compilation flag and certainly this problem is not

[issue42839] SourceFileLoader does not (fully) accept path-like objects

2021-07-31 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35673] Loader for namespace packages

2021-07-31 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20703] RuntimeError caused by lazy imports in pdb

2021-07-31 Thread Irit Katriel
Irit Katriel added the comment: I agree with both Eric and Xavier - any library calling a function that modifies sys.modules will see this issue, but pdb should try not to modify program semantics like this. It's fixed if we move the readline import as Louie suggested (the _bootlocale

[issue20703] RuntimeError caused by lazy imports in pdb

2021-07-31 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 5.0 -> 6.0 pull_requests: +26035 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27520 ___ Python tracker

[issue44765] Misspelled Word In Docs

2021-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Eesa, when responding by email, please delete the message you are responding to. When posted on the web page, the quoted copy becomes noisy and distracting. Visit https://bugs.python.org/issue44765 to see the result. -- nosy: +terry.reedy

[issue41983] Missing Documentation AF_PACKET

2021-07-31 Thread Andrei Kulakov
Change by Andrei Kulakov : -- type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker ___ ___

[issue41983] Missing Documentation AF_PACKET

2021-07-31 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've put up the PR here that makes availability clearer in the docs: https://github.com/python/cpython/pull/27519/files -- ___ Python tracker

[issue41983] Missing Documentation AF_PACKET

2021-07-31 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 3.0 -> 4.0 pull_requests: +26034 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27519 ___ Python tracker

[issue44789] Code compliance concern in Parser/pegen/pegen.c

2021-07-31 Thread Dennis Clarke
Dennis Clarke added the comment: Minor note. I am going to change the component to the Parser. -- components: +Parser -C API ___ Python tracker ___

[issue44789] Code compliance concern in Parser/pegen/pegen.c

2021-07-31 Thread Dennis Clarke
Dennis Clarke added the comment: This was an excellent opportunity to review these CFLAGS and to ponder the value of each. This took me a day to write and was then reviewed by a team. I hope it answers your question. --- There is

[issue41914] test_pdb fails

2021-07-31 Thread Irit Katriel
Irit Katriel added the comment: Sumagna, Thanks for the report. The test is passing on our buildbots, so this is not a general problem with it. It is hard to do anything about this without information about the platform and environment on which you saw the failure. If you are still seeing

[issue44760] Turtle Documentation - Contents Hyperlink conflict

2021-07-31 Thread Éric Araujo
Change by Éric Araujo : -- keywords: +easy stage: -> needs patch type: enhancement -> behavior versions: -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue44791] Substitution of ParamSpec in Concatenate

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

[issue44791] Substitution of ParamSpec in Concatenate

2021-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My understanding is that type expression is valid when substitute TypeVar and parameters expression is valid when substitute ParamSpec. -- ___ Python tracker

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2021-07-31 Thread Éric Araujo
Éric Araujo added the comment: New changeset b08c48e61745666df9aeee97d8bddbf1e5550627 by Anthony Sottile in branch 'main': bpo-33671 fix orphaned comment in shutil.copyfileobj (GH-27516) https://github.com/python/cpython/commit/b08c48e61745666df9aeee97d8bddbf1e5550627 -- nosy:

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2021-07-31 Thread Anthony Sottile
Change by Anthony Sottile : -- nosy: +Anthony Sottile nosy_count: 19.0 -> 20.0 pull_requests: +26032 pull_request: https://github.com/python/cpython/pull/27516 ___ Python tracker

[issue44798] test_enum emits a deprecation warning from test_custom_strenum_with_warning

2021-07-31 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> DeprecationWarning in test_enum over formatting ___ Python tracker

[issue23828] test_socket testCmsgTruncLen0 gets "received malformed or improperly-truncated ancillary data" warning under OS X

2021-07-31 Thread Irit Katriel
Irit Katriel added the comment: In PR27512 I tried to make the test expect the warning, but then it fails on ubuntu, so this is not the right solution. -- ___ Python tracker

[issue23828] test_socket testCmsgTruncLen0 gets "received malformed or improperly-truncated ancillary data" warning under OS X

2021-07-31 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 5.0 -> 6.0 pull_requests: +26031 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27512 ___ Python tracker

[issue44797] test_socket should expect warnings in truncated-data tests

2021-07-31 Thread Irit Katriel
Irit Katriel added the comment: Indeed, thanks. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> test_socket fails in MacOS High Sierra when running with -Werror ___ Python tracker

[issue23828] test_socket testCmsgTruncLen0 gets "received malformed or improperly-truncated ancillary data" warning under OS X

2021-07-31 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue44797] test_socket should expect warnings in truncated-data tests

2021-07-31 Thread Ned Deily
Ned Deily added the comment: Duplicate of Issue23828 -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44792] Improve syntax errors for invalid if expressions

2021-07-31 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44793] Arguments ignored in substitution in typing.Callable

2021-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is also similar bug in Generic: >>> from typing import * >>> T = TypeVar("T") >>> P = ParamSpec("P") >>> class X(Generic[T, P]): ... f: Callable[P, int] ... x: T ... >>> P_2 = ParamSpec("P_2") >>> X[int, P_2, str] __main__.X[int, ~P_2]

[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec

2021-07-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- Removed message: https://bugs.python.org/msg398655 ___ Python tracker ___ ___ Python-bugs-list

[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec

2021-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is also similar bug in Generic: >>> from typing import * >>> T = TypeVar("T") >>> P = ParamSpec("P") >>> class X(Generic[T, P]): ... f: Callable[P, int] ... x: T ... >>> P_2 = ParamSpec("P_2") >>> X[int, P_2, str] __main__.X[int, ~P_2]

[issue44794] Merge tests for typing.Callable and collection.abc.Callable

2021-07-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- Removed message: https://bugs.python.org/msg398654 ___ Python tracker ___ ___ Python-bugs-list

[issue44794] Merge tests for typing.Callable and collection.abc.Callable

2021-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is also similar bug in Generic: >>> from typing import * >>> T = TypeVar("T") >>> P = ParamSpec("P") >>> class X(Generic[T, P]): ... f: Callable[P, int] ... x: T ... >>> P_2 = ParamSpec("P_2") >>> X[int, P_2, str] __main__.X[int, ~P_2]

[issue44788] Possibility to specify port in __init__ of ftplib.FTP

2021-07-31 Thread Marty
Marty added the comment: Well, if it's possible to connect to ftp server within __init__, I think that adding port parameter makes sense. I mostly don't need to handle connect() and login() separately. All I need is to connect to ftp server and work with it. If there is some trouble with

[issue44794] Merge tests for typing.Callable and collection.abc.Callable

2021-07-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44793] Arguments ignored in substitution in typing.Callable

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

[issue34013] Inconsistent SyntaxError for print

2021-07-31 Thread Brandt Bucher
Brandt Bucher added the comment: Reopening as a release blocker. It appears that this new rule is far too eager, and matches a much wider range of inputs than intended. Here is a case where it changes an IndentationError into a SyntaxError: $ cat bug.py print() boom On 3.9 (correct):

[issue44794] Merge tests for typing.Callable and collection.abc.Callable

2021-07-31 Thread miss-islington
miss-islington added the comment: New changeset 76903ff9ce2d28f542c44ba97aa043dde8b55daa by Miss Islington (bot) in branch '3.10': bpo-44794: Merge tests for typing.Callable and collection.abc.Callable (GH-27507)

[issue44799] typing.get_type_hints() raises TypeError for a variable annotated by dataclasses.InitVar

2021-07-31 Thread Komiya Takeshi
New submission from Komiya Takeshi : I found `typing.get_type_hints()` raises TypeError for a variable annotated by `dataclasses.InitVar` when lazy annotations evaluation-feature is enabled (a.k.a `__future__.annotations`). ``` $ cat test.py from __future__ import annotations from

[issue44794] Merge tests for typing.Callable and collection.abc.Callable

2021-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset be4cb9089aaf58d5f90da5f9fa66dc3c6763b5a2 by Serhiy Storchaka in branch 'main': bpo-44794: Merge tests for typing.Callable and collection.abc.Callable (GH-27507)

[issue44794] Merge tests for typing.Callable and collection.abc.Callable

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

[issue44793] Arguments ignored in substitution in typing.Callable

2021-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If Callable is nested, it works as expected: >>> typing.List[C][int, str, float] Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/cpython/Lib/typing.py", line 309, in inner return func(*args, **kwds)

[issue44798] test_enum emits a deprecation warning from test_custom_strenum_with_warning

2021-07-31 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +26028 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27513 ___ Python tracker ___

[issue44798] test_enum emits a deprecation warning from test_custom_strenum_with_warning

2021-07-31 Thread Irit Katriel
New submission from Irit Katriel : % ./python.exe -E -We -m test -v test_enum == ERROR: test_custom_strenum_with_warning (test.test_enum.TestEnum) --

[issue37880] For argparse add_argument with action='store_const', const should default to None.

2021-07-31 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 0ad173249d287794d53e6a1fe2d58bb2adee2276 by Jack DeVries in branch 'main': bpo-37880: for argparse add_argument with action='store_const', const now defaults to None. (GH-26707)

[issue44797] test_socket should expect warnings in truncated-data tests

2021-07-31 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +ncoghlan, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44797] test_socket should expect warnings in truncated-data tests

2021-07-31 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +26027 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27512 ___ Python tracker ___

[issue44791] Substitution of ParamSpec in Concatenate

2021-07-31 Thread Ken Jin
Ken Jin added the comment: Should Concatenate support substitution to begin with? PEP 612 doesn't say anything, and I am fairly certain it's a special typing form, not a generic. So I don't really understand what it means to substitute Concatenate. Then again, Callable with a nested

[issue44797] test_socket should expect warnings in truncated-data tests

2021-07-31 Thread Irit Katriel
New submission from Irit Katriel : I believe these warnings are a feature so the tests should expect them. Patch included. % ./python.exe -E -We -m test -v test_socket == ERROR: testSecondCmsgTruncInData

[issue4476] compileall fails if current dir has a "types" package

2021-07-31 Thread Felipe Rodrigues
Change by Felipe Rodrigues : -- pull_requests: -26023 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4476] compileall fails if current dir has a "types" package

2021-07-31 Thread Felipe Rodrigues
Felipe Rodrigues added the comment: sorry about the noise, everyone. Missed an '6' in the end of the issue name -- ___ Python tracker ___

[issue44766] [easy doc] Remove redundant info in README.valgrind

2021-07-31 Thread Felipe Rodrigues
Change by Felipe Rodrigues : -- keywords: +patch nosy: +fbidu nosy_count: 2.0 -> 3.0 pull_requests: +26026 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27509 ___ Python tracker

[issue42815] new thread doesn't copy context of the parent thread

2021-07-31 Thread Guido van Rossum
Guido van Rossum added the comment: Trust me, it's too late to fix this in 3.10. -- nosy: +gvanrossum ___ Python tracker ___ ___

[issue42815] new thread doesn't copy context of the parent thread

2021-07-31 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44098] Remove ParamSpec from __parameters__ of most typing generics

2021-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue44796. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec

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

[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec

2021-07-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Merge tests for typing.Callable and collection.abc.Callable ___ Python tracker ___

[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec

2021-07-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Adding __parameters__ and __getitem__ in TypeVar and ParamSpec allows to generalize and simplify the code (especially the C code) and allows to add more runtime checks. It may open ways for further simplification. Unfortunately it is not compatible with

[issue44779] Checkouts stale following changes to .gitattributes

2021-07-31 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44784] test_importlib uses deprecated SelectableGroups interface

2021-07-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +26024 pull_request: https://github.com/python/cpython/pull/27510 ___ Python tracker ___

[issue44784] test_importlib uses deprecated SelectableGroups interface

2021-07-31 Thread miss-islington
miss-islington added the comment: New changeset 1cf8424a62db38a041d421a46618e025bbb87f89 by Jason R. Coombs in branch 'main': bpo-44784: Apply changes from importlib_metadata 4.6.3 (GH-27508) https://github.com/python/cpython/commit/1cf8424a62db38a041d421a46618e025bbb87f89 -- nosy:

[issue4476] compileall fails if current dir has a "types" package

2021-07-31 Thread Felipe Rodrigues
Change by Felipe Rodrigues : -- nosy: +fbidu nosy_count: 5.0 -> 6.0 pull_requests: +26023 pull_request: https://github.com/python/cpython/pull/27509 ___ Python tracker ___

[issue44784] test_importlib uses deprecated SelectableGroups interface

2021-07-31 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +26022 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27508 ___ Python tracker ___

[issue44795] asyncio.run does not allow for graceful shutdown of main task

2021-07-31 Thread Andreas H.
New submission from Andreas H. : The issue is that the main task (which was supplied to asyncio.run) has no chance to clean up its "own" sub-tasks and handle possible exceptions that occur during the sub-task clean up. It prevents a graceful shutdown. There is no way to prevent the current

[issue44794] Merge tests for typing.Callable and collection.abc.Callable

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

[issue44794] Merge tests for typing.Callable and collection.abc.Callable

2021-07-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR merges tests for typing.Callable (in test_typing.py) and collection.abc.Callable (in test_genericalias.py). All old tests are now executed for both implementations. It has exposed a bug in typing.Callable (see issue44793) and minor bug

[issue44793] Arguments ignored in substitution in typing.Callable

2021-07-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : >>> import typing >>> T = typing.TypeVar('T') >>> P = typing.ParamSpec('P') >>> C = typing.Callable[P, T] >>> C[int, str, float] typing.Callable[[int], str] int substitutes P as [int], str substitutes T, and the third argument float is ignored.

[issue44789] Code compliance concern in Parser/pegen/pegen.c

2021-07-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Seems to me that you are not only running configure + make but you are adding things to the CFLAGS. Could you please add a list of all the extra complication flags you are adding? -- ___ Python tracker

[issue44789] Code compliance concern in Parser/pegen/pegen.c

2021-07-31 Thread Dennis Clarke
Dennis Clarke added the comment: Let me see if I can be a bit more clear with the problem that I am seeing on three separate systems. It does seem to be an issue in a macro : 1) Debian Linux on IBM Power ppc64 big-endian : enceladus$ uname -a Linux enceladus 5.13.4-genunix #1 SMP Tue Jul

[issue44792] Improve syntax errors for invalid if expressions

2021-07-31 Thread Miguel Brito
Change by Miguel Brito : -- keywords: +patch pull_requests: +26020 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27506 ___ Python tracker ___

[issue44792] Improve syntax errors for invalid if expressions

2021-07-31 Thread Miguel Brito
New submission from Miguel Brito : Hi, I was playing around with Python's grammar and noticed that the error message for if expression is generic, so not very informative. I decided to improve it slightly. *From*: ``` >>> a = 42 if True File "", line 1 a = 42 if True

[issue44791] Substitution of ParamSpec in Concatenate

2021-07-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Substitution of ParamSpec in Concatenate produces weird results: >>> import typing >>> P = typing.ParamSpec('P') >>> typing.Concatenate[str, P][int] typing.Concatenate[str, int] >>> typing.Concatenate[str, P][[int]] typing.Concatenate[str, (,)] >>>