[issue44385] Some target-related rules are unreachable in the grammar

2021-06-10 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- keywords: +patch pull_requests: +25241 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26655 ___ Python tracker _

[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2021-06-10 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 2.0 -> 3.0 pull_requests: +25242 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26656 ___ Python tracker _

[issue44342] enum with inherited type won't pickle

2021-06-10 Thread Ethan Furman
Ethan Furman added the comment: Looking into this I think the root of the problem is the way `reduce` is handled -- currently, Enum's `__reduce_ex__` works by returning the class, and the value to use to lookup the member. Because that lookup can fail with complex enums, EnumType will sabot

[issue44356] Multiple enum mixins not allowed even when they have the same datatype

2021-06-10 Thread Ethan Furman
Ethan Furman added the comment: New changeset 01286017c3345e2b8a0af2bd48f6eb2087693a82 by Miss Islington (bot) in branch '3.10': bpo-44356: [Enum] allow multiple data-type mixins if they are all the same (GH-26649) (GH-26653) https://github.com/python/cpython/commit/01286017c3345e2b8a0af2bd4

[issue44356] Multiple enum mixins not allowed even when they have the same datatype

2021-06-10 Thread Ethan Furman
Ethan Furman added the comment: New changeset 304ec53b53021ceddf62a38e66a06aed37e2ac41 by Miss Islington (bot) in branch '3.9': bpo-44356: [Enum] allow multiple data-type mixins if they are all the same (GH-26649) (GH-26652) https://github.com/python/cpython/commit/304ec53b53021ceddf62a38e66

[issue44385] Some target-related rules are unreachable in the grammar

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

[issue44385] Some target-related rules are unreachable in the grammar

2021-06-10 Thread miss-islington
miss-islington added the comment: New changeset e7b4644607789848f9752a3bd20ff216e25b4156 by Lysandros Nikolaou in branch 'main': bpo-44385: Remove unused grammar rules (GH-26655) https://github.com/python/cpython/commit/e7b4644607789848f9752a3bd20ff216e25b4156 -- nosy: +miss-islingt

[issue44342] enum with inherited type won't pickle

2021-06-10 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +25244 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26658 ___ Python tracker ___ ___

[issue44385] Some target-related rules are unreachable in the grammar

2021-06-10 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +25245 pull_request: https://github.com/python/cpython/pull/26659 ___ Python tracker ___ __

[issue44385] Some target-related rules are unreachable in the grammar

2021-06-10 Thread miss-islington
miss-islington added the comment: New changeset 3e137426de3e6a37622b2ca61207b1323fdea11f by Miss Islington (bot) in branch '3.10': bpo-44385: Remove unused grammar rules (GH-26655) https://github.com/python/cpython/commit/3e137426de3e6a37622b2ca61207b1323fdea11f --

[issue44385] Some target-related rules are unreachable in the grammar

2021-06-10 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue44386] importlib and math.pi interact strangely

2021-06-10 Thread Paul Prescod
New submission from Paul Prescod : from importlib import util mathmodule = util.find_spec("math") math1 = util.module_from_spec(mathmodule) print(math1.pi) = $ python3.8 /tmp/foo.py 3.141592653589793 $ python3.9 /tmp/foo.py Traceback (most recent call last): File "/tmp/foo.py", line

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 05073036dcecefc00b0c3e7397601809da41e2f1 by Pablo Galindo in branch 'main': bpo-44368: Improve syntax errors with invalid as pattern targets (GH-26632) https://github.com/python/cpython/commit/05073036dcecefc00b0c3e7397601809da41e2f1 --

[issue44342] enum with inherited type won't pickle

2021-06-10 Thread Ethan Furman
Ethan Furman added the comment: New changeset 62f1d2b3d7dda99598d053e10b785c463fdcf591 by Ethan Furman in branch 'main': bpo-44342: [Enum] changed pickling from by-value to by-name (GH-26658) https://github.com/python/cpython/commit/62f1d2b3d7dda99598d053e10b785c463fdcf591 -- _

[issue44342] enum with inherited type won't pickle

2021-06-10 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +25246 pull_request: https://github.com/python/cpython/pull/26660 ___ Python tracker _

