[issue46054] Incorrect error when parsing non-utf8 files

2021-12-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 4325a766f5f603ef6dfb8c4d5798e5e73cb5efd5 by Pablo Galindo Salgado in branch 'main': bpo-46054: Fix parsing error when parsing non-utf8 characters in source files (GH-30068)

[issue46054] Incorrect error when parsing non-utf8 files

2021-12-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +28290 pull_request: https://github.com/python/cpython/pull/30069 ___ Python tracker

[issue44674] dataclasses should allow frozendict default value

2021-12-11 Thread Gianni Mariani
Gianni Mariani added the comment: Excellent. Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40477] Python Launcher app on macOS 10.15+ fails to run scripts

2021-12-11 Thread Ned Deily
Ned Deily added the comment: >From comments in duplicate Issue46043: "There is definitely something odd going on here. I am seeing different behaviors across different systems: I have at least one macOS 12.0.1 system where the Launcher app seems to work OK with the current 3.10.1 (as long as

[issue46043] Python Launcher Not Opening Files.

2021-12-11 Thread Ned Deily
Ned Deily added the comment: There is definitely something odd going on here. I am seeing different behaviors across different systems: I have at least one macOS 12.0.1 system where the Launcher app seems to work OK with the current 3.10.1 (as long as the Terminal.app is already running)

[issue46055] Speed up binary shifting operators

