[issue45451] IDLE - modify text frame and widget borders

2021-12-01 Thread primexx
primexx added the comment: for what it's worth, Notepad++ is highly configurable. Here's what mine looks like with borders set to 0 and some sidebar items disabled. Even though it is the same classic theme, it looks a lot better than default. There's the more substantial point to note that

[issue45959] Teach pprint about dict views

2021-12-01 Thread Raymond Hettinger
New submission from Raymond Hettinger : The pprint() code has a number of type or protocol specific handlers but doesn't have one for dict views. So, we don't get pretty printing for the key(), values(), and items(): d = {i:i for i in range(100)} pprint(d) # This is handled

[issue45958] Document typo in unpack_from()

2021-12-01 Thread Hian-Kun Tenn
Hian-Kun Tenn added the comment: Hi, I didn't know that and feel sorry to bother you with the non-bug "issue." Thank you for the quick and thoughtful reply. :-) Hiankun On Thu, Dec 2, 2021 at 12:23 PM Zachary Ware wrote: > > Zachary Ware added the comment: > > The `/` denotes that

[issue45958] Document typo in unpack_from()

2021-12-01 Thread Zachary Ware
Zachary Ware added the comment: The `/` denotes that `format` is a positional-only argument; you cannot make a call like `struct.unpack_from(format=my_format, buffer=my_buffer)`, it must be `struct.unpack_from(my_format, buffer=my_buffer)` or `struct.unpack_from(my_format, my_buffer)`. The

[issue45956] Add scanf regular expressions to re

2021-12-01 Thread Maxwell Bernstein
Change by Maxwell Bernstein : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45958] Document typo in unpack_from()

2021-12-01 Thread Hian-Kun Tenn
New submission from Hian-Kun Tenn : In the document of "struct" (https://docs.python.org/3.9/library/struct.html#struct.unpack_from), there's typo in it. The document read `struct.unpack_from(format, /, buffer, offset=0)` and I believe it should be `struct.unpack_from(format, buffer,

[issue45956] Add scanf regular expressions to re

2021-12-01 Thread Eric V. Smith
Eric V. Smith added the comment: Maxwell: thank you for your contribution. I agree that these don’t belong in the re module. I think a personal library or something on PyPI (logically equivalent to more-itertools) would be more appropriate. I suggest closing this as rejected. --

[issue10048] urllib.request documentation confusing

2021-12-01 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10048] urllib.request documentation confusing

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: Ah we already have issue40673 for removal. -- status: pending -> open ___ Python tracker ___ ___

[issue10048] urllib.request documentation confusing

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: FancyURLopener, URLopener etc are deprecated since 3.3. Should we close this issue or repurpose it for removal? -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue38760] Document for urllib.error.HTTPError.headers Should Specify What Version

2021-12-01 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23183] timeit CLI best of 3: undocumented output format

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: The patch needs to be converted to a GitHub PR. -- keywords: +easy -patch nosy: +iritkatriel ___ Python tracker ___

[issue23183] timeit CLI best of 3: undocumented output format

2021-12-01 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 tracker ___

[issue12706] timeout sentinel in ftplib and poplib documentation

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

[issue25238] Version added of context parameter for xmlrpc.client.ServerProxy incorrect

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: Both 3.4 and 3.5 are out of maintenance now, so this is no longer relevant. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue37235] urljoin behavior unclear/not following RFC 3986

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: See also 25403, 40594. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40594] urljoin since 3.5 incorrectly filters out double slashes

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: See also 25403, 37235. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25403] urllib.parse.urljoin is broken in python 3.5

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: See also 37235, 40594. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35535] time.strptime() unexpectedly gives the same result for %U and %W for 2018

2021-12-01 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue25952] code_context not available in exec()

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

[issue35201] Recursive '**' matches non-existent directories.

2021-12-01 Thread Irit Katriel
Change by Irit Katriel : -- resolution: not a bug -> versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue45933] Illegal Instrution (Core Dumped)

