[issue41879] Outdated description of async iterables in documentation of async for statement

2020-12-11 Thread miss-islington
miss-islington added the comment: New changeset 4b8cdfcb22fbeaab9d954cb693a7fb3362a382b6 by Nick Gaya in branch 'master': bpo-41879: Doc: Fix description of async for statement (GH-23548) https://github.com/python/cpython/commit/4b8cdfcb22fbeaab9d954cb693a7fb3362a382b6 -- nosy: +mis

[issue42609] Eval with too high string multiplication crashes newer Python versions

2020-12-11 Thread hongweipeng
Change by hongweipeng : -- nosy: +hongweipeng ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: Does this affect unix-style builds with --enable-shared or framework builds? For the latter the python executable is linked to the framework, and lib python.dylib is an alias for the framework. A related known problem is that linking an extension to a dif

[issue42619] python 3.9.1 failed to create .so files as universal2 (arm64, x86_64) on Mac

2020-12-11 Thread xz_sophos
New submission from xz_sophos : With 3.9.1 source code, I am trying to make univerisal2 build of python.framework from the source code. The problem I am seeing is the main python binary is universal, but all the .so files in lib-dynload (Python.framework/Versions/3.9/lib/python3.9/lib-dynload

[issue31904] Python should support VxWorks RTOS

2020-12-11 Thread Peixing Xin
Change by Peixing Xin : -- pull_requests: +22599 pull_request: https://github.com/python/cpython/pull/23741 ___ Python tracker ___ _

[issue42619] python 3.9.1 failed to create .so files as universal2 (arm64, x86_64) on Mac

2020-12-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: Currently macOS 11 is needed to build a universal2 framework. That because we haven't spent time yet on detecting if the current compiler can compile for arm64. An easy workaround: Patch _osx_support.py, in particular the function "_supports_arm64_builds".

[issue42620] documentation on `getsockname()` wrong for AF_INET6

2020-12-11 Thread Rick van Rein
New submission from Rick van Rein : Shown in the session below is unexpected output of a 4-tuple from an AF_INET6 socket along with documentation that *suggests* to expect a 2-tuple. The phrasing "IP" might have to be toned down to "IPv4" or "AF_INET" to be accurate enough to avoid confusion

[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread Avinash Gaur
New submission from Avinash Gaur <8962...@gmail.com>: I was able to use python IDLE earlier. But when I tried to open now, I was unable to open Python 3.7 IDLE. I have tried uninstalling and reinstalling Python(different versions) and deleting the .idlerc folder. I am using Windows 10. -

[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread Avinash Gaur
Change by Avinash Gaur <8962...@gmail.com>: -- versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread Avinash Gaur
Avinash Gaur <8962...@gmail.com> added the comment: I downloaded the .exe file from python.org After trying to open the idle from cmd "py -3.9 -m idlelib", the error shown in picture comes.(python 3.7 was also showing same error) -- Added file: https://bugs.python.org/file49666/error.p

[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread 雅雯
雅雯 added the comment: 幹你娘 -- nosy: +zhtw1234 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- Removed message: https://bugs.python.org/msg382866 ___ Python tracker ___ ___ Python-bugs-li

[issue42622] Add support to add existing parser to ArgumentParser.subparsers

2020-12-11 Thread Bohdan Borkivskyi
New submission from Bohdan Borkivskyi : Currently, there is only a possibility to create empty parser as subparser - argparse.py, line 1122 The purpose of issue is to add support for existing parser to be added as subparser -- components: Library (Lib) messages: 382867 nosy: borkivsk

[issue42622] Add support to add existing parser to ArgumentParser.subparsers

2020-12-11 Thread Bohdan Borkivskyi
Change by Bohdan Borkivskyi : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue42620] documentation on `getsockname()` wrong for AF_INET6

2020-12-11 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch nosy: +christian.heimes nosy_count: 1.0 -> 2.0 pull_requests: +22600 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23742 ___ Python tracker

[issue42620] documentation on `getsockname()` wrong for AF_INET6

2020-12-11 Thread Christian Heimes
Christian Heimes added the comment: Good point. The address info depends on the address family, https://docs.python.org/3/library/socket.html#socket-families . I have updated the doc string: >>> import socket >>> print(socket.socket.getsockname.__doc__) getsockname() -> address info Return

[issue42246] Implement PEP 626

2020-12-11 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +22601 pull_request: https://github.com/python/cpython/pull/23743 ___ Python tracker ___

[issue15898] OSX TTY bug

2020-12-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: Closing this issue, because this is a platform bug. The reproducer in msg170147 works reliably for me on macOS 10.15 with Python 3.9, the system bug may have been fixed in the meantime. -- components: +macOS resolution: not a bug -> third party sta

[issue42622] Add support to add existing parser to ArgumentParser.subparsers

2020-12-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue39106] Add suggestions to argparse error message output for unrecognized arguments

2020-12-11 Thread conchylicultor
conchylicultor added the comment: I don't think this should have been closed. [1] If the user is using sub_parser, the options are not even displayed. For example in our https://github.com/tensorflow/datasets project: ``` $ tfds build mnist --overwritte usage: tfds [-h] [--helpfull] [--vers

[issue42246] Implement PEP 626

2020-12-11 Thread Ned Batchelder
Ned Batchelder added the comment: Mark, BTW: I have run the coverage.py test suite on 3.10.0a3, and as expected there are failures. I haven't dug into it yet to see what looks expected and what does not. I also see there are still changes happening on master, so I'm not sure when to commit

[issue42246] Implement PEP 626

2020-12-11 Thread Mark Shannon
Mark Shannon added the comment: Ned, What are the failures? I'd like to take a look, to see if things are as expected, and if there are any tests we can add to CPython. -- ___ Python tracker __

[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread Avinash Gaur
Avinash Gaur <8962...@gmail.com> added the comment: I tried deleting Environment Variables which has python. and now it is working. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue26131] Raise ImportWarning when loader.load_module() is used

2020-12-11 Thread Sviatoslav Sydorenko
Sviatoslav Sydorenko added the comment: > What is "VendorImporter" @brett.cannon `VendorImporter` is something comping from `pkg_resources`. Because of an entangled traceback and the fact that it dynamically injects a vendored copy of `six`, it's hard to spot. Here's an upstream issue I file

[issue42620] documentation on `getsockname()` wrong for AF_INET6

2020-12-11 Thread Rick van Rein
Rick van Rein added the comment: Excellent, thanks. I personally would appreciate if a remark about IPv6 would also be made. -- ___ Python tracker ___ __

[issue42456] Logical Error

2020-12-11 Thread Éric Araujo
Change by Éric Araujo : -- hgrepos: -394 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue42571] [docs] add links to Glossary#parameter in libraries

2020-12-11 Thread Éric Araujo
Éric Araujo added the comment: I don’t think every function signature should have links when using `*`, `*args` or `**kwargs`. Is there another page that we could improve? What did you search for when you wanted to understand what it means? Possible candidates: tutorial page about functions;

[issue42608] Installation failed from source code on Debian ([307/416] test_socket)

2020-12-11 Thread Neil Schemenauer
Neil Schemenauer added the comment: Maybe something to do the configuration of the machine, so that TCP/UDP socket networking if failing? Two things to try: - give the "python" process a SIGINT signal and you should get a traceback showing where it is hanging. Or you could use "gdb" and at

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Tom Birch
Tom Birch added the comment: > Does this affect unix-style builds with --enable-shared or framework builds? I believe the answer is no, since in both those cases the `python` executable doesn't contain definitions for any of the libpython symbols. In my testing I was using a python binary fr

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread 雅雯
雅雯 added the comment: 幹你娘 -- components: +2to3 (2.x to 3.x conversion tool), Argument Clinic, Build, Cross-Build, asyncio, ctypes nosy: +Alex.Willmer, asvetlov, larry, yselivanov, zhtw1234 versions: +Python 3.10, Python 3.6, Python 3.7 Added file: https://bugs.python.org/file49667/IMAG

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Larry Hastings
Change by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread 雅雯
雅雯 added the comment: 你們全都有病,現實生活沒朋友上網做夫妻,纸上談兵沒有用,叫對方離婚和你們在一起阿!賤人、渣男…… -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list m

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread 雅雯
Change by 雅雯 : Removed file: https://bugs.python.org/file49667/IMAG0629_1.jpg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue39106] Add suggestions to argparse error message output for unrecognized arguments

2020-12-11 Thread paul j3
paul j3 added the comment: In the subparser example, it's the `build` subparser that puts '--overwritte' in the unrecognized list. That is then passed back to the main parser, which then issues the 'unrecognized' error, along with its own usage. The subparser is called with `parse_known_arg

[issue21536] extension built with a shared python cannot be loaded with a static python

2020-12-11 Thread 雅雯
雅雯 added the comment: 幹你娘 -- nosy: +zhtw1234 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Larry Hastings
Larry Hastings added the comment: Stop adding me to this issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Larry Hastings
Change by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue42246] Implement PEP 626