2021-12-11 Thread Xinhang Xu
New submission from Xinhang Xu : See its PR. - Inspired by [bpo-44946](https://bugs.python.org/issue44946), I found there were no special shortcuts for shifting operation applied to "medium value" long object. So I modified CPython's VM to accelerate my python project where there

[issue46054] Incorrect error when parsing non-utf8 files

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

[issue46054] Incorrect error when parsing non-utf8 files

2021-12-11 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Python3.9 shows: ../3.9/python /bin/ls SyntaxError: Non-UTF-8 code starting with '\xfc' in file /bin/ls on line 2, but no encoding declared; see https://python.org/dev/peps/pep-0263/ for detail while 3.10 shows: python /bin/ls File "/bin/ls",

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-11 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: Oh, don't worry, it's all good! It got fixed and I learned something. -- ___ Python tracker ___

[issue23469] Delete Misc/*.wpr files

2021-12-11 Thread Kumar Aditya
Change by Kumar Aditya : -- keywords: +patch nosy: +kumaraditya303 nosy_count: 4.0 -> 5.0 pull_requests: +28287 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30067 ___ Python tracker

[issue46043] Python Launcher Not Opening Files.

2021-12-11 Thread AegisEmerald545
AegisEmerald545 added the comment: Same here. macOS Monterey with an Apple Silicon SoC and there seems not to be any workaround this time -- nosy: +AegisEmerald545 ___ Python tracker

[issue45977] Unexpected effect of sys.pycache_prefix = ""

2021-12-11 Thread Andrei Kulakov
Andrei Kulakov added the comment: Thanks, I've misunderstood how it works. It makes sense now. Closing as not a bug. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE is a tkinter application and tkinter wraps the tcl/tk GUI framework. Your problem is mostly in the interaction between Windows, your Cyrillic input method, and tk. As a test, run import tkinter as tk r = tk.Tk() t = tk.Text(r) t.pack() Click in the

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 438817fdd5b731d486285d205bed2e78b655c0d6 by Miss Islington (bot) in branch '3.10': bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059) (GH-30064)

[issue10116] Sporadic failures in test_urllibnet

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: The www.example.com url was replaced by a local one in Issue36019, so this seems to complete what remained to do here. -- nosy: +iritkatriel resolution: -> fixed stage: -> resolved status: open -> closed ___

[issue26951] [doc] Unintuitive error when using generator expression in class property

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- title: Unintuitive error when using generator expression in class property -> [doc] Unintuitive error when using generator expression in class property versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6

[issue17840] base64_codec uses assert for runtime validity checks

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20128] Re-enable test_modules_search_builtin() in test_pydoc

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue20123] pydoc.synopsis fails to load binary modules

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: Re-enabling the test is tracked on 20128, so this issue is no longer needed. -- nosy: +iritkatriel resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue22858] unittest.__init__:main shadows unittest.main

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21737] runpy.run_path() fails with frozen __main__ modules

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: The code looks very different from the patch now, is this issue still relevant? -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue26216] run runtktests.py error when test tkinter

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: runtktests.py was deleted here: https://github.com/python/cpython/pull/28929 -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue36207] robotsparser deny all with some rules

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: I restored one non-spam message from the OP that was deleted. Changing to enhancement because this is not a bug (i.e., deviation from documentation). I don't know enough about this to have a view on whether this enhancement request should be accepted.

[issue36207] robotsparser deny all with some rules

2021-12-11 Thread wats0ns
wats0ns added the comment: I can't find a documentation about it, but all of the robots.txt checkers I find behave like this. You can test on this site: http://www.eskimoz.fr/robots.txt, I believe that this is how it's implemented now in most parsers ? -- nosy: +quentin-maire

[issue41222] POpen bufsize=0 ignored with universal_newlines=True

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11 -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue30512] CAN Socket support for NetBSD

2021-12-11 Thread Thomas Klausner
Change by Thomas Klausner : -- pull_requests: +28286 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30066 ___ Python tracker ___

[issue43794] OpenSSL 3.0.0: Handle UNEXPECTED_EOF_WHILE_READING / wrap SSL_OP_IGNORE_UNEXPECTED_EOF

2021-12-11 Thread Alex Grönholm
Alex Grönholm added the comment: OpenSSL 1.1.1 also handled EOFs strictly, but this behavior was generally suppressed in the ssl module through the default setting of suppress_ragged_eofs=True (thus enabling truncation attacks by default). The PR changes the behavior of existing applications

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-11 Thread Alex Waygood
Change by Alex Waygood : -- components: +Documentation type: enhancement -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue46053] NetBSD: ossaudio support incomplete

2021-12-11 Thread Thomas Klausner
Change by Thomas Klausner : -- keywords: +patch pull_requests: +28285 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30065 ___ Python tracker ___

[issue46053] NetBSD: ossaudio support incomplete

2021-12-11 Thread Thomas Klausner
New submission from Thomas Klausner : When compiling Python on NetBSD, the ossaudio module is not enabled. 1. the code tries to export some #define that are not in the public OSS API (but that some other implementations provide) 2. on NetBSD, you need to link against libossaudio when using OSS

[issue46032] functools' singledispatch does not support GenericAlias

2021-12-11 Thread Alex Waygood
Alex Waygood added the comment: The PR looks good to me. I think it's also important that we document that these types aren't supported, as it's not mentioned anywhere at the moment. Related: Issue34498. -- nosy: +uriyyo ___ Python tracker

[issue29221] ABC Recursion Error on isinstance() with less than recursion limit class hierarchy depth

2021-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is still reproducible if increase the depth. In 3.8-3.10 it needs 329 nested classes, in 3.11 -- 496. Seems the limit is sys.getrecursionlimit()//k - 4, where k=4 in 3.7 and older, k=3 in 3.8-3.10, and k=2 in 3.11. It is much better than was initially,

[issue37701] shutil.copyfile raises SpecialFileError for symlink to fifo

2021-12-11 Thread Eryk Sun
Eryk Sun added the comment: > Raising a SpecialFileError would be OK if `follow_symlinks` was False. I expect it to fail if follow_symlinks is True, which is the default value. I expect it to succeed with follow_symlinks=False, which should create a shallow copy of just the symlink,

[issue46052] Ctrl+C, Ctrl+V in IDLE on Windows do not work with Cyrillic keyboard layout

2021-12-11 Thread Anton Bryl
New submission from Anton Bryl : Ctrl+C and Ctrl+V key combinations in IDLE on Windows do not work with Cyrillic keyboard layout. It is unexpected, as well as inconvenient when editing string constants. -- assignee: terry.reedy components: IDLE messages: 408345 nosy: anton.bryl,

[issue9436] test_sysconfig failure: build a 32-bit Python a 64-bit OS

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Oh no, I was about to open mine ;-) Sorry, Carl, I apologize. I hope it was not too disruptive to do the work. I was taking a look and I felt bad that the issue was probably messier than I thought and I didn't want you to have to iterate many times

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

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

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

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

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 59435eea08d30796174552c0ca03c59b41adf8a5 by Pablo Galindo Salgado in branch 'main': bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059) https://github.com/python/cpython/commit/59435eea08d30796174552c0ca03c59b41adf8a5

[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2021-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is due to use functools.wraps(). If __all__ is not defined all non-builtin functions should have correct __module__ to be displayed by pydoc. functools.wraps() assigns __module__, __name__, __qualname__, __doc__ and __annotations__. __module__ should

[issue44475] Dataclass Causes Infinite Recursion when using type of bytes

2021-12-11 Thread Eric V. Smith
Eric V. Smith added the comment: Closing due to lack of feedback. -- resolution: -> not a bug stage: -> resolved status: pending -> closed ___ Python tracker ___

[issue24372] Documentation for ssl.wrap_socket's ssl_version parameter is odd

2021-12-11 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue44053] Can't connect to a server also not showing any type of output

2021-12-11 Thread Eric V. Smith
Eric V. Smith added the comment: Closing due to lack of feedback. -- resolution: -> not a bug stage: -> resolved status: pending -> closed type: -> behavior ___ Python tracker

[issue45650] cgitb does not emit CGI headers when format='text'

2021-12-11 Thread Eric V. Smith
Eric V. Smith added the comment: Having not heard back about a use case for this, I'm going to close it. If you want to move this forward, I suggest proposing it on the python-ideas mailing list. -- resolution: -> rejected stage: -> resolved status: pending -> closed

[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2021-12-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch nosy: +serhiy.storchaka nosy_count: 6.0 -> 7.0 pull_requests: +28283 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30063 ___ Python tracker

[issue46024] Different behaviour with zipfile

2021-12-11 Thread Eric V. Smith
Eric V. Smith added the comment: Actually, printing out: print(repr(path), repr(ZipPath(path))) would be more useful. If I don't hear back in a few days, I'm going to close this issue. -- status: pending -> open ___ Python tracker

[issue14484] missing return in win32_kill?

2021-12-11 Thread Eryk Sun
Eryk Sun added the comment: The details of os.kill() on Windows have been discussed extensively for years in various issues such as bpo-26350, bpo-23948, and bpo-42962. But the problem of the missing return statement is always overwhelmed by discussion of the egregiously bad design of this

[issue14484] missing return in win32_kill?

2021-12-11 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg408336 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14484] missing return in win32_kill?

2021-12-11 Thread Eryk Sun
Eryk Sun added the comment: The details of os.kill() on Windows have been discussed extensively for years in various issues such as bpo-26350, bp-23948, and bp42962. But the problem of the missing return statement is always overwhelmed by discussion of the egregiously bad design of this

[issue44674] dataclasses should allow frozendict default value

2021-12-11 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44674] dataclasses should allow frozendict default value

2021-12-11 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset e029c53e1a408b89a4e3edf30a9b38b094f9c880 by Eric V. Smith in branch 'main': bpo-44674: Use unhashability as a proxy for mutability for default dataclass __init__ arguments. (GH-29867)

[issue42962] Windows: SystemError during os.kill(..., signal.CTRL_C_EVENT)

2021-12-11 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> missing return in win32_kill? ___ Python tracker ___

[issue23948] Deprecate os.kill() on Windows

2021-12-11 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> rejected stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46043] Python Launcher Not Opening Files.

2021-12-11 Thread Nicholas Bond
Nicholas Bond added the comment: I am on macOS 12 and it still doesn't work when Terminal.app is open. -- ___ Python tracker ___

[issue40059] Provide a toml module in the standard library

2021-12-11 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: -yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46005] [doc] replace 'distutils' examples with 'setuptools'

2021-12-11 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28282 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30062 ___ Python tracker ___

[issue46005] [doc] replace 'distutils' examples with 'setuptools'

2021-12-11 Thread Nikita Sobolev
Nikita Sobolev added the comment: Or maybe we should just include https://github.com/python/cpython/blob/main/Doc/distutils/_setuptools_disclaimer.rst as others do? I will send my proposal :) -- nosy: +sobolevn ___ Python tracker

[issue35037] PYLONG_BITS_IN_DIGIT differs between MinGW and MSVC

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue19459] Python does not support the GEORGIAN-PS charset

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.3, Python 3.4 ___ Python tracker ___ ___

[issue29221] ABC Recursion Error on isinstance() with less than recursion limit class hierarchy depth

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue9504] signal.signal/signal.alarm not working as expected

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue34557] When sending binary file to a Microsoft FTP server over FTP TLS, the SSL unwind method hangs

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue9338] argparse optionals with nargs='?', '*' or '+' can't be followed by positionals

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: >>> import argparse >>> parser = argparse.ArgumentParser(prog='PROG') >>> >>> parser.add_argument('--badger', nargs='+') _StoreAction(option_strings=['--badger'], dest='badger', nargs='+', const=None, default=None, type=None, choices=None,

[issue26571] turtle regression in 3.5

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

[issue27257] get_addresses results in traceback with an addrspec with an empty local part.

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce this on 3.11: >>> with open(b'lkml-exception.mail', mode = 'r') as f: ... msg = email.message_from_file(f, policy=email.policy.SMTP) ... Traceback (most recent call last): File "", line 2, in AttributeError: module 'email' has no

[issue37701] shutil.copyfile raises SpecialFileError for symlink to fifo

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue37700] shutil.copyfile does not raise SpecialFileError for socket files

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue27227] argparse fails to parse [] when using choices and nargs='*'

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue46040] asyncio.coroutine documented as removed in 3.10

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

[issue46040] asyncio.coroutine documented as removed in 3.10

2021-12-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 991736697dff693b6c9f8964bb7540081bbf4ddb by Andrew Svetlov in branch '3.10': [3.10] bpo-46040: Fix removal text for @asyncio.coroutine (GH-30061) https://github.com/python/cpython/commit/991736697dff693b6c9f8964bb7540081bbf4ddb --

[issue14484] missing return in win32_kill?

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: That piece of code is still there, the function is now called os_kill_impl. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker

[issue35999] multpirocessing.Process alive after SIGTERM on parent

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: This example is not working for me on 3.11: >>> from multiprocessing import Process >>> from time import sleep >>> from os import getpid >>> >>> def log(daemon_mode): ... while True: ... print('worker %i %s' % (getpid(), daemon_mode)) ...

[issue46040] asyncio.coroutine documented as removed in 3.10

2021-12-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +28281 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30061 ___ Python tracker ___

[issue24010] Add error checks to PyInit__locale()

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: This function now looks like this: PyMODINIT_FUNC PyInit__locale(void) { return PyModuleDef_Init(&_localemodule); } -- nosy: +iritkatriel resolution: -> out of date stage: patch review -> resolved status: open -> closed

[issue24012] Add error checks to PyInit_pyexpat()

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: This is all sorted now: iritkatriel@Irits-MBP cpython % grep "PyModule_AddObject(" Modules/pyexpat.c if (PyModule_AddObject(mod, name, submodule) < 0) { if (PyModule_AddObject(errors_module, "codes", codes_dict) < 0) { if

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-11 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: ah, confused, seems you fixed them both too. will take a closer look! -- ___ Python tracker ___

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-11 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: Oh no, I was about to open mine ;-) https://github.com/python/cpython/compare/main...cfbolz:bpo-46042-syntax-error-range-duplicate-argument?expand=1 Basically equivalent, but I fixed the second bug too (would be very easy to add to yours)

[issue12833] Document the need to pass the prompt to raw_input() with readline

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- stage: needs patch -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Don't worry, turns out it was a bit messier than I thought, so I prepared the PR. If you have some time, it would be great if you can take a quick look. -- ___ Python tracker

[issue28816] [doc] Clarify that zipimport does not invoke import hooks to load custom files from zip.

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28280 status: pending -> open pull_request: https://github.com/python/cpython/pull/30060 ___ Python tracker ___

[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

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

[issue46051] Make @atexit.register work for functions with arguments

2021-12-11 Thread quapka
New submission from quapka : Hi folks! Let me first present an example that motivated this issue. Imagine a script that builds Docker images and later starts them as Docker containers. To avoid having to stop the containers "manually" (in code and potentially forgot) I had an idea to

[issue40059] Provide a toml module in the standard library

2021-12-11 Thread Christian Heimes
Christian Heimes added the comment: I just noticed that tomli has dropped support for Python 3.6. That's a road block for general adoption of the package in the Python ecosystem. Python 3.6 is the default Python interpreter in CentOS 8, C8S, RHEL 8, and Ubuntu 18.04 LTS.

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-11 Thread Saaket Prakash
Saaket Prakash added the comment: But on windows with the python.org installer, the behavior is same for both both a2 and a3. # With a3 installed > py -m venv venv_a3 > venv_a3/Scripts/python -c "import sys,os.path; print(e := > sys._base_executable); print(os.path.exists(e))"

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-11 Thread Saaket Prakash
Saaket Prakash added the comment: I tried the same stuff as nedbat on WSL2, and I see similar change in the path of sys._base_executable (though I get a different "base" path on a3, so the path exists even there). $ ~/.pyenv/versions/3.11.0a2/bin/python -m venv venv_a2 $

[issue46040] asyncio.coroutine documented as removed in 3.10

2021-12-11 Thread Ken Jin
Change by Ken Jin : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34798] pprint ignores the compact parameter for dicts

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: Don't discuss on a closed issue. Create a new one if there is still a problem. -- ___ Python tracker ___

[issue40059] Provide a toml module in the standard library

2021-12-11 Thread Martin Reboredo
Martin Reboredo added the comment: A new python-ideas mail thread was created for this, you can check it out at https://mail.python.org/archives/list/python-id...@python.org/thread/IWJ3I32A4TY6CIVQ6ONPEBPWP4TOV2V7/. -- nosy: +YakoYakoYokuYoku ___

[issue45949] Provide pure-Python implementation of Programs/_freeze_module for cross building

2021-12-11 Thread Christian Heimes
Christian Heimes added the comment: In his code review Eric made a point that the relationship of variables and their impact on normal and cross builds are not obvious. I'm going to introduce new variables for freezing and freezing dependencies. Bonus: Cross builds no longer build

[issue46040] asyncio.coroutine documented as removed in 3.10

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- components: +asyncio nosy: +asvetlov, yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46050] [pathlib] Option so that OSError does not block glob in pathlib library

2021-12-11 Thread matt
New submission from matt : Hi there, ISSUE DESCRIPTION when I browse starting from the linux root ('/') path = pathlib.Path('/') _glob = '**/*' for p in path.glob(_glob): The program stops on my machine because of OSError. File "/usr/lib/python3.8/pathlib.py", line 535, in

[issue45578] Missing tests for the dis module

2021-12-11 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28278 pull_request: https://github.com/python/cpython/pull/30058 ___ Python tracker ___

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-11 Thread Ned Batchelder
Ned Batchelder added the comment: The two venvs seem analogous: $ cat venv_a2/pyvenv.cfg home = /usr/local/bin include-system-site-packages = false version = 3.11.0 $ ls -al venv_a2/bin total 72 drwxr-xr-x 13 nedbatchelder wheel 416 Dec 11 10:43 ./ drwxr-xr-x 6 nedbatchelder wheel

[issue45997] asyncio.Semaphore waiters deque doesn't work

2021-12-11 Thread Yevhenii Hyzyla
Change by Yevhenii Hyzyla : -- versions: +Python 3.11 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23469] Delete Misc/*.wpr files

2021-12-11 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-11 Thread Steve Dower
Steve Dower added the comment: What's the contents of the pyvenv.cfg in these cases? It looks like the first case is definitely wrong, because the base executable should not be in "venv_a2" (that's sys.executable), but I don't know where it should be on your system. --

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-11 Thread Ned Batchelder
Ned Batchelder added the comment: Tox isn't needed, just venv from the stdlib: $ python3.11.0a2 -m venv venv_a2 $ venv_a2/bin/python -c "import sys,os.path; print(e := sys._base_executable); print(os.path.exists(e))" /private/tmp/venv_a2/bin/python True $ python3.11.0a3 -m venv venv_a3 $

[issue46049] ._pth files untested on Linux

2021-12-11 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue18861] Problems with recursive automatic exception chaining

2021-12-11 Thread Irit Katriel
Irit Katriel added the comment: I think this problem is actually simpler than what we've been discussing. First, note that by-and-large our current system works: >>> try: ... raise VE(1) ... except VE as e1: ... try: ... raise VE(2) ... except VE as e2: ... raise VE(3) from e2

  1   2   >