[issue45407] Support buffer protocol for _struct.Struct format argument

2021-10-08 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 9f7a94fd66e05ae040a67e32c397091fe5939ced by Jeong YunWon in branch 'main': bpo-45407: Remove outdated XXX comment from Struct___init___impl (GH-28805) https://github.com/python/cpython/commit/9f7a94fd66e05ae040a67e32c397091fe5939ced --

[issue45407] Support buffer protocol for _struct.Struct format argument

2021-10-08 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45351] List all sockets in TCP echo server using streams

2021-10-08 Thread Olaf van der Spek
Olaf van der Spek added the comment: > server = await asyncio.start_server(handle_echo, '127.0.0.1', ) If 127.0.0.1 is replaced by localhost, the server might listen on ::1 and 127.0.0.1 but only one address will be printed, which is confusing (and wrong IMO). So the output of the

[issue45382] platform() is not able to detect windows 11

2021-10-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 08.10.2021 02:15, Eryk Sun wrote: > >> use the build number as reference instead of the major.minor > > It could check the (major, minor, build) tuple, which allows reporting 10.1+ > as "post11" and minimizes hard coding of build numbers. For

[issue20692] Tutorial and FAQ: how to call a method on an int

2021-10-08 Thread za
Change by za : -- nosy: +za3 nosy_count: 10.0 -> 11.0 pull_requests: +27136 pull_request: https://github.com/python/cpython/pull/28818 ___ Python tracker ___

[issue45406] inspect.getouterframes() tracebacks when $CWD does not exists

2021-10-08 Thread Raúl Cumplido
Raúl Cumplido added the comment: I have reproduced on python3.10 and validated this is also happening for other python versions: # PYTHON 3.9 $ mkdir /tmp/bar $ cd /tmp/bar $ rmdir /tmp/bar $ python3.9 Python 3.9.5 (default, May 19 2021, 11:32:47) [GCC 9.3.0] on linux Type "help",

[issue45410] python -m test -jN: write stderr in stdout to get messages in order

2021-10-08 Thread STINNER Victor
New submission from STINNER Victor : In buildbot logs, when a worker process is run, two pipes are created for stdout and stderr. The problem is that using two pipes produce an output which is hard to read. Pseudo output: --- stdout time 1 stdout time 2 stdout time 3 stderr time 1 stderr

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-10-08 Thread Ma Lin
Ma Lin added the comment: Today I tested with msvc2022-preview, `__forceinline` attribute will not hang the build. 64-bit PGO builds: 28d28e0~1,vc2022 : baseline 28d28e0~1+F,vc2022 : 1.02x slower <1> 28d28e0,vc2022 : 1.03x slower <2> 28d28e0+F,vc2022 : 1.03x slower

[issue45411] Add Mimetypes for Subtitle Files

2021-10-08 Thread Josephine Stolle
New submission from Josephine Stolle : Since Python is used for webdevelopment, it would be very beneficial for developers to have subtitle files as default mimetypes. -- components: Library (Lib) messages: 403468 nosy: Josephine-Marie priority: normal pull_requests: 27137 severity:

[issue45262] crash if asyncio is used before and after re-initialization if using python embedded in an application

2021-10-08 Thread STINNER Victor
STINNER Victor added the comment: Is Matthias Reichl's fix enough to use asyncio in a subinterpreter? -- ___ Python tracker ___

[issue45410] python -m test -jN: write stderr in stdout to get messages in order

2021-10-08 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27138 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28819 ___ Python tracker ___

[issue45382] platform() is not able to detect windows 11

2021-10-08 Thread STINNER Victor
STINNER Victor added the comment: macOS has a similar issue in the platform module. Previously, platform gave the darwin kernel version, whereas most users only know macOS versions. See bpo-35344. Even if Microsoft decided to internally stay at 10.x, IMO users really expect "Windows 11"

[issue45351] asyncio doc: List all sockets in TCP echo server using streams

2021-10-08 Thread STINNER Victor
STINNER Victor added the comment: I agree that all socket addresses must be listed. But I would prefer to write a single line. Maybe something like: addresses = ', '.join(sock.getsockname() for sock in server.sockets) print('Serving on {addresses}') Do you want to propose a PR to enhance

[issue45262] crash if asyncio is used before and after re-initialization if using python embedded in an application

2021-10-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6846d6712a0894f8e1a91716c11dd79f42864216 by Miss Islington (bot) in branch '3.10': bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796) (GH-28816) https://github.com/python/cpython/commit/6846d6712a0894f8e1a91716c11dd79f42864216