2021-12-01 Thread Tom E
Tom E added the comment: its defos fine because ive tried it without the CFLAGS and same error -- ___ Python tracker ___ ___

[issue25933] Unhandled exception (TypeError) with ftplib in function retrbinary/retrlines causes inoperable behavior without crashing

2021-12-01 Thread Irit Katriel
Change by Irit Katriel : -- keywords: -needs review, patch type: behavior -> enhancement versions: +Python 3.11 -Python 3.5, Python 3.6 ___ Python tracker ___

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

2021-12-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: In Python 3.10, classmethod() added a __wrapped__ attribute. Presumably, any use case for implicit chaining can now be accomplished in an explicit and controlled manner. -- ___ Python tracker

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-12-01 Thread Christian Heimes
Christian Heimes added the comment: New changeset 309110f37cdfc78d160ed08ae8faa6f6160ba87e by Christian Heimes in branch 'main': bpo-40280: Emscripten with_ensurepip=no, second attempt (GH-29884) https://github.com/python/cpython/commit/309110f37cdfc78d160ed08ae8faa6f6160ba87e --

[issue28375] cgi.py spam in Apache server logs

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: Thanks Sebastian, I'll close this and if someone still sees this problem they will report it. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue45956] Add scanf regular expressions to re

2021-12-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: The scanf() translation table primarily serves as a way to learn regex syntax for people who only know scanf syntax. It would defeat the educational purpose to immortalize the translation as fixed constants. For the most part, people are better off

[issue40748] Tutorial 4.7 More on Defining Functions missing screen prompts

2021-12-01 Thread Irit Katriel
Change by Irit Katriel : -- type: -> behavior versions: +Python 3.11 -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue45941] help("modules") segfaults on 3.11, MacOS

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: Christian - that's what it was. I uninstalled cffi and now it works. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue45957] _tkinter.TclError: expected boolean value but got ""