2020-12-11 Thread 雅雯
雅雯 added the comment: 幹你娘 -- nosy: +zhtw1234 Added file: https://bugs.python.org/file49668/IMAG0629_1.jpg ___ Python tracker ___ ___

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Larry Hastings
Change by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue42616] C Extensions on Darwin that link against libpython are likely to crash

2020-12-11 Thread Larry Hastings
Larry Hastings added the comment: Sorry, somehow bpo decided I added two people to this issue? Weird. Anyway I have removed them (Ned and "froody"). -- nosy: +larry -froody, ned.deily ___ Python tracker _

[issue42246] Implement PEP 626

2020-12-11 Thread 雅雯
雅雯 added the comment: 全家死光 -- Added file: https://bugs.python.org/file49669/IMAG0629_1(1).jpg ___ Python tracker ___ ___ Python-bugs

[issue42246] Implement PEP 626

2020-12-11 Thread 雅雯
Change by 雅雯 : Removed file: https://bugs.python.org/file49668/IMAG0629_1.jpg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue42622] Add support to add existing parser to ArgumentParser.subparsers

2020-12-11 Thread paul j3
paul j3 added the comment: An existing parser can be included in a new subparser via the 'parents' mechanism. With that the _actions and groups of the parent are copied (by reference) to the new subparser. There are some rough edges to the parents mechanism, but people have used it to add