[issue45103] IDLE: make configdialog font page survive font failures

2021-10-08 Thread E. Paine
E. Paine added the comment: > Did the FiraCode font work for you or merely not work without crashing? It worked fine (other than a few missing features such as context-aware punctuation). The steps I did to test were: - Load IDLE - Enter config dialog - Set IDLE to use Fira Code font - Use

[issue45411] Add Mimetypes for Subtitle Files

2021-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What standard specifies these MIME types? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue45413] Add install scheme for virtual environments

2021-10-08 Thread Filipe Laíns
Change by Filipe Laíns : -- title: Add install scheme for virtual environment -> Add install scheme for virtual environments ___ Python tracker ___

[issue45413] Add install scheme for virtual environment

2021-10-08 Thread Filipe Laíns
New submission from Filipe Laíns : Python 3.10 introduced sysconfig._get_preferred_schemes[1], a mechanism to allow downstream distributors to overwrite the default install scheme. This is done to support downstream modifications where distributors change the installation layout (eg. different

[issue45413] Add install scheme for virtual environments

2021-10-08 Thread Miro Hrončok
Miro Hrončok added the comment: The existing install schemes contain values for all different kinds of OSes, somehow named according to them. If we introduce a single "virtual"/"venv" scheme, it would need to have different contents on different OSes (e.g. Windows vs POSIX). I don't think

[issue45414] pathlib.Path.parents negative indexing is wrong for absolute paths

2021-10-08 Thread Josh Rosenberg
New submission from Josh Rosenberg : At least on PosixPath (not currently able to try on Windows to check WindowsPath, but from a quick code check I think it'll behave the same way), the negative indexing added in #21041 is implemented incorrectly for absolute paths. Passing either -1 or -2

[issue45357] Idle does not check user config for extention configuration

2021-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current configuration design is that user .idlerc config-x.cfg files contain changes from the idlelib config-x.def files. A proposal to change this is an enhancement request rather than a bugfix request. It will make the logic more complex, increase

[issue21041] pathlib.PurePath.parents rejects negative indexes

2021-10-08 Thread Josh Rosenberg
Josh Rosenberg added the comment: Negative indexing is broken for absolute paths, see #45414. -- nosy: +josh.r ___ Python tracker ___

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And I have doubts about Py_ADJUST_ERANGE2(). I think that it is used incorrectly. See issue44970. -- nosy: +serhiy.storchaka ___ Python tracker

[issue45414] pathlib.Path.parents negative indexing is wrong for absolute paths

2021-10-08 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10716] Modernize pydoc to use better HTML and separate CSS

2021-10-08 Thread Víctor Terrón
Change by Víctor Terrón : -- nosy: -vterron ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45404] Undefined I_* macros of stropts.h when building Python 3.10 on Ubuntu: fail to build the fcntl module

2021-10-08 Thread STINNER Victor
Change by STINNER Victor : -- title: Undefined I_* macros when building 3.10 on Ubuntu? -> Undefined I_* macros of stropts.h when building Python 3.10 on Ubuntu: fail to build the fcntl module ___ Python tracker

[issue14757] INCA: Inline Caching meets Quickening in Python 3.3

2021-10-08 Thread Guido van Rossum
Guido van Rossum added the comment: See GitHub.com/faster-cpython/ideas/issues/93 for a belated follow-up. -- nosy: +gvanrossum ___ Python tracker ___

[issue45404] Undefined I_* macros of stropts.h when building Python 3.10 on Ubuntu: fail to build the fcntl module