2021-12-01 Thread Ali Amin-Nejad
New submission from Ali Amin-Nejad : On macOS, the following minimal example: ``` import tkinter as tk root = tk.Tk() button = tk.Button(root, text="Exit", command=root.destroy) button.pack() root.wm_overrideredirect(True) root.mainloop() ``` yields the following stack trace: ``` Traceback

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

2021-12-01 Thread Stephen Rosen
Stephen Rosen added the comment: Probably >90% of the use-cases for chaining classmethod are a read-only class property. It's important enough that some tools (e.g. sphinx) even have special-cased support for classmethod(property(...)). Perhaps the general case of

[issue45954] Rename PyConfig.no_debug_ranges to PyConfig.code_debug_ranges

2021-12-01 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +28112 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29886 ___ Python tracker ___

[issue45889] pathlib: Path.match does not work on paths

2021-12-01 Thread Nick Papior
Nick Papior added the comment: Ok, I can accept a no-fix ;) I'll close this. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___

[issue45956] Add scanf regular expressions to re

2021-12-01 Thread Maxwell Bernstein
Change by Maxwell Bernstein : -- keywords: +patch pull_requests: +28111 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29885 ___ Python tracker

[issue45956] Add scanf regular expressions to re

2021-12-01 Thread Maxwell Bernstein
New submission from Maxwell Bernstein : The documentation for the `re` module suggests several regular expressions for use in simulating `scanf()`. Provide these directly in the `re` module. -- components: Library (Lib) messages: 407491 nosy: tekknolagi priority: normal severity:

[issue45954] Rename PyConfig.no_debug_ranges to PyConfig.code_debug_ranges

2021-12-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Makes sense! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-12-01 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28110 pull_request: https://github.com/python/cpython/pull/29884 ___ Python tracker ___

[issue45953] Statically allocate interpreter states as much as possible.

2021-12-01 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42130] AsyncIO's wait_for can hide cancellation in a rare race condition

2021-12-01 Thread James Ferguson
James Ferguson added the comment: Echoing nmatravolgyi's comments - I got here after hitting this bug and I too am amazed it's been around so long and hasn't been addressed. It makes cancellation in my application very unreliable, and the reason I need well-controlled cancellation

[issue45924] Incorrect traceback when future's exception is raised multiple times

2021-12-01 Thread Vishal Pandey
Vishal Pandey added the comment: thanks, It was my mistake, bug reproduced. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11352] Update cgi module doc

2021-12-01 Thread Vishal Pandey
Vishal Pandey added the comment: i am working on it. will submit a PR soon. -- nosy: +vishalpandeyvip ___ Python tracker ___ ___

[issue45924] Incorrect traceback when future's exception is raised multiple times

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: Vishal, your output shows you’re running 3.8, not 3.10. traceback.print_exception() used to require 3 parameters, now it can make do with just one. See the docs for the details. -- ___ Python tracker

[issue45924] Incorrect traceback when future's exception is raised multiple times

2021-12-01 Thread Vishal Pandey
Vishal Pandey added the comment: hey Irit, Is this issue platform-dependent? I am on ubuntu 20.04, and running python 3.10. I am not getting the same error that you have mentioned below. This is what I am getting. ### hello ... Traceback (most recent call

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-12-01 Thread Christian Heimes
Christian Heimes added the comment: New changeset 9deb83468c56c7484645e6e3a6d0183cd6a0afd7 by Christian Heimes in branch 'main': bpo-40280: Emscripten defaults to --with-ensurepip=no (GH-29873) https://github.com/python/cpython/commit/9deb83468c56c7484645e6e3a6d0183cd6a0afd7 --

[issue45953] Statically allocate interpreter states as much as possible.

2021-12-01 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +28109 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29883 ___ Python tracker

[issue30533] missing feature in inspect module: getmembers_static

2021-12-01 Thread Dino Viehland
Change by Dino Viehland : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue30533] missing feature in inspect module: getmembers_static

2021-12-01 Thread Dino Viehland
Dino Viehland added the comment: New changeset c2bb29ce9ae4adb6a8123285ad3585907cd4cc73 by Weipeng Hong in branch 'main': bpo-30533: Add docs for `inspect.getmembers_static` (#29874) https://github.com/python/cpython/commit/c2bb29ce9ae4adb6a8123285ad3585907cd4cc73 --

[issue45955] Calling read() on HTTPError may cause KeyError in tempfile

2021-12-01 Thread Matt Martz
New submission from Matt Martz : HTTPError may not be fully initialized in some scenarios leading to an inconsistent interface. This is documented in code at: https://github.com/python/cpython/blob/55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0/Lib/urllib/error.py#L45-L50 Unfortunately the way

[issue45941] help("modules") segfaults on 3.11, MacOS

2021-12-01 Thread Christian Heimes
Christian Heimes added the comment: The easiest way is to remove and rebuild 3rd party software. -- ___ Python tracker ___ ___

[issue45941] help("modules") segfaults on 3.11, MacOS

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: How do I check that? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45941] help("modules") segfaults on 3.11, MacOS

2021-12-01 Thread Christian Heimes
Christian Heimes added the comment: This looks like an issue with 3rd party software cffi. Are you using a fresh build of cffi? The internal ABI of an alpha build changes very often. -- nosy: +christian.heimes ___ Python tracker

[issue45954] Rename PyConfig.no_debug_ranges to PyConfig.code_debug_ranges

2021-12-01 Thread STINNER Victor
New submission from STINNER Victor : In the PyConfig, I tried to avoid double negative, so "no_debug_ranges" should be "debug_ranges". I propose to rename it to "code_debug_ranges" to make it more specific. If there is an agreement on the member name, I can write a PR. --

[issue45941] help("modules") segfaults on 3.11, MacOS

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x00010015fd26 python.exe`_PyObject_GenericGetAttrWithDict(obj=0x00013feb7a50, name=0x000100fe9350, dict=0x, suppress=0)

