[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Python shell uses to evaluate while IDLE uses . Is that the problem? -- nosy: +shreyanavigyan ___ Python tracker ___ _

[issue44028] Request for locals().update() to work, it is

2021-05-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: > loading the entire game or DNN (from STDIN) can be simply put into one line > as `locals().update(eval(sys.stdin.read()))` This is how you get command injection attacks. https://owasp.org/www-community/attacks/Command_Injection https://cwe.mitre.org/data

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: I'm not sure if this helps, but this is the relevant tree of callers: suggestions.c: _Py_Offer_Suggestions() (the expected behavior) is only referenced by pythonrun.c: print_exception(), which is only referenced by pythonrun.c: print_exception_recursive(), wh

[issue43742] tcp_echo_client in asyncio streams example does not work. Hangs for ever at reaser.read()

2021-05-04 Thread Jonathan Schweder
Jonathan Schweder added the comment: @jcolo Awesome to hear that you were able to run the example, in fact I got in the same trap, thinking the same that the example should carry the server and client side, I guess we can improve the documentation to avoid it, I'll sent a PR to make the imp

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: PyErr_Display() grabs the current sys.stderr and writes to that, but it looks like IDLE never gets to call PyErr_Display(). -- ___ Python tracker __

[issue44028] Request for locals().update() to work, it is

2021-05-04 Thread wang xuancong
wang xuancong added the comment: Of course, I am aware of that. As elite-level Python programmers, we should all be aware of security issues whenever we deal with exec() and eval(). -- ___ Python tracker __

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: It looks like Lib/idlelib/run.py : print_exception() re-implements the traceback, rather than relying on sys.excepthook -- ___ Python tracker __

[issue43666] AIX: Lib/_aix_support.py may break in a WPAR environment

2021-05-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +24555 pull_request: https://github.com/python/cpython/pull/25880 ___ Python tracker _

[issue44029] PEP 624: Remove Py_UNICODE APIs

2021-05-04 Thread Inada Naoki
New submission from Inada Naoki : Ref: https://www.python.org/dev/peps/pep-0624/ -- components: C API messages: 392862 nosy: methane priority: normal severity: normal status: open title: PEP 624: Remove Py_UNICODE APIs versions: Python 3.11 ___ Pytho

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: Indeed, this change enables the feature for IDLE, though I'm not sure what it breaks. diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 07e9a2bf9c..319b16f311 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -569,7 +569,7 @@ def runcode(se

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Does the test suite run succesfully? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44029] PEP 624: Remove Py_UNICODE APIs

2021-05-04 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +24556 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25881 ___ Python tracker ___

[issue44001] typing.Literal: args must be hashable, not immutable

2021-05-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +24557 pull_request: https://github.com/python/cpython/pull/25882 ___ Python tracker _

[issue37605] CI should not depend on gmane response

2021-05-04 Thread robin
robin added the comment: In other news, news.gmane.org is now news.gmane.io; see also https://bugs.python.org/issue39343 -- nosy: +eriker ___ Python tracker ___ _