[issue44385] Some target-related rules are unreachable in the grammar

2021-06-10 Thread miss-islington
miss-islington added the comment: New changeset 3ce35bfbbe29664942f9a8c50c177a4575a31934 by Lysandros Nikolaou in branch '3.9': [3.9] bpo-44385: Remove unused grammar rules (GH-26655) (GH-26659) https://github.com/python/cpython/commit/3ce35bfbbe29664942f9a8c50c177a4575a31934 -- __

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25247 pull_request: https://github.com/python/cpython/pull/26632 ___ Python tracker ___ ___

[issue44379] Pickling recursion error, did not import pickle

2021-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 'while pickling' part of the message is specific to running in IDLE, as Serhiy explained, but the recursion error itself is due to writing a program with infinite recursion. The program switches the last two items back and forth indefinitely. When run

[issue44387] Not obvious that locale.LC_MESSAGES may not exist sometimes (e.g. on Windows)

2021-06-10 Thread Richard Mines
New submission from Richard Mines : Documentation page: https://docs.python.org/3/library/locale.html#locale.LC_MESSAGES Code comment saying that locale.LC_MESSAGES doesn't exist sometimes: https://github.com/python/cpython/blob/62f1d2b3d7dda99598d053e10b785c463fdcf591/Lib/locale.py#L25-L26 Co

[issue44342] enum with inherited type won't pickle

2021-06-10 Thread Ethan Furman
Ethan Furman added the comment: New changeset b613132861839b6d05b67138842b579e1af29f9c by Miss Islington (bot) in branch '3.10': bpo-44342: [Enum] changed pickling from by-value to by-name (GH-26658) (GH-26660) https://github.com/python/cpython/commit/b613132861839b6d05b67138842b579e1af29f9c

[issue44387] Not obvious that locale.LC_MESSAGES may not exist sometimes (e.g. on Windows)

2021-06-10 Thread Jack DeVries
Jack DeVries added the comment: Could it be that _locale throws an ImportError whenever LC_MESSAGES doesn't exist? Then, there are fall-backs defined here: https://github.com/python/cpython/blob/62f1d2b3d7dda99598d053e10b785c463fdcf591/Lib/locale.py#L45-L85 -- nosy: +jack__d ___

[issue44387] Not obvious that locale.LC_MESSAGES may not exist sometimes (e.g. on Windows)

2021-06-10 Thread Jack DeVries
Jack DeVries added the comment: Follow-up: nope! My hypothesis was incorrect. This is all that _localemodule.c has to say about LC_MESSAGES: #ifdef LC_MESSAGES ADD_INT(module, LC_MESSAGES); #endif /* LC_MESSAGES */ -- ___ Python tracker

[issue44382] Python 3.9+ on Windows 8.0

2021-06-10 Thread Jack DeVries
Jack DeVries added the comment: https://buildbot.python.org/all/#/waterfall?tags=win64 Buildbot is only running against 8.1, not 8.0. I'm guessing that means that the docs are correct and python.org main page is wrong. I'd open an issue over there: https://github.com/python/pythondotorg/iss

[issue14322] More test coverage for hmac

2021-06-10 Thread Arjun
Arjun added the comment: would the update invalid test belong in the TestVectorsTestCase class or should I make a new one? -- ___ Python tracker ___ _

[issue44386] importlib and math.pi interact strangely

2021-06-10 Thread Jack DeVries
Jack DeVries added the comment: That is because pi, along with other constants in the math module are defined during module execution, not module creation: https://github.com/python/cpython/blob/62f1d2b3d7dda99598d053e10b785c463fdcf591/Modules/cmathmodule.c#L1257-L1262 Taking the example rig

[issue44382] Python 3.9+ on Windows 8.0

2021-06-10 Thread Hypo Turtle
Hypo Turtle added the comment: Will do; that is where I presumed the issue was/comment needed added, just hadn't located that repo. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue44365] Bad dataclass post-init example

2021-06-10 Thread Micael Jarniac
Micael Jarniac added the comment: Well, at least for this example, to call `super().__init__()`, I'd need to provide it the two arguments it expects, `x` and `y`, otherwise it'd give an error: > TypeError: __init__() missing 2 required positional arguments: 'x' and 'y' If I try calling it a