[issue45953] Statically allocate interpreter states as much as possible.

2021-12-01 Thread Eric Snow
New submission from Eric Snow : Currently we allocate each new PyInterpreterState in PyInterpreterState_New(). Furthermore, PyInterpreterState is full of pointers which are almost all allocated on the heap during runtime init. We can statically allocate (and initialize?) most of what goes

[issue45951] Debugger cannot be resolved

2021-12-01 Thread Ben
Change by Ben : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue45952] Tools/c-analyzer is out-of-date.

2021-12-01 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45952] Tools/c-analyzer is out-of-date.

2021-12-01 Thread Eric Snow
Eric Snow added the comment: New changeset ee94aa0850191712e6adfc1f4a9df08ec3240195 by Eric Snow in branch 'main': bpo-45952: Get the C analyzer tool working again. (gh-29882) https://github.com/python/cpython/commit/ee94aa0850191712e6adfc1f4a9df08ec3240195 --

[issue45952] Tools/c-analyzer is out-of-date.

2021-12-01 Thread Eric Snow
New submission from Eric Snow : Some relatively recent changes broke "./python Tools/c-analyzer/c-analyzer.py ...". Also, Tools/c-analyzer/TODO is a bit out of date. -- assignee: eric.snow components: Demos and Tools messages: 407474 nosy: eric.snow priority: normal pull_requests:

[issue45951] Debugger cannot be resolved

2021-12-01 Thread Ben
New submission from Ben : First, I am not a programmer by any stretch of the imagination, and I am just trying to get this error solved. I attempted to highlight and comment out a section of code, maybe 20 lines, and the program froze, greyed out, and gave me a spinning wheel mouse. I

[issue31196] Blank line inconsistency between InteractiveConsole and standard interpreter

2021-12-01 Thread Irit Katriel
Change by Irit Katriel : -- versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11455] issue a warning when populating a CPython type dict with non-string keys

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. >>> A = type("A", (object,), {42: "abc"}) >>> dir(A()) Traceback (most recent call last): File "", line 1, in TypeError: '<' not supported between instances of 'int' and 'str' -- nosy: +iritkatriel type: behavior -> enhancement

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-01 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +eric.snow, gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2021-12-01 Thread mike mcleod
mike mcleod added the comment: Minor fix after test. -- Added file: https://bugs.python.org/file50467/2.html ___ Python tracker ___

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2021-12-01 Thread mike mcleod
mike mcleod added the comment: I have made the changes as indicated in the diff files. I have tested against the latest from my GitHub copy. The result is: ./python -m test -j0 == CPython 3.11.0a2+ (heads/main:3a91617590, Dec 1 2021, 15:11:41) [GCC 11.2.0] ==

[issue45889] pathlib: Path.match does not work on paths

2021-12-01 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Éric and Ronald. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list

[issue9226] erroneous behavior when creating classes inside a closure

2021-12-01 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.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue44637] Quoting issue on header Reply-To and other address headers

2021-12-01 Thread Julien Castiaux
Change by Julien Castiaux : -- keywords: +patch pull_requests: +28107 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29881 ___ Python tracker ___

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-01 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +28106 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29859 ___ Python tracker

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-01 Thread Christian Heimes
Change by Christian Heimes : -- assignee: -> christian.heimes dependencies: +"Deep-freeze": skip the marshal step by generating C code, Stop using bootstrap_python for deep-freeze in UNIX builds ___ Python tracker

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-01 Thread Christian Heimes
New submission from Christian Heimes : bpo-45696 introduced a _bootstrap_python interpreter, which was used to create frozen and deepfrozen module files. bpo-45873 dropped the _bootstrap_python interpreter again. Instead Python used an existing Python installation to bootstrap the build.

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

2021-12-01 Thread Eric Snow
Eric Snow added the comment: Ideally we would not have two scripts that do the same thing. -- ___ Python tracker ___ ___

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

