[issue45441] Some links in the document is changed

2021-10-12 Thread jiahua wang
Change by jiahua wang : -- assignee: docs@python components: Documentation nosy: 180909, docs@python priority: normal pull_requests: 27191 severity: normal status: open title: Some links in the document is changed versions: Python 3.11 ___ Python tra

[issue42253] xml.dom.minidom.rst missing standalone documentation

2021-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3d7009e88e0ae516b10d8d3d402cc66e86fb631e by Miss Islington (bot) in branch '3.10': bpo-42253: Update xml.dom.minidom.rst (GH-23126) (GH-28874) https://github.com/python/cpython/commit/3d7009e88e0ae516b10d8d3d402cc66e86fb631e --

[issue42253] xml.dom.minidom.rst missing standalone documentation

2021-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 23528905d48ddfe74a75af2152e96c04b77bf314 by Miss Islington (bot) in branch '3.9': bpo-42253: Update xml.dom.minidom.rst (GH-23126) (GH-28875) https://github.com/python/cpython/commit/23528905d48ddfe74a75af2152e96c04b77bf314 -- _

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset faa87f7f3b60f79b9018aaef0efa5e00d82b817b by Miss Islington (bot) in branch '3.9': bpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28873) https://github.com/python/cpython/commit/faa87f7f3b60f79b9018aaef0efa5e00d82b817b -

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 47a50fe16f9f074d3e6aa85e76502955ed40 by Miss Islington (bot) in branch '3.10': bpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28872) https://github.com/python/cpython/commit/47a50fe16f9f074d3e6aa85e76502955ed40

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-12 Thread Randolf Scholz
Randolf Scholz added the comment: @Alex Regarding my proposal, the crucial part is the desiderata, not the hacked up implementation I presented. And I really believe that at least that part I got hopefully right. After all, what does `@classmethod` functionally do? It makes the first argumen

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50348/bench_no_args_inline.py ___ Python tracker ___ ___ Python-bugs-list

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50347/bench_no_args.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50349/bench_no_args_public.py ___ Python tracker ___ ___ Python-bugs-list

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Jeff Allen
Jeff Allen added the comment: I'm interested in Thomas' reasons, but here are some of mine (as far as I understand things): 1. It is specific to one interpreter implemented in C, equipped with a GIL, and on certain assumptions about the byte code interpreter and the implementation of built-

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Thomas Grainger
Thomas Grainger added the comment: it's as part of this discussion in https://mail.python.org/archives/list/python-...@python.org/thread/ABR2L6BENNA6UPSPKV474HCS4LWT26GY/#IAOCDDCJ653NBED3G2J2YBWD7HHPFHT6 and others in #python-dev specifically https://github.com/python/cpython/blob/2f92e2a5

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm also surprised to learn that `L.sort()` and `D1.update(D2)` are supposed to be atomic. They certainly are not in the general case. Remember, any Python code can release the GIL (because the GIL is released periodically in the interpreter loop). Any DECRE

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fixes Vinay and Serhiy! -- stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker __

[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread za
za added the comment: I've included `doc1.patch` in the github PR https://github.com/python/cpython/pull/28818 Should I add the other patch as well to make this move forward? -- ___ Python tracker

[issue45416] "loop argument must agree with lock" instantiating asyncio.Condition

2021-10-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks, guys! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue45416] "loop argument must agree with lock" instantiating asyncio.Condition

2021-10-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue27928] Add hashlib.scrypt

2021-10-12 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue27744] Add AF_ALG (Linux Kernel crypto) to socket module

2021-10-12 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue42253] xml.dom.minidom.rst missing standalone documentation

2021-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement versions: +Python 3.10, Python 3.11 ___ Python tracker __

[issue45413] Add install scheme for virtual environments

2021-10-12 Thread Petr Viktorin
Petr Viktorin added the comment: Starting out with just "venv" doesn't mean we can't add "posix_venv"/"nt_venv" later (if e.g. someone needs to install into a filesystem for another platform). -- nosy: +petr.viktorin ___ Python tracker

[issue45441] Some links in the document is changed