2021-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is not defined on my Ubuntu 20.04 either. But stropts.h could be installed by some Ubuntu package not installed on my computer, or came from some non-standard source. On my computer: $ dlocate stropts.h manpages-posix-dev:

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-08 Thread STINNER Victor
New submission from STINNER Victor : I propose to remove the following macros from the Python C API: * Py_OVERFLOWED() * _Py_SET_EDOM_FOR_NAN() * Py_SET_ERRNO_ON_MATH_ERROR() * Py_SET_ERANGE_IF_OVERFLOW() * Py_ADJUST_ERANGE1() * Py_ADJUST_ERANGE2() Only Py_ADJUST_ERANGE1() and

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-08 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +27139 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28820 ___ Python tracker ___

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-08 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-08 Thread STINNER Victor
STINNER Victor added the comment: Py_ADJUST_ERANGE1() is used by float ** float. Py_ADJUST_ERANGE2() is used by complex ** complex. -- ___ Python tracker ___

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-08 Thread STINNER Victor
STINNER Victor added the comment: I add Mark Dickinson and Tim Peters who were involved in changes removing usage of these macros. -- nosy: +tim.peters ___ Python tracker

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-08 Thread STINNER Victor
STINNER Victor added the comment: Py_OVERFLOWED() documentation says that the function is not reliable since C99. Python is using C99 since Python 3.6. /* Py_OVERFLOWED(X) * Return 1 iff a libm function overflowed. Set errno to 0 before calling * a libm function, and invoke this macro

[issue45411] Add Mimetypes for Subtitle Files

2021-10-08 Thread Julien Palard
Julien Palard added the comment: Those two looks legit to me. -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14757] INCA: Inline Caching meets Quickening in Python 3.3

2021-10-08 Thread Guido van Rossum
Change by Guido van Rossum : -- Removed message: https://bugs.python.org/msg403481 ___ Python tracker ___ ___ Python-bugs-list

[issue14757] INCA: Inline Caching meets Quickening in Python 3.3

2021-10-08 Thread Guido van Rossum
Guido van Rossum added the comment: Followup: https://github.com/faster-cpython/ideas/issues/93 New paper: https://arxiv.org/abs/2109.02958 -- ___ Python tracker ___

[issue45357] Idle does not check user config for extention configuration

2021-10-08 Thread CoolCat467
CoolCat467 added the comment: Yes, changing settings on ZzDummy works correctly, but this is because an entry for it exists in the default config file. The problem is when if you attempt to add a new extension through the user config file. When IDLE is looking for extensions to load, it

[issue45401] logging TimedRotatingFileHandler must not rename devices like /dev/null

2021-10-08 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +27140 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28822 ___ Python tracker ___

[issue45412] [C API] Remove Py_OVERFLOWED(), Py_SET_ERRNO_ON_MATH_ERROR(), Py_ADJUST_ERANGE1()

2021-10-08 Thread STINNER Victor
STINNER Victor added the comment: Py_SET_ERRNO_ON_MATH_ERROR() documentation also says that it is not reliable: /* Py_SET_ERRNO_ON_MATH_ERROR(x) * If a libm function did not set errno, but it looks like the result * overflowed or not-a-number, set errno to ERANGE or EDOM. Set errno * to 0

[issue45404] Undefined I_* macros when building 3.10 on Ubuntu?

2021-10-08 Thread STINNER Victor
STINNER Victor added the comment: On my Fedora 34, the HAVE_STROPTS_H macro is not defined in pyconfig.h: /* Define to 1 if you have the header file. */ /* #undef HAVE_STROPTS_H */ I confirm that I cannot find this file: $ find /usr/include/ -name stropts.h $ find

[issue45410] python -m test -jN: write stderr in stdout to get messages in order

2021-10-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset b108db63e02797a795840152b82cab9792fd3ed2 by Victor Stinner in branch 'main': bpo-45410: libregrtest -jN writes stderr into stdout (GH-28819) https://github.com/python/cpython/commit/b108db63e02797a795840152b82cab9792fd3ed2 --

[issue45415] Assert oparg < INSTR_OFFSET()