2021-12-01 Thread Eric Snow
Eric Snow added the comment: IIRC, Programs/_freeze_module.c was originally a C implementation of the basic functionality in Tools/freeze/freeze.py. -- nosy: +eric.snow ___ Python tracker

[issue31196] Blank line inconsistency between InteractiveConsole and standard interpreter

2021-12-01 Thread Malcolm Smith
Change by Malcolm Smith : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31196] Blank line inconsistency between InteractiveConsole and standard interpreter

2021-12-01 Thread Malcolm Smith
Malcolm Smith added the comment: I think it's unlikely that anyone is depending on the ability to enter blank lines in a "try" block in an InteractiveConsole, especially when blank lines terminate the input in almost every other context. Conversely, everyone who's ever entered a multi-line

[issue45476] [C API] PEP 674: Disallow using macros as l-value

2021-12-01 Thread STINNER Victor
STINNER Victor added the comment: Oops, sorry, pycurl-7.44.1 and PyGObject-3.42.0 are not affected, they only define Py_SET_TYPE() macro for backward compatibility. So right now, only 14 projects are affected. -- ___ Python tracker

[issue45896] Conflicting statements in docs about default support for asyncio subprocesses on Windows

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

[issue45896] Conflicting statements in docs about default support for asyncio subprocesses on Windows

2021-12-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset e99c5e039b380199843db4e06974883d9f3ddad0 by Miss Islington (bot) in branch '3.10': bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857) (GH-29877) https://github.com/python/cpython/commit/e99c5e039b380199843db4e06974883d9f3ddad0

[issue45933] Illegal Instrution (Core Dumped)

2021-12-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: Is arch corei7-avx compatible with your CPU? One way to test is to leave out -mtune=... and -march=... when building python. -- nosy: +ronaldoussoren ___ Python tracker

[issue45896] Conflicting statements in docs about default support for asyncio subprocesses on Windows

2021-12-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4203a5d1918ca874e305806b787e3c8c6fc35e3e by Miss Islington (bot) in branch '3.9': bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857) (GH-29878) https://github.com/python/cpython/commit/4203a5d1918ca874e305806b787e3c8c6fc35e3e

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

2021-12-01 Thread Christian Heimes
New submission from Christian Heimes : As of today 3.11-dev requires Programs/_freeze_module to compile Python code to byte code. The dependency on an extra and special tool makes cross building more complicated. The _freeze_module is trivial and can be easily implemented in pure Python

[issue45607] Make it possible to enrich an exception's error message

2021-12-01 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28105 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29880 ___ Python tracker ___

[issue45946] RecursionError when annotating a field with the same name as a field

2021-12-01 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45948] Unexpected instantiation behavior for xml.etree.ElementTree.XMLParser(target=None)

2021-12-01 Thread Robert Steed
New submission from Robert Steed : Expected instantiation of xml.etree.ElementTree.XMLParser(target=None) to create a parser using default TreeBuilder -- components: XML files: XMLParserFail.py messages: 407458 nosy: rdsteed priority: normal severity: normal status: open title:

[issue45947] Place dict (and values) pointers at a fixed (negative) offset from the base of the object.

2021-12-01 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +28104 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29879 ___ Python tracker ___

[issue45947] Place dict (and values) pointers at a fixed (negative) offset from the base of the object.

2021-12-01 Thread Mark Shannon
New submission from Mark Shannon : To get to the dict (or values array) of an object, we currently need 3 dependent loads. By placing the dict at a fixed offset, this can be reduced to one. What was `obj[obj->type->dictoffset]` becomes `obj[FIXED_OFFSET]` See

[issue45476] [C API] PEP 674: Disallow using macros as l-value

2021-12-01 Thread STINNER Victor
STINNER Victor added the comment: I updated my ./search_pypi_top_5000.py script to ignore files generated by Cython. On PyPI top 5000, I only found 16 projects impacted by the PEP 674 (16/5000 = 0.3%): * datatable-1.0.0 * frozendict-2.1.1 * guppy3-3.1.2 * M2Crypto-0.38.0 *