[issue43666] AIX: Lib/_aix_support.py may break in a WPAR environment

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 7a92beea2cb13db3e42d39b169e124fa3b89dc36 by Miss Islington (bot) in branch '3.9': bpo-43666: Lib/_aix_support.py routines may fail in a WPAR environment (GH-25095) (#25880) https://github.com/python/cpython/commit/7a92beea2cb13db3e42d39b169e124fa3

[issue44001] typing.Literal: args must be hashable, not immutable

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 2046fb35e4e0986523bd0f6214fc318a414c8b97 by Miss Islington (bot) in branch '3.10': bpo-44001: improve Literal documentation (GH-25877) (#25882) https://github.com/python/cpython/commit/2046fb35e4e0986523bd0f6214fc318a414c8b97 -- nosy: +lu

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24558 pull_request: https://github.com/python/cpython/pull/25884 ___ Python tracker _

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +24559 pull_request: https://github.com/python/cpython/pull/25885 ___ Python tracker ___ __

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e1bcc88a502aa0239b6bcc4da3fe024307fd27f4 by Miss Islington (bot) in branch '3.10': bpo-38352: Add to typing.__all__ (GH-25821) (#25884) https://github.com/python/cpython/commit/e1bcc88a502aa0239b6bcc4da3fe024307fd27f4 -- nosy: +lukasz.lan

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 00726e51ade10c7e3535811eb700418725244230 by Miss Islington (bot) in branch '3.9': bpo-38352: Add to typing.__all__ (GH-25821) (#25885) https://github.com/python/cpython/commit/00726e51ade10c7e3535811eb700418725244230 -- _

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: Fix merged to main (3.11), 3.10, and 3.9. Not applicable to older Pythons as they are security fixes only. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6 __

[issue42083] PyStructSequence_NewType broken in 3.8

2021-05-04 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +24560 pull_request: https://github.com/python/cpython/pull/25886 ___ Python tracker ___ ___ P

[issue44030] Markup with_traceback code example

2021-05-04 Thread Terry J. Reedy
New submission from Terry J. Reedy : .../Doc/library/exceptions.rst, lines 99-105 has original ``SomeException`` had we allowed it to propagate to the caller. try: ... except SomeException: tb = sys.exc_info()[2] raise OtherExceptio

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Shreyan, the fake filenames are not relevant.) By default, sys.excepthook is sys.__excepthook is . So by default IDLE runcode calls print_exception, which call cleanup_traceback for each traceback printed. This function makes two important changes to the

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-04 Thread Michał Górny
Michał Górny added the comment: I hate to be the bearer of bad news but I've already found this change to be breaking tests of botocore and django. In both cases, the test failure is apparently because upstream used to reject URLs after finding newlines in the split components, and now they'

[issue43001] python3.9.1python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- title: python3.9.1 test_embed test_tabnanny failed -> python3.9.1python3.9.1 test_embed test_tabnanny failed ___ Python tracker ___ ___

[issue43001] python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- resolution: out of date -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42083] PyStructSequence_NewType broken in 3.8

2021-05-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +24561 pull_request: https://github.com/python/cpython/pull/25887 ___ Python tracker _

[issue43001] python3.8.9, python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue43001] python3.8.9, python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Alexei S added the comment: python 3.8.9 also show compile problems my system: Linux Mint 20.1 Cinnamon (Cinnamon 4.8.6) kernel 5.8.0-48-generic $uname -a Linux home 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux I tried to execute problem c

[issue37605] CI should not depend on gmane response

2021-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: nntp.rst, line 23, has already been updated to "s = NNTP('news.gmane.io'). But that also occasionally fails to respond. I have not seen any test failures recently, so maybe something else has changes. Should this be closed pending current failures? -

[issue44025] Match doc: Clarify '_' as a soft keyword

2021-05-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +24562 pull_request: https://github.com/python/cpython/pull/25888 ___ Python tracker _

[issue43001] python3.8.9, python3.9.1 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50007/log_make_test 3.9.2.log ___ Python tracker ___ ___ Python-bugs-list maili

[issue43001] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- title: python3.8.9, python3.9.1 test_embed test_tabnanny failed -> python3.8.9, python3.9.2 test_embed test_tabnanny failed ___ Python tracker ___

[issue43953] InitVar should not be available on a @dataclass-decorated class

2021-05-04 Thread Eric V. Smith
Eric V. Smith added the comment: I don’t see any way of changing this behavior, so I’m going to close this issue. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue44025] Match doc: Clarify '_' as a soft keyword

2021-05-04 Thread miss-islington
miss-islington added the comment: New changeset ae4f8574993c85f9dc6fe60e6a25d65f688705e6 by Miss Islington (bot) in branch '3.10': bpo-44025: Clarify when '_' is a keyword. (GH-25873) https://github.com/python/cpython/commit/ae4f8574993c85f9dc6fe60e6a25d65f688705e6 -- _

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Pablo, I checked an AttributeError instance and the missing phrase is not > present This cannot be included in the AttributeError because of performance reasons. These errors will be thrown naturally all over the place without this meaning that the

[issue44026] IDLE doesn't offer "Did you mean?" for AttributeError and NameError

2021-05-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I don't feel comfortable adding a public API to get the message either in the traceback or the exception, at least for the time being. -- ___ Python tracker

[issue43742] tcp_echo_client in asyncio streams example does not work. Hangs for ever at reaser.read()

2021-05-04 Thread Jonathan Schweder
Change by Jonathan Schweder : -- keywords: +patch pull_requests: +24563 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25889 ___ Python tracker __

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50009/log_make 3.9.2.log ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
New submission from Alexei S : Python 3.9.2 make test == Tests result: FAILURE then FAILURE == 396 tests OK. 2 tests failed: test_embed test_tabnanny 27 tests skipped: test_bz2 test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_idle test_ioctl test_kqueue test_lzma t

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50010/log_make_test 3.9.2.log ___ Python tracker ___ ___ Python-bugs-list maili

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50011/log_make_test 3.8.9.log ___ Python tracker ___ ___ Python-bugs-list maili

[issue44031] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Alexei S added the comment: this problem was announced also in 43001 https://bugs.python.org/issue43001?@ok_message=%D0%98%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5%D0%BD%D1%8B%20%D0%B0%D1%82%D1%80%D0%B8%D0%B1%D1%83%D1%82%D1%8B%20%D0%B7%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%B8%D0%B5%20%D0%BE%D0%B1%D1%8A%D0%B5%D

[issue43001] python3.8.9, python3.9.2 test_embed test_tabnanny failed

2021-05-04 Thread Alexei S
Change by Alexei S : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2021-05-04 Thread Safihre
Safihre added the comment: Understandable, as the feature freeze was yesterday :) Just like to note that we have a 100.000 or so users (which I know is very little compared to overal number of Python users) of our application that this could really help. We have used a lot of CPU cycles ov

[issue37355] SSLSocket.read does a GIL round-trip for every 16KB TLS record

2021-05-04 Thread Christian Heimes
Christian Heimes added the comment: You could try to convince Pablo. He is the release manager for 3.10. He can grant exceptions. I also included Benjamin, Nathaniel, and Victor in the nosy list. They have a deeper understanding of the network I/O layer than me. I mostly take care of the cr

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2021-05-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +24564 pull_request: https://github.com/python/cpython/pull/25890 ___ Python tracker _

[issue44014] Fix error in Enum documentation.

2021-05-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +24565 pull_request: https://github.com/python/cpython/pull/25891 ___ Python tracker _

[issue44014] Fix error in Enum documentation.

2021-05-04 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-04 Thread Petr Viktorin
Petr Viktorin added the comment: Sorry for not getting to this sooner, but 5 days is really tight for such a change. With -S/-I, It would be great if sys.path only included packages installed as part of the OS, and not those installed by `sudo pip`. (Or `pip --user`, but that's covered).

[issue43075] ReDoS in urllib.request

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ada14995870abddc277addf57dd690a2af04c2da by Miss Islington (bot) in branch '3.7': bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (#25249) https://github.com/python/cpython/commit/ada14995870abddc277addf57dd690a2af04c2da --

[issue42686] include built-in Math functions in SQLite to 3.35.0 of march 2021

2021-05-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +24566 pull_request: https://github.com/python/cpython/pull/25892 ___ Python tracker _

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: 3.8 is in security fixes mode but I'll happily take this for 3.9. -- nosy: +lukasz.langa versions: -Python 3.8 ___ Python tracker ___ _

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2021-05-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +24567 pull_request: https://github.com/python/cpython/pull/25893 ___ Python tracker ___ __

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-04 Thread Filipe Laíns
Filipe Laíns added the comment: > My biggest concern is with the bare "import _vendor_config", which I'd prefer > to have restricted to a fixed location, rather than being influenced by > environment variables and other options. We already have an issue with > readline being imported from any

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-05-04 Thread Ned Batchelder
Ned Batchelder added the comment: Thanks, tip of pytest works for me. Is this error going to happen for everyone testing with 3.10b1? If so, can we get a release of pytest? -- ___ Python tracker _

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8655521de8760e8a695bcce92937800c079ea2b2 by Miss Islington (bot) in branch '3.10': bpo-32822: Add finally with return/break/continue to the tutorial (GH-25600) (#25893) https://github.com/python/cpython/commit/8655521de8760e8a695bcce92937800c079ea

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 91cb1e20e6a432b8b2c1b5db37b03c84b15384fa by Miss Islington (bot) in branch '3.9': bpo-32822: Add finally with return/break/continue to the tutorial (GH-25600) (#25890) https://github.com/python/cpython/commit/91cb1e20e6a432b8b2c1b5db37b03c84b15384

[issue32822] finally block doesn't re-raise exception if return statement exists inside

2021-05-04 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue42686] include built-in Math functions in SQLite to 3.35.0 of march 2021

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 4bb0a815ef2b683af75f43ab20d52eaffe78b436 by Miss Islington (bot) in branch '3.10': bpo-42686: Enable SQLite math functions in Windows build (GH-24053) (#25892) https://github.com/python/cpython/commit/4bb0a815ef2b683af75f43ab20d52eaffe78b436

[issue42686] include built-in Math functions in SQLite to 3.35.0 of march 2021

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: Merged into 3.10 and 3.11. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue42083] PyStructSequence_NewType broken in 3.8

2021-05-04 Thread Petr Viktorin
Change by Petr Viktorin : -- nosy: +petr.viktorin nosy_count: 5.0 -> 6.0 pull_requests: +24568 pull_request: https://github.com/python/cpython/pull/25896 ___ Python tracker ___

[issue42083] PyStructSequence_NewType broken in 3.8

2021-05-04 Thread Petr Viktorin
Petr Viktorin added the comment: Changing PyType_FromSpec* to accept NULL has an issue: extensions built and tested with 3.9.5 would not work with the earlier 3.9s. I'll send a PR to fix just PyStructSequence_NewType. -- ___ Python tracker

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: @Łukasz thanks for your merging spree! I'm actually not sure this should go into 3.9. Seems potentially dangerous that people upgrading from an earlier 3.9 patch release will now see new names injected into their namespace if they do `from typing import *`.

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-05-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Is this error going to happen for everyone testing with 3.10b1? 3.10.0b1 includes both of these PRs so people testing the beta should not get affected. That's why I marked this as release blocker. -- ___

[issue43349] [doc] incorrect tuning(7) manpage link

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 4b90c8f17603e7ab4e4568cc8b9d5de4f8099973 by Miss Islington (bot) in branch '3.9': closes bpo-43349: Fix tuning(7) manpage hyperlink. (GH-24680) (#25694) https://github.com/python/cpython/commit/4b90c8f17603e7ab4e4568cc8b9d5de4f8099973 --

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-05-04 Thread Ned Batchelder
Ned Batchelder added the comment: The pytest failure still happens with 3.10.0b1 and pytest 6.2.3. I'm asking if pytest can make a release to update. -- ___ Python tracker _

[issue27823] Change bare AttributeError messages to be more informative

2021-05-04 Thread Anilyka Barry
Anilyka Barry added the comment: I'd forgotten that I did that. Looking back on it, this is indeed not a good change. Since there hasn't been any traction on in for 5 years, I think it's safe to say it's not something people want. -- resolution: -> rejected stage: patch review -> re

[issue42083] PyStructSequence_NewType broken in 3.8

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ec18362f6a7fdc02f9f982872fc1006bca31627d by Petr Viktorin in branch '3.9': [3.9] bpo-42083: Allow NULL doc in PyStructSequence_NewType (#25896) https://github.com/python/cpython/commit/ec18362f6a7fdc02f9f982872fc1006bca31627d --

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50012/log_make_test 3.8.9.log ___ Python tracker ___ ___ Python-bugs-list maili

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-04 Thread Alexei S
Change by Alexei S : Added file: https://bugs.python.org/file50013/log_make_test 3.9.2.log ___ Python tracker ___ ___ Python-bugs-list maili

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-05-04 Thread Alexei S
Alexei S added the comment: I have opened the same issue https://bugs.python.org/issue44031 -- nosy: +asholomitskiy84 ___ Python tracker ___ __

[issue42083] PyStructSequence_NewType broken in 3.8

2021-05-04 Thread Ken Jin
Ken Jin added the comment: Steve, thank you for your invaluable investigation. Thanks Petr for a better fix - your issue didn't come to my mind at the time. Since all PRs have landed and the fix should arrive in Python 3.9.6, I am closing this issue. Please don't hesitate to reopen this if a

[issue42067] Type annotation in for-loops

2021-05-04 Thread Ken Jin
Ken Jin added the comment: @pablo, may I close this issue as 'not a bug'? I think it looks like a feature request that belongs on https://discuss.python.org/c/ideas/ or https://mail.python.org/mailman3/lists/python-ideas.python.org/ instead. What do you think? -- nosy: +pablogsal _

[issue42067] Type annotation in for-loops

2021-05-04 Thread Mark Shannon
Mark Shannon added the comment: Definitely one for Python ideas. Quite a good idea though. -- nosy: +Mark.Shannon ___ Python tracker ___ __

[issue43054] What does the existence of a struct in a header file imply about the C-API

2021-05-04 Thread Mark Shannon
Mark Shannon added the comment: Thanks for the responses. Probably nothing to do for now. -- resolution: -> postponed stage: -> resolved status: open -> closed ___ Python tracker __

[issue38135] Depth first search in compile.c creates wrong BB order for certain CFG.

2021-05-04 Thread Mark Shannon
Mark Shannon added the comment: This seems to have been fixed sometime. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44032] Store locals and evaluation stack should be stored in a contiguous, per-thread stack

2021-05-04 Thread Mark Shannon
New submission from Mark Shannon : Currently, the local variables (inc. cell and free vars) for functions and the evaluation stack are kept in per-activation chunks in the frame object. This is not a good design for modern hardware. The local variables and stack are amongst the hottest memory

[issue44032] Function locals and evaluation stack should be stored in a contiguous, per-thread stack

2021-05-04 Thread Mark Shannon
Change by Mark Shannon : -- title: Store locals and evaluation stack should be stored in a contiguous, per-thread stack -> Function locals and evaluation stack should be stored in a contiguous, per-thread stack ___ Python tracker

[issue43978] Incorrect "versionadded" info in typing.NoReturn documentation

2021-05-04 Thread Ken Jin
Ken Jin added the comment: Hi Miguel, with reference to https://github.com/python/cpython/pull/25760#issuecomment-830338306, Guido rejected the PR because he said that the current docs are correct. This is a major point of confusion for many people, but here's why a single feature can be ad

[issue44032] Function locals and evaluation stack should be stored in a contiguous, per-thread stack

2021-05-04 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue44001] typing.Literal: args must be hashable, not immutable

2021-05-04 Thread Ken Jin
Ken Jin added the comment: Jelle, thanks for fixing up the docs. You're right here - anything that can be an element in a frozenset or used as a key in a dict works. And the current docs for sets says that means anything hashable: https://docs.python.org/3/library/stdtypes.html#set-types-set

[issue42067] Type annotation in for-loops

2021-05-04 Thread Ken Jin
Ken Jin added the comment: Thanks for your input Mark! -- components: -Build resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue43978] Incorrect "versionadded" info in typing.NoReturn documentation

2021-05-04 Thread Rahul Kumaresan
Rahul Kumaresan added the comment: Hello Ken Jin, Thanks for this clarification! -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue43624] Add underscore as a decimal separator for string formatting

2021-05-04 Thread Terry Davis
Terry Davis added the comment: If no one else has any comments, I'll assume there is consensus and start working on this. I have not contributed to CPython before, nor have I worked on production C code, so it may be a while before I get anywhere. -- versions: +Python 3.11 -Python 3.

[issue43355] __future__.annotations breaks inspect.signature()

2021-05-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Python 3.10 will add an eval_str= argument to inspect.signature() that lets you evaluate string annotations. I don't think it makes sense to change anything in the bugfix branches, so I propose that this issue be closed. -- nosy: +Jelle Zijlstra ___

[issue43978] Incorrect "versionadded" info in typing.NoReturn documentation

2021-05-04 Thread Ken Jin
Ken Jin added the comment: To answer the person who posted this on docs mailing list, after much investigation, it seems that this made it into 3.7.0, 3.5.4 and 3.6.2 . Here's the 3.7.0 (alpha) commit for the initial implementation of typing.NoReturn: https://github.com/python/cpython/commit

[issue44001] typing.Literal: args must be hashable, not immutable

2021-05-04 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- pull_requests: +24569 pull_request: https://github.com/python/cpython/pull/25897 ___ Python tracker ___ __

[issue44001] typing.Literal: args must be hashable, not immutable

2021-05-04 Thread Ken Jin
Ken Jin added the comment: Well something was amiss: the 3.9 backport PR ;-). Sorry for closing this issue too early. I didn't notice there was still one more to go. -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-05-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > The pytest failure still happens with 3.10.0b1 and pytest 6.2.3. What I am missing? 3.10.0b1 includes the fixes for this issue, no? Is it because the fixes still require some changes in the source? If that's the case, we should mention it in the Wha

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-05-04 Thread Anthony Sottile
Anthony Sottile added the comment: I've released pytest 6.2.4 for the other breakage (which is unrelated to this bpo -- it was the asname source position issue) -- ___ Python tracker ___

[issue44001] typing.Literal: args must be hashable, not immutable

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ab0a54adad8ddf488ccfb92970be9e4027673d19 by Jelle Zijlstra in branch '3.9': [3.9] bpo-44001: improve Literal documentation (GH-25877). (#25897) https://github.com/python/cpython/commit/ab0a54adad8ddf488ccfb92970be9e4027673d19 --

[issue44033] Adding multiple keys of the same name to a dict doesn't raise an exception

2021-05-04 Thread Shreyan Avigyan
New submission from Shreyan Avigyan : Adding multiple keys of the same name to a dict should raise an exception but instead causes a different behavior. For example consider this code, >>> d = {"x" : "First value", "x" : "Second value", "y" : "Third value"} One would expect a error because th

[issue44035] Regenerating the configure script fails even if dependencies are satisfied

2021-05-04 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : I have installed autoconf-archive and autoconf 2.69 and tried to regenerate the configure script and it fails: $ ls /share/aclocal/ax_* | wc -l 572 $ autoconf --version autoconf (GNU Autoconf) 2.69 Copyright (C) 2012 Free Software Foundation, Inc.

[issue44034] Incorrect type casting of float into int

2021-05-04 Thread Backbench Family
New submission from Backbench Family : y = int(1.999) # fifteen decimal points print(y) 1 # output is 1 y = int(1.) # sixteen decimal points print(y) 2 # output is 2 It shows 1 when we type fifteen decimal whereas when we add sixteen decimal points the o

[issue44035] Regenerating the configure script fails even if dependencies are satisfied

2021-05-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Reverting https://github.com/python/cpython/commit/5d6e8c1c1a5f667cdce99cb3c563ac922198678d works -- ___ Python tracker ___

[issue44035] Regenerating the configure script fails even if dependencies are satisfied

2021-05-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Also: grep -r AX_C_FLOAT_WORDS_BIGENDIAN /share/aclocal/ ax_c_float_words_bigendian.m4:# AX_C_FLOAT_WORDS_BIGENDIAN([ACTION-IF-TRUE], [ACTION-IF-FALSE], [ACTION-IF-UNKNOWN]) ax_c_float_words_bigendian.m4:AC_DEFUN([AX_C_FLOAT_WORDS_BIGENDIAN], ax_c_fl

[issue44036] asyncio SSL server can be DOSed, event loop gets blocked: busy loops and uses 100% CPU

2021-05-04 Thread ghost43
New submission from ghost43 : This is about a potential DOS vector that can get an asyncio server serving SSL connections to enter a busy loop and hang. To recover the server (python process) needs to be restarted. See downstream report at https://github.com/spesmilo/electrumx/issues/92 Elec

[issue44035] Regenerating the configure script fails even if dependencies are satisfied

2021-05-04 Thread Christian Heimes
Christian Heimes added the comment: Dpes /opt/bb/bin/autoconf pick up the files in /share/aclocal? Both are rather unusual file locations. -- ___ Python tracker ___ _

  1   2   >