2021-10-08 Thread Mark Shannon
Mark Shannon added the comment: Nothing to do with it being Windows, or computed gotos. I forgot to bump magic number again :( -- assignee: -> Mark.Shannon ___ Python tracker

[issue45413] Add install scheme for virtual environments

2021-10-08 Thread Filipe Laíns
Filipe Laíns added the comment: Yes, we could have several schemes, but I think having only one is more sensible. The implementation would be fairly easy. We would just copy the "nt" scheme if on Windows, otherwise "posix_prefix". -- ___ Python

[issue45415] Assert oparg < INSTR_OFFSET()

2021-10-08 Thread Steve Dower
Steve Dower added the comment: *facepalm* on myself, for not even thinking of that. Indeed, clearing all my .pyc files fixes it. I think I got distracted by the error coming from one of the newly frozen modules, except because we're in tree it shouldn't be using the frozen one, so it is

[issue45417] Enum creation non-linear in the number of values

2021-10-08 Thread Oliver Margetts
New submission from Oliver Margetts : Creating large enums takes a significant amount of time. Moreover this appears to be nonlinear in the number of entries in the enum. Locally, importing a single python file and taking this to the extreme: 1000 entries - 0.058s 1 entries - 4.327s

[issue44359] test_ftplib fails as "env changes" if a socket operation times out in a thread: TimeoutError is not catched

2021-10-08 Thread STINNER Victor
STINNER Victor added the comment: Another error on AMD64 Fedora Rawhide LTO + PGO 3.x: https://buildbot.python.org/all/#/builders/79/builds/870 0:01:10 load avg: 4.48 [236/427/1] test_ftplib failed (env changed) -- running: (...) Warning -- Uncaught thread exception: Exception Exception in

[issue45411] Add Mimetypes for Subtitle Files

2021-10-08 Thread Josephine Stolle
Josephine Stolle added the comment: text/vtt is has IANA registration https://www.iana.org/assignments/media-types/text/vtt and .srt is plain/text https://www.matroska.org/technical/subtitles.html#srt-subtitles -- ___ Python tracker

[issue45414] pathlib.Path.parents negative indexing is wrong for absolute paths

2021-10-08 Thread Josh Rosenberg
Josh Rosenberg added the comment: "We'll definitely want to make sure that we're careful about bad indices ... since it would be easy to get weird behavior where too-large negative indexes start 'wrapping around'" When I noticed the problem, I originally thought "Hey, the test for a negative

[issue45415] Assert oparg < INSTR_OFFSET()

2021-10-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I bet you can trigger this on Linux compiling with '--without-computed-gotos'. Maybe we need a buildbot in that mode -- ___ Python tracker

[issue45416] "loop argument must agree with lock" instantiating asyncio.Condition

2021-10-08 Thread Simon Willison
Simon Willison added the comment: It looks like the relevant test is here: https://github.com/python/cpython/blob/a1092f62492a3fcd6195bea94eccf8d5a300acb1/Lib/test/test_asyncio/test_locks.py#L722-L727 def test_explicit_lock(self): lock = asyncio.Lock() cond =

[issue45353] sys.modules: dictionary changed size during iteration

2021-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Do you have an example for which "for m in sys.modules: print(m, end=' ')" fails? In particular, is there code in the stdlib that fails iterating over sys.modules? If not the latter, this should be closed as 'Not a bug'. Note that questions about using

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

2021-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Randolf, what specific behaviors do you consider to be bugs that should be fixed. What would a test of the the changed behavior look like? This should perhaps be closed as a duplicate of #44904. Randolf, please check and say what you thing. --

[issue45416] "loop argument must agree with lock" instantiating asyncio.Condition

2021-10-08 Thread Łukasz Langa
Łukasz Langa added the comment: Issue confirmed. The problem is that `Condition.__init__` compares its own loop with Lock's internal `_loop` attribute. That attribute is set to None unless the lock waited to be acquired. uriyyo, Andrew, Yury, since it's pretty likely that Lock objects will

[issue45414] pathlib.Path.parents negative indexing is wrong for absolute paths

2021-10-08 Thread Josh Rosenberg
Josh Rosenberg added the comment: On the subject of sleep-deprived and/or sloppy, just realized: return self.__getitem__(len(self) + idx) should really just be: idx += len(self) no need to recurse. -- ___ Python tracker

[issue45340] Lazily create dictionaries for plain Python objects

2021-10-08 Thread Josh Rosenberg
Josh Rosenberg added the comment: Hmm... Key-sharing dictionaries were accepted largely without question because they didn't harm code that broke them (said code gained nothing, but lost nothing either), and provided a significant benefit. Specifically: 1. They imposed no penalty on code

[issue45406] inspect.getouterframes() tracebacks when $CWD does not exists

2021-10-08 Thread Irit Katriel
Irit Katriel added the comment: Thanks for the report, crash typically refers to segfaults rather than exceptions being raised. Updated versions. -- nosy: +iritkatriel type: crash -> behavior versions: +Python 3.11, Python 3.9 ___ Python tracker

[issue45406] inspect.getouterframes() tracebacks when $CWD does not exists

2021-10-08 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +27141 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28824 ___ Python tracker ___

[issue45415] Assert oparg < INSTR_OFFSET()

2021-10-08 Thread Steve Dower
New submission from Steve Dower : encodings.search_function is triggering this assertion at Python/ceval.c#L4055: TARGET(JUMP_ABSOLUTE) { PREDICTED(JUMP_ABSOLUTE); assert(oparg < INSTR_OFFSET());<<< It seems to be saying that absolute jumps should only go

[issue45416] "loop argument must agree with lock" instantiating asyncio.Condition

2021-10-08 Thread Simon Willison
Simon Willison added the comment: I ran across this issue while trying to use the https://pypi.org/project/janus/ locking library with Python 3.10 - see my issue on their tracker here: https://github.com/aio-libs/janus/issues/358 -- ___ Python

[issue45416] "loop argument must agree with lock" instantiating asyncio.Condition

2021-10-08 Thread Simon Willison
New submission from Simon Willison : In Python 3.10 it is not possible to instantiate an asyncio.Condition that wraps an asyncio.Lock without raising a "loop argument must agree with lock" exception. This code raises that exception: asyncio.Condition(asyncio.Lock()) This worked in

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

2021-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: On current 3.9, 3.10, 3.11, on Windows running in IDLE, I see computing class property .. computing class property .. computing class property .. computing class property .. computing class property .. Help ... -- versions: +Python 3.11 -Python 3.10,

[issue45415] Assert oparg < INSTR_OFFSET()

2021-10-08 Thread Steve Dower
Steve Dower added the comment: I can't get it to go with that option (with or without -DDEBUG, which I *think* is needed to get assert to work?), and I also don't see anything obvious in the changeset I linked. So I guess there's some other assumption that isn't holding? --

[issue45378] Can't find "map" with search on docs.python.org

2021-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The iterator classes are not identified as such because being a class instead of a function, such as a generator function, is a CPython implementation detail, not a language requirement. Searching for filter seems as bad -- builtin filter is about the 60th

[issue45414] pathlib.Path.parents negative indexing is wrong for absolute paths

2021-10-08 Thread Paul Ganssle
Paul Ganssle added the comment: This is a great bug report, but for anyone else who gets a bit lost in the details, here's the core of the issue: >>> p = Path("/1/2") >>> q = Path("1/2") >>> p.parents[-1] # This is correct PosixPath('/') >>> q.parents[-1] PosixPath('.') >>> p.parents[-2]

[issue45340] Lazily create dictionaries for plain Python objects

2021-10-08 Thread Josh Rosenberg
Josh Rosenberg added the comment: Hmm... And there's one other issue (that wouldn't affect people until they actually start worrying about memory overhead). Right now, if you want to determine the overhead of an instance, the options are: 1. Has __dict__: sys.getsizeof(obj) +