[issue45941] help("modules") segfaults on 3.11, MacOS

2021-12-01 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I'm unable to reproduce on macOS 11.6 as well (head at 49444fb807ecb396462c8e5f547eeb5c6bc5d4de). -- ___ Python tracker ___

[issue31196] Blank line inconsistency between InteractiveConsole and standard interpreter

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: > any difference in behavior is potentially annoying and could throw off > somebody's flow. So I think the InteractiveConsole should be changed to match > the native interpreter. That would make InteractiveConsole more restrictive and break code that is

[issue39529] Deprecate get_event_loop()

2021-12-01 Thread Min RK
Min RK added the comment: Oops, I interpreted "not deprecated by oversight" as the opposite of what you meant. Sorry! All clear, now. -- ___ Python tracker ___

[issue45941] help("modules") segfaults on 3.11, MacOS

2021-12-01 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Also unable to reproduce with HEAD at 8a45ca542a65ea27e7acaa44a4c833a27830e796. Perhaps it is related to your build/dev environment? -- ___ Python tracker

[issue45941] help("modules") segfaults on 3.11, MacOS

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: I'm using MacOS 11.6. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45941] help("modules") segfaults on 3.11, MacOS

2021-12-01 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Also unable to reproduce with HEAD at 49444fb807ecb396462c8e5f547eeb5c6bc5d4de. -- ___ Python tracker ___

[issue45896] Conflicting statements in docs about default support for asyncio subprocesses on Windows

2021-12-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +28103 pull_request: https://github.com/python/cpython/pull/29878 ___ Python tracker ___

[issue45896] Conflicting statements in docs about default support for asyncio subprocesses on Windows

2021-12-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +28102 pull_request: https://github.com/python/cpython/pull/29877 ___ Python tracker

[issue45896] Conflicting statements in docs about default support for asyncio subprocesses on Windows

2021-12-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset f27bef30438d2f07f19de91e021f34b77ccc4b20 by Rob in branch 'main': bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857) https://github.com/python/cpython/commit/f27bef30438d2f07f19de91e021f34b77ccc4b20 --

[issue39529] Deprecate get_event_loop()

2021-12-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ages ago, get_event_loop() did not return the current running loop if called from async function context; it returned a loop instance registered with previous set_event_loop(...) call instead. Later we fixed get_event_loop() behavior in 3.5.4 IIRC and added

[issue45941] help("modules") segfaults on 3.11, MacOS

2021-12-01 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Unable to reproduce on macOS 12 with latest 3.11 official build, and my most recent dev build (HEAD at b394af13f69c1a2ac0e7d32dabf6d86443606ab2). -- nosy: +erlendaasland ___ Python tracker

[issue31196] Blank line inconsistency between InteractiveConsole and standard interpreter

2021-12-01 Thread Malcolm Smith
Malcolm Smith added the comment: I agree that both behaviors are reasonable. However, the InteractiveConsole documentation says it should "closely emulate the behavior of the interactive Python interpreter". Since people are familiar with the native interpreter, any difference in behavior

[issue45753] Further speed up Python-to-Python calls.

2021-12-01 Thread Mark Shannon
Mark Shannon added the comment: New changeset 49444fb807ecb396462c8e5f547eeb5c6bc5d4de by Mark Shannon in branch 'main': bpo-45753: Interpreter internal tweaks (GH-29575) https://github.com/python/cpython/commit/49444fb807ecb396462c8e5f547eeb5c6bc5d4de --

[issue45944] Avoid calling isatty() for most open() calls

2021-12-01 Thread Eryk Sun
Eryk Sun added the comment: > make it returning False without invoking a system call if the file > size is non-zero it will eliminate the need to expose _size. I suggest using the file type instead of the size. There's no reason to call isatty() if it's not an S_IFCHR file. This will avoid

  1   2   >