2021-10-12 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27192 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28901 ___ Python tracker

[issue45441] Some links in the document is changed

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

[issue45441] Some links in the document is changed

2021-10-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : New changeset b37dc9b3bc9575adc039c6093c643b7ae5e917e1 by 180909 in branch 'main': bpo-45441: Update some moved URLs in documentation (GH-28861) https://github.com/python/cpython/commit/b37dc9b3bc9575adc039c6093c643b7ae5e917e1 -- nosy: +serhiy.s

[issue45442] Update `Virtual Environment` tutorial

2021-10-12 Thread Shivnaren Srinivasan
New submission from Shivnaren Srinivasan : Priority: Low The Virtual Environment tutorial page (https://docs.python.org/3/tutorial/venv.html) doesn't specify how we can revert, or deactivate the `venv`. This is quite a popular question on SO: https://stackoverflow.com/questions/990754/how-to-

[issue45443] 'ThreadPoolExecutor' object has no attribute 'map'

2021-10-12 Thread Zohim Chandani
New submission from Zohim Chandani : import concurrent.futures import time start = time.perf_counter() def do_something(seconds): print(f'sleeping for {seconds}s ... ') time.sleep(seconds) return f'done sleeping {seconds} ' with concurrent.futures.ThreadPoolExecutor() as execu

[issue45442] Update `Virtual Environment` tutorial

2021-10-12 Thread Shivnaren Srinivasan
Shivnaren Srinivasan added the comment: In the same vein, the specified script for windows is the old .bat file, though PowerShell is now the preferred shell (and for which a .ps1 script is generated in the venv directory). We could make the .ps1 the default, and specify the .bat as an alter

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: Jeff makes an excellent point about the docs failing to distinguish between language guarantees, implementation guarantees, and things which are merely true sometimes. On the other hand, we only need document what is true *now*, not what may be true in som

[issue44991] [sqlite3] cleanup callbacks (GIL handling, naming, ...)

2021-10-12 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset cfb1df3b71501a80ed57739181ec2ed30012c491 by Erlend Egeberg Aasland in branch 'main': bpo-44991: Normalise function and collation callback naming (GH-28209) https://github.com/python/cpython/commit/cfb1df3b71501a80ed57739181ec2ed30012c491 --

[issue40512] [subinterpreters] Meta issue: per-interpreter GIL

2021-10-12 Thread Petr Viktorin
Petr Viktorin added the comment: PyStructSequence_NewType exists, and is the same as the proposed PyStructSequence_FromModuleAndDesc except it doesn't take the module (which isn't necessary: PyStructSequence_Desc has no way to define functionality that would need the module state).

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-12 Thread Petr Viktorin
Petr Viktorin added the comment: Oh! I assumed this bug wasn't resolved, but it is -- in bpo-34784. Sorry, I should have checked! The only thing the proposed PR adds is a way to set ht_module, which actually isn't very useful (it's used for module state access, but PyStructSequence_Desc doe

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: sort() is atomic, even if GIL is released during executing custom __lt__. It is guaranteed that no operations on the list in other threads can affect the result of sort(). I do not understand what non-atomic you see in x = L[i]. The value of x is determin

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-10-12 Thread Petr Viktorin
Petr Viktorin added the comment: The new issue is bpo-45383. There's a sprint newt week; I'll probably get to it then. > But, I am trying to understand the preference for static better. There is > probably something to learn or even important I am missing. The original motivating use case

[issue23262] webbrowser module broken with Firefox 36+

2021-10-12 Thread wyz23x2
wyz23x2 added the comment: I think this six year old issue can be closed. All patches for 3.x are committed, and Python 2.7 is EOL. -- nosy: +wyz23x2 ___ Python tracker ___ _

[issue45445] Fail if an invalid -X option is provided

2021-10-12 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : We found that using -X can be very confusing and annoying when you make typos, so I think having errors if you pass some unknown stuff will be outweighing any downside of making this more strict. -- messages: 403733 nosy: pablogsal prio

[issue45445] Fail if an invalid -X option is provided

2021-10-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +27194 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28823 ___ Python tracker __

[issue45315] `PyType_FromSpec` does not copy the name

2021-10-12 Thread Petr Viktorin
Petr Viktorin added the comment: > Hm, I haven't find any case who use dynamical tp_name of Type_Spec > temporarily. The use case is creating types entirely on demand, with dynamically created specs. This is useful e.g. for wrapping objects of a different object system, like C++ classes or

[issue23262] webbrowser module broken with Firefox 36+

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

[issue45441] Some links in the document is changed

2021-10-12 Thread miss-islington
miss-islington added the comment: New changeset 38e3ada75a7b5d911d81e8e4b70a99e181093866 by Miss Islington (bot) in branch '3.9': bpo-45441: Update some moved URLs in documentation (GH-28861) https://github.com/python/cpython/commit/38e3ada75a7b5d911d81e8e4b70a99e181093866 -- _

[issue45441] Some links in the document is changed

2021-10-12 Thread miss-islington
miss-islington added the comment: New changeset 32866dd471709dd7f3bd63ce762dec72198483d2 by Miss Islington (bot) in branch '3.10': bpo-45441: Update some moved URLs in documentation (GH-28861) https://github.com/python/cpython/commit/32866dd471709dd7f3bd63ce762dec72198483d2 --

[issue45441] Some links in the document is changed

2021-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: -180909 resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker __

[issue45340] Lazily create dictionaries for plain Python objects

2021-10-12 Thread Mark Shannon
Mark Shannon added the comment: Josh, I'm not really following the details of what you are saying. You claim "Key-sharing dictionaries were accepted largely without question because they didn't harm code that broke them". Is that true? I don't remember it that way. They were accepted because

[issue45446] Add a way to hide fields in dataclasses

2021-10-12 Thread Nium
Change by Nium : -- nosy: formigacomcaimbra priority: normal severity: normal status: open title: Add a way to hide fields in dataclasses type: enhancement versions: Python 3.11 ___ Python tracker ___

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-12 Thread Alex Waygood
Change by Alex Waygood : -- title: Support syntax highlighting for .pyi stub files -> IDLE: Support syntax highlighting for .pyi stub files ___ Python tracker ___

[issue45446] Add a way to hide fields in dataclasses

2021-10-12 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +27195 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28904 ___ Python tracker _

[issue45447] Support syntax highlighting for .pyi stub files

2021-10-12 Thread Alex Waygood
New submission from Alex Waygood : IDLE currently does not do any syntax highlighting if you use it to open a .pyi stub file, even though everything in a .pyi file is a valid Python expression. It would be great if syntax highlighting for .pyi files could be supported. -- assignee: te

[issue45411] Add Mimetypes for Subtitle Files

2021-10-12 Thread Éric Araujo
Éric Araujo added the comment: Additions to mimetypes have been backported in the past, with the thought that these are not new behaviour added but only entries in a registry (and bringing the python module in line with external data sources) so there’s value and no risk in releasing these ad

[issue45448] PIP package installation failure for multiple packages

2021-10-12 Thread Zayden Micheal James
New submission from Zayden Micheal James : When I try to install numpy using python version 3.10, pip version 21.2.4 it gives me a PEP517 error, with a bunch of other exceptions. When I try to install tensorflow using python version 3.10, pip version 21.2.4 it gives me an error saying that the

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: It should be fairly easy to recognize x.pyi as a python file. Just have to find the place. Something like def f(i:int) -> int: ... would have 'def' and 'int' highlighted. -- ___ Python tracker

[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: No. The last version did not properly incorporate my suggestion, so I will make a PR that I am willing to merge. -- assignee: docs@python -> terry.reedy ___ Python tracker

[issue43139] test_ttk test_compound, test_tk test_type fail with Tk 8.6.11.1

2021-10-12 Thread E. Paine
E. Paine added the comment: Felix, are these still the exact errors you're experiencing? Both in my normal Arch install and in a chroot environment I get the following errors instead: == FAIL: test_winfo_rgb (tkinter.test.tes

[issue45256] Remove the usage of the C stack in Python to Python calls

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

[issue45449] Document that collections.abc types are subscriptable

2021-10-12 Thread Filipe Laíns
New submission from Filipe Laíns : Since 3.9, the types in collections.abc are subscriptable and can be used as type hints, but this is not documented. We should write something similar to what's on the typing module documentation for the deprecated types. -- assignee: docs@python comp

[issue45421] Remove dead code from html.parser

2021-10-12 Thread Mariatta
Mariatta added the comment: New changeset 562c0d7398b9f34ff63a1dc77113dad96a93ce4e by Alberto Mardegan in branch 'main': bpo-45421: Remove dead code from html.parser (GH-28847) https://github.com/python/cpython/commit/562c0d7398b9f34ff63a1dc77113dad96a93ce4e -- nosy: +Mariatta

[issue45449] Document that collections.abc types are subscriptable

2021-10-12 Thread Filipe Laíns
Filipe Laíns added the comment: Just to clarify: some type checkers will still allow using them as type hints in Python versions before 3.9, but `from __future__ import annotations` needs to be used so that we don't error out at ruuntime. -- ___ Py

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : There is a non-trivial ammount of users that try to parenthesize lambda parameters: >>> lambda (x,y,z): x+y+z File "", line 1 lambda (x,y,z): x+y+z ^ SyntaxError: invalid syntax We should improve the error message in this case

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Example: >>> lambda (x,y,z): x+y+z File "", line 1 lambda (x,y,z): x+y+z ^^^ SyntaxError: Function parameters cannot be parenthesized -- ___ Python tracker

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +27197 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28906 ___ Python tracker __

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue45446] Add a way to hide fields in dataclasses

2021-10-12 Thread Eric V. Smith
New submission from Eric V. Smith : Please explain what "hiding" does. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-l

[issue45417] Enum creation non-linear in the number of values

2021-10-12 Thread Carl Friedrich Bolz-Tereick
Change by Carl Friedrich Bolz-Tereick : -- nosy: +Carl.Friedrich.Bolz nosy_count: 6.0 -> 7.0 pull_requests: +27198 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28907 ___ Python tracker

[issue45448] PIP package installation failure for multiple packages

2021-10-12 Thread Eric V. Smith
Eric V. Smith added the comment: You should report these problems to the numpy and tensorflow projects. I'm assuming they don't support 3.10 yet. -- nosy: +eric.smith resolution: -> third party stage: -> resolved status: open -> closed ___ Python

[issue45417] Enum creation non-linear in the number of values

2021-10-12 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: I fixed the reliance of set being insertion ordered in pypy and opened a pull request. -- ___ Python tracker ___ __

[issue42345] Equality of typing.Literal depends on the order of arguments

2021-10-12 Thread Alick Zhao
Alick Zhao added the comment: Mainly to clarify, this is fixed in Python 3.9 and above, but won't be fixed in Python 3.8, right? ``` ~$ python3.8 Python 3.8.11 (default, Jul 24 2021, 13:24:12) [Clang 12.0.5 (clang-1205.0.22.11)] on darwin Type "help", "copyright", "credits" or "license" for m

[issue38659] enum classes cause slow startup time

2021-10-12 Thread Ethan Furman
Ethan Furman added the comment: The reason for that quadratic behavior is that for each new member (aka attribute), all the previous members must be checked to see if the new member is a duplicate. In practice I wouldn't expect this to be a problem as most enums should be fairly small -- ar

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Jeff Allen
Jeff Allen added the comment: Thomas wrote: > it's as part of this discussion in > https://mail.python.org/archives/list/python-...@python.org/thread/ABR2L6BENNA6UPSPKV474HCS4LWT26GY/#IAOCDDCJ653NBED3G2J2YBWD7HHPFHT6 > and others in #python-dev That's where I noticed it, but it seemed the w

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-12 Thread Alex Waygood
Alex Waygood added the comment: It looks like support for .py files is hardcoded into IDLE's source code in the following places: * browser.ModuleBrowserTreeItem.OnDoubleClick * browser.ModuleBrowserTreeItem.IsExpandable * browser.ModuleBrowserTreeItem.listchildren * editor.ispythonsource <

[issue45446] Add a way to hide fields in dataclasses

2021-10-12 Thread Nium
Nium added the comment: The objective of this feature is to add a way to omit fields of a dataclass when `asdict` or `astuple` is used. The main propuse is to add the `hide` parameter in `field` and add it as an attribute in the `Field` class. ```py @dataclass class User: name: str w

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50350/test_bench2.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50351/bench2.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Josh Rosenberg
Josh Rosenberg added the comment: Why not "lambda parameters cannot be parenthesized" (optionally "lambda function")? def-ed function parameters are parenthesized, so just saying "Function parameters cannot be parenthesized" seems very weird. -- nosy: +josh.r ___

[issue44359] test_ftplib.test_makeport() fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: I reproduced manually the issue. test_makeport() can trigger the "Uncaught thread exception: Exception". test_makeport (test.test_ftplib.TestTLS_FTPClassMixin) ... Warning -- Uncaught thread exception: Exception Exception in thread Thread-67: Traceback (most

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: It looks like the error is in inspect.formatannotation(). For instances of type, that function incorrectly returns only annotation.__qualname__. Instead, it should return repr(annotation) which would include the args.

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-12 Thread Guido van Rossum
Guido van Rossum added the comment: Sure. Waiting for your PR. :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue45443] 'ThreadPoolExecutor' object has no attribute 'map'

2021-10-12 Thread Gregory Beauregard
Gregory Beauregard added the comment: I get no attribute error with this code in 3.9 or 3.10. -- nosy: +GBeauregard ___ Python tracker ___

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > so just saying "Function parameters cannot be parenthesized" seems very weird. I agree that the wording can be improved, but is not weird, it has the same problem in functions: >>> def foo(x,y,(z,w),k): File "", line 1 def foo(x,y,(z,w),k):

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: With PR 28906 it will show: >>> def foo(x,y,(z,w),k): File "", line 1 def foo(x,y,(z,w),k): ^ SyntaxError: Function parameters cannot be parenthesized I am happy to take suggestions for the wording -- ___

[issue45450] Improve syntax error for parenthesized arguments

2021-10-12 Thread Andre Roberge
Andre Roberge added the comment: +1 on adding better error messages for these cases. I also agree with having different explanations with lambda and def. Below is what I have with friendly-traceback: perhaps the first line of both of these might be suitable? (I will likely change the first

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Ben
Ben added the comment: The problem with the FAQs is that it's over-simplifying things to the point where it can sometimes mislead. Notably, it says the GIL protects these operations; but as Antoine points out, many operations on datatypes drop back into Python (including potential decrefs)

[issue45410] python -m test -jN: write stderr in stdout to get messages in order

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27199 pull_request: https://github.com/python/cpython/pull/28908 ___ Python tracker ___ __

[issue45410] python -m test -jN: write stderr in stdout to get messages in order

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset dbe213de7ef28712bbfdb9d94a33abb9c33ef0c2 by Victor Stinner in branch 'main': bpo-45410: Enhance libregrtest -W/--verbose3 option (GH-28908) https://github.com/python/cpython/commit/dbe213de7ef28712bbfdb9d94a33abb9c33ef0c2 -- _

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

2021-10-12 Thread Ned Deily
Ned Deily added the comment: New changeset 9c4766772cda67648184f8ddba546a5fc0167f91 by David Bohman in branch 'main': bpo-45405: Prevent ``internal configure error`` when running ``configure`` with recent versions of non-Apple clang. (#28845) https://github.com/python/cpython/commit/9c47667

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

2021-10-12 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27200 pull_request: https://github.com/python/cpython/pull/28910 ___ Python tracker _

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

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

[issue45421] Remove dead code from html.parser

2021-10-12 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 ___ Python tracker ___ __

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: I should also check again the stack consumption. Old issues: * bpo-29465: Modify _PyObject_FastCall() to reduce stack consumption * bpo-29234: Disable inlining of _PyStack_AsTuple() to reduce the stack consumption * bpo-29227: Reduce C stack consumption in fu

[issue45439] [C API] Move usage of tp_vectorcall_offset from public headers to the internal C API

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: 5 years ago, I added _PyObject_CallArg1() (similar to PyObject_CallOneArg()) and then I removed it since it consumed more stack memory than existing function, whereas I added _PyObject_CallArg1() to reduce the stack consumption. commit 7bfb42d5b7721ca26e3305

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

2021-10-12 Thread miss-islington
miss-islington added the comment: New changeset edae3e2ac73151217b4b4e096dd9f17cc0a50c11 by Miss Islington (bot) in branch '3.10': [3.10] bpo-45405: Prevent ``internal configure error`` when running ``configure`` with recent versions of non-Apple clang. (GH-28845) (GH-28911) https://github.

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

2021-10-12 Thread miss-islington
miss-islington added the comment: New changeset 9901d153c201d852d27dc9d3074e283c26468f6d by Miss Islington (bot) in branch '3.9': [3.9] bpo-45405: Prevent ``internal configure error`` when running ``configure`` with recent versions of non-Apple clang. (GH-28845) (GH-28910) https://github.co

[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for doing the research. I have been thinking about adding a file containing idlelib 'leaf' objects, those with no idlelib dependencies, which are needed in more than one file. would be to reduce the complexity of the idlelib dependency graph, which

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

2021-10-12 Thread Ned Deily
Ned Deily added the comment: Merged for release in 3.10.1 and 3.9.8. Thanks for the issue and PR, David! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45451] IDLE Shell GUI - remove window border

2021-10-12 Thread primexx
New submission from primexx : Python 3.10 bundled IDLE with a small change in the interactive interpreter shell. Previously, the line indicators ">>>" were in-line with the command line, and a long/multi line command would have the same indentation as the indicator which was not ideal. that

[issue45434] [C API] Clean-up the Python.h header file

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27202 pull_request: https://github.com/python/cpython/pull/28912 ___ Python tracker ___ __

[issue45434] [C API] Clean-up the Python.h header file

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27203 pull_request: https://github.com/python/cpython/pull/28913 ___ Python tracker ___ __

[issue45434] [C API] Clean-up the Python.h header file

2021-10-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 489176e4285314f9ea87b8bd91fe1d55d9af2c42 by Victor Stinner in branch 'main': bpo-45434: Convert Py_GETENV() macro to a function (GH-28912) https://github.com/python/cpython/commit/489176e4285314f9ea87b8bd91fe1d55d9af2c42 -- __

[issue45434] [C API] Clean-up the Python.h header file

2021-10-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27204 pull_request: https://github.com/python/cpython/pull/28914 ___ Python tracker ___ __

[issue45452] Support crash tolerance for gdbm module

2021-10-12 Thread Dong-hee Na
New submission from Dong-hee Na : >From gdbm 1.21, gdbm supports the crash tolerance feature. We may need to provide APIs for those versions. https://www.gnu.org.ua/software/gdbm/manual/Crash-Tolerance.html Following features will be provided if the user using gdbm >= 1.21 - Need to provide `G

[issue45452] Support crash tolerance for gdbm module

2021-10-12 Thread Dong-hee Na
Dong-hee Na added the comment: I am going to work on this issue :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue36521] Consider removing docstrings from co_consts in code objects

2021-10-12 Thread Inada Naoki
Inada Naoki added the comment: Although I still feel reducing 16% tuples is attractive, no one support the idea. I leave this as-is for now, and will go to lazy-loading docstring (maybe, co_linetable too) later. -- resolution: -> rejected stage: patch review -> resolved status: ope

[issue45453] test_embed: random crash on AMD64 Fedora Rawhide Clang 3.x

2021-10-12 Thread STINNER Victor
New submission from STINNER Victor : test_embed does crash randomly on AMD64 Fedora Rawhide Clang 3.x: * https://buildbot.python.org/all/#/builders/188/builds/880 * https://buildbot.python.org/all/#/builders/188/builds/879 So far, I failed to reproduce the issue. -- components: Tests

[issue45452] Support crash tolerance feature for gdbm module

2021-10-12 Thread Dong-hee Na
Dong-hee Na added the comment: FYI, I got a mail about this feature from Terence Kelly who design these amazing things :) -- ___ Python tracker ___ __

  1   2   >