[issue42246] Implement PEP 626

2020-12-11 Thread 雅雯
雅雯 added the comment: 幹你娘 我是渣男專打老婆騙吃拐幹 -- Added file: https://bugs.python.org/file49670/IMAG0629_1.jpg ___ Python tracker ___ ___ Py

[issue42246] Implement PEP 626

2020-12-11 Thread 雅雯
雅雯 added the comment: 你全家死光 -- Added file: https://bugs.python.org/file49671/IMAG0629_1.jpg ___ Python tracker ___ ___ Python-bugs-l

[issue42246] Implement PEP 626

2020-12-11 Thread 雅雯
雅雯 added the comment: 幹你娘 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/

[issue42246] Implement PEP 626 -- Precise line numbers for debugging

2020-12-11 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: Implement PEP 626 -> Implement PEP 626 -- Precise line numbers for debugging ___ Python tracker ___ ___

[issue41559] Add support for PEP 612 to typing.py

2020-12-11 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: Add support for PEP 612 to typing.py -> Add support for PEP 612 to typing.py ___ Python tracker ___ __

[issue41559] Add support for PEP 612 (Parameter Specification Variables) to typing.py

2020-12-11 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: Add support for PEP 612 to typing.py -> Add support for PEP 612 (Parameter Specification Variables) to typing.py ___ Python tracker __

[issue42610] Get the type from a variable

2020-12-11 Thread Filipe Laíns
Filipe Laíns added the comment: There is type() to get the runtime type. https://docs.python.org/3/library/functions.html#type ```python >>> foo = 1 >>> type(foo) ``` Keep in mind that in Python using type hints does not enforce anything at runtime. You can say `foo: int = 1` but `int` ther

[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://docs.python.org/3/library/idle.html#startup-failure says "A common cause of failure is a user-written file with the same name as a standard library module, such as random.py and tkinter.py. When such a file is located in the same directory as a file t

[issue42577] Unhelpful syntax error when expression spans multiple lines

2020-12-11 Thread Andre Roberge
Andre Roberge added the comment: I suspect that the Python parser cannot easily be changed to given any other message. Replace the colon by "else" and add one more closing parenthesis and you have a valid Python program. So, is it a matter of an unclosed parenthesis, or not using "else" ? .

[issue42577] Unhelpful syntax error when expression spans multiple lines

2020-12-11 Thread Christoph Reiter
Christoph Reiter added the comment: I would expect Python to print the current statement up to the error instead of just the last line: ``` File "error.py", line 3-5 print(((123)) if 2: ^ ``` This would solve this case nicely while in the common case still show one line a

[issue24959] unittest swallows part of stack trace when raising AssertionError in a TestCase

2020-12-11 Thread Irit Katriel
Irit Katriel added the comment: I think this is the same as issue42247, where I've recently attached a patch that removes __unittest frames from the traceback rather than count them and then set a limit for printing. I could add to that patch what Robert suggests here - to filter the __caus

[issue42575] Suggest to add an LinkedList data structure to python

2020-12-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: The opening claim (no linked list structures in Python) is flawed. Abstractly, a linked list is a binary tree with right items of nodes restricted to being a linked list or None. If the left items are restricted to being non-lists values, then the linked li

[issue42603] Tkinter: pkg-config is not used to get location of tcl and tk headers/libraries

2020-12-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Correctly prefixed, issue 42541 and #42541 are links. And thanks for doing CLA first. -- nosy: +terry.reedy ___ Python tracker ___

[issue42611] PEP 594 Removing dead batteries from stdlib

2020-12-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Until a pep is approved, discussion of its ideas belong elsewhere; an issue is only needed for a proposed implementation Is PR 23728 purely for discussion leading to possible approval of the PEP, or for merging regardless of the PEP fate? -- nosy:

[issue42575] Suggest to add an LinkedList data structure to python

2020-12-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: > So I think that this issue should be closed. I agree with the respondents. Marking this one as closed. -- nosy: +rhettinger resolution: -> rejected stage: -> resolved status: open -> closed ___ Python track

[issue42623] Syntax Error showing pointer in wrong location

2020-12-11 Thread Pratik Palwai
New submission from Pratik Palwai <1051...@student.auhsd.us>: When I get a syntax error, it shows the line with the error, and then a little '^' on the next line, showing where the error is. However, the location of the '^' is a little misleading, since it isn't in the right spot. For example

[issue42623] Syntax Error showing pointer in wrong location

2020-12-11 Thread Steven D'Aprano
Steven D'Aprano added the comment: The position of the caret assumes that every character in the string takes up the same width, measured in pixels. That is only true for monospaced fonts like Courier. The only way to position the caret precisely with a proportional-width font is to compute

[issue42608] Installation failed from source code on Debian ([307/416] test_socket)

2020-12-11 Thread ali
ali added the comment: I used build_all instead of --enable-optimizations option. Thanks you. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker