[issue45862] Anomaly of eval() of list comprehension

2021-11-21 Thread David Pratten
New submission from David Pratten : Hi Example "eg def2" works but "eg def4" gives an error? David ``` emp = [ { "empno": 7839, "mgr": 0, "ename": "KING" }, { "empno": 7566, "mgr": 7839, "ename": "JONES" }, {

[issue45858] Deprecate default converters in sqlite3

2021-11-21 Thread Kevin
Change by Kevin : -- nosy: +Strongbeard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45861] Can't find a usable init.tcl

2021-11-21 Thread heheoa
heheoa added the comment: i just needed to install tcl -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45861] Can't find a usable init.tcl

2021-11-21 Thread heheoa
New submission from heheoa : _tkinter.TclError: Can't find a usable init.tcl in the following directories: /usr/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.12/library /tcl8.6.12/library -- components: Tkinter messages: 406741 nosy: nobodyatall priority:

[issue45860] UnboundLocalError leads to Illegal instruction crashing CPython

2021-11-21 Thread Xinmeng Xia
New submission from Xinmeng Xia : The following code can lead to a crash and report Illegal instruction (core dumped)(few times) or Trace/breakpoint trap (core dumped) (very few times) or Segmentation fault (core dumped) (most times) on Python 3.11. test_free_different_thread.py

[issue44649] dataclasses slots with init=False field raises AttributeException

2021-11-21 Thread Eric V. Smith
Change by Eric V. Smith : -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44649] dataclasses slots with init=False field raises AttributeException

2021-11-21 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +27930 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29692 ___ Python tracker ___

[issue45859] test_collections has a wrong test in case _itemgetter is not available

2021-11-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42268] ./configure failing when --with-memory-sanitizer specified

2021-11-21 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Reproducible on 3.9, 3.10, and on main. The --with-memory-sanitizer option adds "-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer" to CFLAGS, and "-fsanitize=memory -fsanitize-memory-track-origins=2" to LDFLAGS. The

[issue42268] ./configure failing when --with-memory-sanitizer specified

2021-11-21 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45859] test_collections has a wrong test in case _itemgetter is not available

2021-11-21 Thread Carl Friedrich Bolz-Tereick
Change by Carl Friedrich Bolz-Tereick : -- keywords: +patch pull_requests: +27929 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29691 ___ Python tracker

[issue45859] test_collections has a wrong test in case _itemgetter is not available

2021-11-21 Thread Carl Friedrich Bolz-Tereick
New submission from Carl Friedrich Bolz-Tereick : test_field_descriptor in test_collections tries to pickle the descriptors of a namedtuple's fields, which is _collections._itemgetter on CPython. However, on PyPy that class doesn't exist. The code in collections deals fine with that fact,

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-11-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: Even without garbage-collecting the coroutine, we get a failed assertion in debug mode (but no crash with the assertion removed): Python 3.11.0a2+ (heads/main:c8c21bdd19, Nov 21 2021, 13:58:01) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright",

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-11-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: I think the import is irrelevant (luckily). This still crashes: async def f(): pass frame = f().cr_frame frame.clear() -- ___ Python tracker

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-11-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: I got a crash on Windows in Objects/genobject.c: void _PyGen_Finalize(PyObject *self) { PyGenObject *gen = (PyGenObject *)self; PyObject *res = NULL; PyObject *error_type, *error_value, *error_traceback; if (gen->gi_xframe == NULL ||

[issue45858] Deprecate default converters in sqlite3

2021-11-21 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26651] Deprecate register_adapter() and register_converter() in sqlite3

2021-11-21 Thread Ethan Furman
Change by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33558] Python has no icon in taskbar and in start screen

2021-11-21 Thread Irit Katriel
Irit Katriel added the comment: 3.6 is no longer maintained. Please create a new issue if you are having this problem with a current version of python (3.9+). -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed

[issue33158] Add fileobj property to csv reader and writer objects

2021-11-21 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23952] cgi: Document the 'maxlen' member of the cgi module

2021-11-21 Thread Irit Katriel
Change by Irit Katriel : -- Removed message: https://bugs.python.org/msg406733 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23952] cgi: Document the 'maxlen' member of the cgi module

2021-11-21 Thread Irit Katriel
Irit Katriel added the comment: I -- components: +Library (Lib) keywords: +easy, newcomer friendly nosy: +iritkatriel type: -> enhancement versions: +Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-21 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27928 pull_request: https://github.com/python/cpython/pull/29690 ___ Python tracker ___

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-21 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27927 pull_request: https://github.com/python/cpython/pull/29689 ___ Python tracker ___

[issue45805] CO_FUTURE_ANNOTATIONS flag is not documented or in inspect

2021-11-21 Thread Éric Araujo
Change by Éric Araujo : -- stage: resolved -> versions: +Python 3.11 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue45805] CO_FUTURE_ANNOTATIONS flag is not documented or in inspect

2021-11-21 Thread Éric Araujo
Éric Araujo added the comment: I am not sure. Adding compiler people to the nosy list! -- nosy: +BTaskaya, Mark.Shannon, benjamin.peterson, brett.cannon, pablogsal, yselivanov ___ Python tracker

[issue45857] PEP 604 Union syntax does not support forward references

2021-11-21 Thread Alex Waygood
Alex Waygood added the comment: Arguably, either the implementation should be altered to support forward references, or the documentation at https://docs.python.org/3/library/stdtypes.html#union-type should be altered to make clear that, when type-hinting a union that includes a forward

[issue45677] [doc] improve sqlite3 docs

2021-11-21 Thread Ian Fisher
Ian Fisher added the comment: I think it would also be helpful to make the examples at the top simpler/more idiomatic, e.g. using a context manager for the connection and calling conn.execute directly instead of spawning a cursor. I think the information about the isolation_level parameter

[issue26651] Deprecate register_adapter() and register_converter() in sqlite3

2021-11-21 Thread Ian Fisher
Ian Fisher added the comment: See bpo-45858 for a more limited proposal to only deprecate the default converters. -- ___ Python tracker ___

[issue45858] Deprecate default converters in sqlite3

2021-11-21 Thread Ian Fisher
Ian Fisher added the comment: See also bpo-26651 for a related proposal to deprecate the converter/adapter infrastructure entirely. The proposal in this bug is more limited: remove the default converters (though I think the default adapters should stay), but continue to allow users to

[issue45858] Deprecate default converters in sqlite3

2021-11-21 Thread Ian Fisher
New submission from Ian Fisher : Per discussion at https://discuss.python.org/t/fixing-sqlite-timestamp-converter-to-handle-utc-offsets/, the default converters in SQLite3 have several bugs and are probably not worth continuing to maintain, so I propose deprecating them and removing them in

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-21 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27926 pull_request: https://github.com/python/cpython/pull/29688 ___ Python tracker ___

[issue45857] PEP 604 Union syntax does not support forward references

2021-11-21 Thread Eric V. Smith
Eric V. Smith added the comment: Presumably the correct way to do this is: def __init__(self, tmp: "Foo|int"): That is, the entire type hint is a string. -- nosy: +eric.smith ___ Python tracker

[issue33125] Windows 10 ARM64 platform support

2021-11-21 Thread Guido van Rossum
Guido van Rossum added the comment: I could really use 3.10 here as well. -- nosy: +Guido.van.Rossum ___ Python tracker ___ ___

[issue32658] Metacharacter (\) documentation suggestion

2021-11-21 Thread Alex Waygood
Change by Alex Waygood : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45843] Optimizing LOAD_CONST followed by COMPARE_OP (or IS_OP)

2021-11-21 Thread Alex Waygood
Change by Alex Waygood : -- type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32582] chr raises OverflowError

2021-11-21 Thread Alex Waygood
Change by Alex Waygood : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45857] PEP 604 Union syntax does not support forward references

2021-11-21 Thread Alex Waygood
Alex Waygood added the comment: Reproduced on 3.11. The error occurs if a type is on the left-hand-side of the operand, as well as if a type is on the right-hand-side: ``` >>> int | "str" Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for |:

[issue45843] Optimizing LOAD_CONST followed by COMPARE_OP (or IS_OP)

2021-11-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I agree with Serhiy -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45709] 3.11 regression: tracing with-statement on exit from block

2021-11-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue32936] RobotFileParser.parse() should raise an exception when the robots.txt file is invalid

2021-11-21 Thread Irit Katriel
Irit Katriel added the comment: The link to the robots.txt file no longer works, so it's not clear how to reproduce the problem you are seeing. Can you post the complete information on this issue? -- nosy: +iritkatriel status: open -> pending ___

[issue32582] chr raises OverflowError

2021-11-21 Thread Irit Katriel
Irit Katriel added the comment: Still raising OVerflowError on 3.11: >>> print(chr(0x8000)) Traceback (most recent call last): File "", line 1, in OverflowError: Python int too large to convert to C int -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.7

[issue32658] Metacharacter (\) documentation suggestion

2021-11-21 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy, newcomer friendly versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list

[issue45857] Type hint for methods

2021-11-21 Thread 洪明聖
New submission from 洪明聖 : The class methods have a problem compiling when the type refers to the union of itself and others. # tmp.py class Foo: def __init__(self, tmp: "Foo"|int): pass # Error Traceback (most recent call last): File "/Project/Mslc/Grammar/tmp.py", line 1, in

[issue45766] Add direct proportion option to statistics.linear_regression()

2021-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for looking at this and giving it some good thought. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45766] Add direct proportion option to statistics.linear_regression()

2021-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d2b55b07d2b503dcd3b5c0e2753efa835cff8e8f by Raymond Hettinger in branch 'main': bpo-45766: Add direct proportion option to linear_regression(). (#29490) https://github.com/python/cpython/commit/d2b55b07d2b503dcd3b5c0e2753efa835cff8e8f

[issue31486] calling a _json.Encoder object raises a SystemError in case obj.items() returned a tuple

2021-11-21 Thread Irit Katriel
Irit Katriel added the comment: Closing as fixed since it's too late to change 3.6 (if that did not happen yet). -- nosy: +iritkatriel ___ Python tracker ___

[issue31486] calling a _json.Encoder object raises a SystemError in case obj.items() returned a tuple

2021-11-21 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue45804] IDLE - faster shell writing

2021-11-21 Thread wyz23x2
Change by wyz23x2 : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45853] Misspelled _IGNORED_ERROS in Lib/pathlib.py

2021-11-21 Thread Andrei Kulakov
Andrei Kulakov added the comment: Serhiy: I think you're right, it was likely meant to be _IGNORED_ERRNOS; for inlining it, it looks like it wasn't inlined to be more readable, but if we inline it, we should also inline _IGNORED_WINERRORS. I don't mind inlining both. --

[issue45821] Many method parameters in the datetime module are positional-only in the C implementation but positional-or-keyword in the Python implementation

2021-11-21 Thread Alex Waygood
Alex Waygood added the comment: Ref to discussion on typeshed: https://github.com/python/typeshed/pull/6343 -- ___ Python tracker ___

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-21 Thread Christian Heimes
Christian Heimes added the comment: New changeset 2afa1a12669e1812a9fe8130c8f60052c4ad8bf8 by Christian Heimes in branch 'main': bpo-45847: Port codecs and unicodedata to PY_STDLIB_MOD (GH-29685) https://github.com/python/cpython/commit/2afa1a12669e1812a9fe8130c8f60052c4ad8bf8 --

[issue43827] abc conflicts with __init_subclass__

2021-11-21 Thread Oleg Iarygin
Oleg Iarygin added the comment: Paul, PR OP made all changes requested; could you re-review please? -- nosy: +arhadthedev, p-ganssle ___ Python tracker ___

[issue45853] Misspelled _IGNORED_ERROS in Lib/pathlib.py

2021-11-21 Thread Badal Sahani
Badal Sahani added the comment: Corrected Misspelled _IGNORED_ERROS in Lib/pathlib.py to _IGNORED_ERRORS -- hgrepos: +411 keywords: +patch message_count: 3.0 -> 4.0 nosy: +badalsahani nosy_count: 2.0 -> 3.0 pull_requests: +27925 stage: needs patch -> patch review pull_request:

[issue45853] Misspelled _IGNORED_ERROS in Lib/pathlib.py

2021-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: BTW, is not the correct name _IGNORED_ERRNOS? -- ___ Python tracker ___ ___ Python-bugs-list

[issue45853] Misspelled _IGNORED_ERROS in Lib/pathlib.py

2021-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If it is only used in a single place in the module would not be better to inline it? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue42233] GenericAlias does not support union type expressions

2021-11-21 Thread Dávid Nemeskey
Dávid Nemeskey added the comment: @kj Sorry, for some reason, I thought the that issue affected Union as well, but I have just re-tested it and found that it works. -- ___ Python tracker

[issue45709] 3.11 regression: tracing with-statement on exit from block

2021-11-21 Thread Ned Batchelder
Ned Batchelder added the comment: I can confirm that this fixes the problem. -- ___ Python tracker ___ ___ Python-bugs-list

[issue45766] Add direct proportion option to statistics.linear_regression()

2021-11-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Raymond, I'm satisfied that this should be approved. The code looks good to me and in my tests it matches the results from other software. I don't think there is any need to verify that plain OLS regression produces an intercept close to zero. (What

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-21 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27924 pull_request: https://github.com/python/cpython/pull/29685 ___ Python tracker ___

[issue45846] Incorrect name capitalisation in faq/programming

2021-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report and PR JMcB. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45843] Optimizing LOAD_CONST followed by COMPARE_OP (or IS_OP)

2021-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why anybody needs to write 255581293 > 12938373? We try to keep the compiler code maintenable and only implement optimizations which have the largest effect. PR 29639 adds around 200 lines of complex code and I do not see the benefit. --

[issue45839] python3 executable is able to install pandas

2021-11-21 Thread Muhammad Irfan Asghar
Muhammad Irfan Asghar added the comment: Hi I am really astonished and I have tried all tricks, help available on internet. Is there any manual way to do this. i.e open any file and enter information separately so that ssL certificate issue can be solved. or can you tell me, how you

[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-11-21 Thread Christian Heimes
Christian Heimes added the comment: New changeset f201d261cf53365b5769a434ca2bb21a892bd23f by Christian Heimes in branch 'main': bpo-45847: Port grp, spwd, termios, resource, syslog to PY_STDLIB_MOD (GH-29668) https://github.com/python/cpython/commit/f201d261cf53365b5769a434ca2bb21a892bd23f