[issue45415] Assert oparg < INSTR_OFFSET()

2021-10-08 Thread Steve Dower
Steve Dower added the comment: +Pablo because of blocker. +Mark because it seems like f6eafe18c004 is probably the cause -- nosy: +Mark.Shannon, pablogsal ___ Python tracker

[issue45415] Assert oparg < INSTR_OFFSET()

2021-10-08 Thread Steve Dower
Steve Dower added the comment: Also +Victor, because I think we should switch back to debug builds in CI in order to catch failed assertions before they get merged. Since you're the most strongly against this, I wanted to give you a chance to argue against it (or suggest a better approach

[issue45352] Move documentation for typed generic forms of standard collections to collections.abc

2021-10-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> needs patch versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45365] Make concurrent.futures.Future usable outside of executors

2021-10-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> test needed title: concurrent.futures.Future should be suitable for use outside of executors -> Make concurrent.futures.Future usable outside of executors versions: +Python 3.11 -Python 3.10 ___ Python

[issue45405] configure fails on macOS with non-Apple clang version 13 which implements --print-multiarch

2021-10-08 Thread Ned Deily
Ned Deily added the comment: OK, I've had a chance to look at this issue and I now understand what you were describing. So, yes, it would be good to fix the test in configure so that it does work with a newer clang that does implement the --print-multiarch command line option. FTR, this is

[issue45399] Remove hostflags from PySSLContext

2021-10-08 Thread komugi
komugi added the comment: Hi, I would like to work on it. I'll send the PR tomorrow. -- nosy: +komugi ___ Python tracker ___ ___

[issue45415] Assert oparg < INSTR_OFFSET()

2021-10-08 Thread Ken Jin
Ken Jin added the comment: > I think we should switch back to debug builds in CI in order to catch failed > assertions before they get merged. I'm not Victor, but +1. I've been bitten by release builds not catching things, see issue44348 for example where I advocated for switching back to

[issue45260] Implement superinstruction UNPACK_SEQUENCE_ST

2021-10-08 Thread zcpara
Change by zcpara : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38659] enum classes cause slow startup time

2021-10-08 Thread Armin Rigo
Armin Rigo added the comment: Nobody seemed to mention it so I might as well: defining a regular Enum class takes an amount of time that is clearly quadratic in the number of attributes. That means that the problem is not Python-versus-C or small speed-ups or adding secret APIs to do the