[issue44376] Improve performance of integer exponentiation

2021-06-10 Thread Tim Peters
Change by Tim Peters : -- keywords: +patch pull_requests: +25248 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26662 ___ Python tracker ___ _

[issue44376] Improve performance of integer exponentiation

2021-06-10 Thread Tim Peters
Tim Peters added the comment: This is a stab at reducing overhead for small exponents, along the lines I sketched: https://github.com/python/cpython/pull/26662 Unfortunately, I've been unable to convince BPO and GitHub to recognize that the PR is related to this report. Did something basic

[issue19094] urljoin should raise a TypeError if URL is not a string

2021-06-10 Thread Jacob Walls
Jacob Walls added the comment: Hi vajrasky, do you have any interest in converting your patch to a GitHub PR? If not I can see about doing so myself. Cheers. -- nosy: +jacobtylerwalls ___ Python tracker ___

[issue32761] Create IDLE Modern Mac keyset

2021-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: #18444 is about revising macOS keysets and/or making a new one. This is about the latter. So closing as duplicate. -- resolution: -> duplicate stage: -> needs patch status: open -> closed superseder: -> IDLE: Revise Mac OS X key bindings. version

[issue18444] IDLE: Revise macOS key bindings, make new one.

2021-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed #32761 about new macOS keyset, in favor of this one. There is a bit more discussion there to consider. I agree that a chart of <> down side and keyset across top would be a good start. -- nosy: -Todd.Rovito title: IDLE: Revise Mac OS X ke

[issue18444] IDLE: Revise macOS key bindings, make new one.

2021-06-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +macOS ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue21359] IDLE macOS: Some Command shortcuts do not work correctly

2021-06-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> IDLE: Revise macOS key bindings, make new one. ___ Python tracker

[issue18444] IDLE: Revise macOS key bindings, make new one.

2021-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I also closed #21359, which has more comment from Ned about bindings not working. -- ___ Python tracker ___

[issue31930] IDLE: Pressing "Home" on Windows places cursor before ">>>"

2021-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE Classic Windows currently works correctly. A custom keyset with <> badly rebound does not. So maybe I was using the latter when I open this. Anyway, this is moot in 3.10 with prompt removed, and I intend to backpart the change. -- resolution

[issue44388] venv API Docs for EnvBuilder.ensure_directories incorrectly describe behavior

2021-06-10 Thread Matthew Clapp
New submission from Matthew Clapp : The docs for the venv module, EnvBuilder class, ensure_directories method, describe behavior that doesn't match what its actual behavior is, (and what the code is). I propose to update the documentation of the API to match the actual behavior. https://doc

[issue24781] Improve UX of IDLE Highlighting configuration tab

2021-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since uipreferences.py was written, in 2015, configdialog uses ttk widgets, including Notebook. We have factored out a class for each notebook pane plus one for help sources and one for traced variables. I have in mind something like highlight3.png and will

[issue44388] venv API Docs for EnvBuilder.ensure_directories incorrectly describe behavior

2021-06-10 Thread Matthew Clapp
Change by Matthew Clapp : -- keywords: +patch pull_requests: +25250 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26663 ___ Python tracker ___ __

[issue44352] Native Windows Python builds running on Europe/Moscow TZ report wrong time from datetime.datetime.now when there is TZ environment variable also set to Europe/Moscow

2021-06-10 Thread Mike Kaganski
Mike Kaganski added the comment: Thank you Eryk! This is a good workaround for me. I have implemented it: https://git.libreoffice.org/core/+/3bcaa4ba79477a21251ddaa06e0ea159196a7ffb It looks like it's not a Python's problem; I suppose this may be closed. Thanks again! -- resolution:

[issue40320] Add ability to specify instance of contextvars context to Task() & asyncio.create_task()

2021-06-10 Thread Mark Gordon
Change by Mark Gordon : -- keywords: +patch nosy: +msg555 nosy_count: 3.0 -> 4.0 pull_requests: +25251 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26664 ___ Python tracker ___

<    1   2