[Python-Dev] Re: Retiring this mailing list ?

2023-11-13 Thread Guido van Rossum
But how would Tim Peters keep himself entertained in his retirement? Seriously, let’s kill it. I thought it was already deprecated. --Guido (mobile) On Mon, Nov 13, 2023 at 02:19 Marc-Andre Lemburg wrote: > Hello everyone, > > for quite a while now, core discussions have moved to Discourse

[Python-Dev] Re: Small lament...

2023-04-03 Thread Guido van Rossum
.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/Q62W2Q6R6XMX57WK2CUGEENHMT3C3REF/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns:

[Python-Dev] Re: A proposal to modify `None` so that it hashes to a constant

2022-11-28 Thread Guido van Rossum
[Oscar Benjamin] > (If you think that there might be a > performance penalty then you haven't understood the suggestion!) Then I don't understand the question, and I will refrain from participating further in this discussion. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him

[Python-Dev] Re: A proposal to modify `None` so that it hashes to a constant

2022-11-28 Thread Guido van Rossum
Nah, `__prepare__` very much predates stable dicts and that problem was solved differently. On Mon, Nov 28, 2022 at 4:46 PM Greg Ewing wrote: > On 29/11/22 12:51 pm, Guido van Rossum wrote: > > "Sets weren't meant to be deterministic" sounds like a remnant of > > the

[Python-Dev] Re: A proposal to modify `None` so that it hashes to a constant

2022-11-28 Thread Guido van Rossum
__ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org

[Python-Dev] Re: NEWLINE sentinel behavior in CPython's PEG grammar

2022-10-26 Thread Guido van Rossum
end an email to python-dev-le...@python.org >>> > https://mail.python.org/mailman3/lists/python-dev.python.org/ >>> > Message archived at >>> https://mail.python.org/archives/list/python-dev@python.org/message/NMCMEDMEBKATYKRNZLX2NDGFOB5UHQ5A/ >>> > Cod

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2022-10-19 Thread Guido van Rossum
> Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.o

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-19 Thread Guido van Rossum
e-aware > operators can make code easier to read (and write). > > Best regards, > Philipp > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.

[Python-Dev] Re: glob's new include_hidden parameter

2022-09-12 Thread Guido van Rossum
> To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/QVZJAHFOHTNKNE72X7RGICBEROMSCG5R/ > Code of Conduct: http://python.or

[Python-Dev] Re: Presenting PEP 695: Type Parameter Syntax

2022-07-14 Thread Guido van Rossum
on.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/2LEHJKQGRHCHGQUFXUU3DTYKKDISNPFN/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (py

[Python-Dev] Re: Exceptions and tracebacks and frames, oh my!

2022-07-14 Thread Guido van Rossum
gt; Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/IRPWIRAZ3K5Y2F466ZISGSF5JBF657CB/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://fem

[Python-Dev] Re: Structural pattern matching and mangling private names

2022-07-12 Thread Guido van Rossum
to the class appearing in the call. Using the called class for mangling would set a dangerous precedent. So there's your answer -- the current behavior is as it should be. I'll look into the patch with that in mind. On Fri, Jul 1, 2022 at 10:54 AM wrote: > Guido van Rossum wrote: > > If you

[Python-Dev] Presenting PEP 695: Type Parameter Syntax

2022-07-11 Thread Guido van Rossum
s.python.org/pep-0695/ -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message ar

[Python-Dev] Re: Structural pattern matching and mangling private names

2022-06-30 Thread Guido van Rossum
.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/3BALIBTV3ATAEC6G5ZJKAFBASZG4B5AP/ > Code of Conduct: http://p

[Python-Dev] Re: Behavior of `asyncio.gather` when one of submitted tasks raises a `KeyboardInterrupt`.

2022-06-09 Thread Guido van Rossum
print(f'__main__ {e}') > > ``` > > When one coroutine `[sub_task()]`, result is: > > main_task(), be: CancelledError() > > __main__ > > When two coroutines `[sub_task(), sleep(0)]` , result is: > > main_task(), be: KeyboardInterrupt() > >

[Python-Dev] Re: Behavior of `asyncio.gather` when one of submitted tasks raises a `KeyboardInterrupt`.

2022-06-07 Thread Guido van Rossum
ssage/5KVY7SSDTYWOAOCXVSXNBHCSDEJ5JPP7/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/> __

[Python-Dev] Re: PEP 689 – Unstable C API tier (was: Semi-stable C API tier)

2022-05-30 Thread Guido van Rossum
://mail.python.org/archives/list/python-dev@python.org/message/Q5JU5YKGX2U2UAAILDH45S5UGN6GLVXT/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/

[Python-Dev] Re: [OT] Re: Raw strings ending with a backslash

2022-05-28 Thread Guido van Rossum
On Sat, May 28, 2022 at 12:11 MRAB Names in Python are case-sensitive, yet the string prefixes are > case-/insensitive/. > > Why? IIRC we copied this from C for numeric suffixes (0l and 0L are the same; also hex digits and presumably 0XA == 0xa) and then copied that for string prefixes without

[Python-Dev] Re: Issue: 92359 - Python 3.10 IDLE 64-bit doesn't open any files names code (code.py, code.pyw) - found a partial fix but looking for input

2022-05-13 Thread Guido van Rossum
on-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/NKMXPIQPISOPOV6OGASKXV4DEDZUH355/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --G

[Python-Dev] Re: Starting a new thread

2022-05-13 Thread Guido van Rossum
n-dev@python.org/message/RBIAWP2J3NTYMLIS3W6CKX44G5QIBXAU/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-

[Python-Dev] Re: Starting a new thread

2022-05-12 Thread Guido van Rossum
It’s definitely too early for a PR, so if you already have one (I didn’t see one linked to this thread) please close it. Then once we’ve bikeshedded the right good idea you can start a new PR. On Thu, May 12, 2022 at 12:21 Barney Stratford wrote: > It seems like the consensus is that this is a

[Python-Dev] Re: Migration plan for the distutils removal in Python 3.12

2022-05-10 Thread Guido van Rossum
be send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/LGF4BJMN3H7L6QFTZTDBMOA2GPZQFHC6/ > Code of Conduct: http://python.org/psf/codeo

[Python-Dev] Re: __dunder__ = None

2022-05-01 Thread Guido van Rossum
Non should behave as closely as possible to it not being defined at all. So return NotImplemented. On Sun, May 1, 2022 at 09:53 Patrick Reader <_...@pxeger.com> wrote: > On 01/05/2022 06:20, Serhiy Storchaka wrote: > > The question is how to interpret value None: > > > > * Always raise TypeError

[Python-Dev] Re: Proto-PEP part 4: The wonderful third option

2022-04-29 Thread Guido van Rossum
wonderful), but the final word is up to the SC. (*) Mostly fixing the edge cases of the "eval __code__ with tweaked globals" hack that Carl came up with previously, see https://github.com/larryhastings/co_annotations/issues/2#issuecomment-1092432875 . -- --Guido van Rossum (python.org/~

[Python-Dev] Re: PEP 689 – Semi-stable C API tier

2022-04-29 Thread Guido van Rossum
ivate”/“internal” and “unstable” seems reasonable. > I think picking "semi-stable" would be giving in to the OCD nerd in all of us. :-) While perhaps technically less precise, "unstable" is the catchy name with the right association. (And yes, we should keep it stable within

[Python-Dev] Re: Proto-PEP part 4: The wonderful third option

2022-04-26 Thread Guido van Rossum
I am traveling and have no keyboard right now, but it looks like this thread is confusing the slots that a type gives to its *instances* and extra slots in the type object itself. Only the latter are a problem. I also would like to hear more about the problem this is trying to solve, when th

[Python-Dev] Re: Python multithreading without the GIL

2022-04-25 Thread Guido van Rossum
om the nogil work. (To be sure, Christian Heimes seems to have made progress with introducing mimalloc, which is one of Sam's dependencies, but AFAIK that work hasn't been finished yet.) -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)*

[Python-Dev] Re: Updating inspect APIs

2022-04-17 Thread Guido van Rossum
on.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/RTGG637WWPOWUHUF6TRJYUSBYYSVUPRA/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is

[Python-Dev] Re: Do you ever use ceval.c's LLTRACE feature?

2022-04-14 Thread Guido van Rossum
s://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/DELHX3N5PCZDWIK2DLU5JDG6JREQ42II/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronoun

[Python-Dev] Re: Proposal to deprecate mailcap

2022-04-14 Thread Guido van Rossum
ssue because it only passes a filename from mkstemp() to > mailcap, and hopefully mkstemp filenames don't have shell metacharacters in > them. However, if we deprecate mailcap mitmproxy will have to change their > code. > > El jue, 14 abr 2022 a las 13:33, Guido van Rossum () &g

[Python-Dev] Re: Proposal to deprecate mailcap

2022-04-14 Thread Guido van Rossum
On Thu, Apr 14, 2022 at 12:04 Jelle Zijlstra wrote: > > > El jue, 14 abr 2022 a las 11:47, Brett Cannon () > escribió: > >> Do you know why this module wasn't included in PEP 594? > Probably because it’s not a top level module — it’s inside the email package. Should we do another audit of old

[Python-Dev] Re: Lazy Imports [was: Declarative imports]

2022-04-11 Thread Guido van Rossum
;> multicore performance, ecosystem alignment (e.g. SREs being more >> comfortable in Go), etc. >> > > Itamar. > > [1] > https://github.com/facebookincubator/cinder/blob/cinder/3.8/CinderDoc/lazy_imports.rst#lazy-imports > ___ &g

[Python-Dev] Re: PEP 687 – Isolating modules in the standard library

2022-04-11 Thread Guido van Rossum
l.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/B3HYQIE4Z5WBJCC3FUZJZHXLM32I4BZA/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him

[Python-Dev] Re: Declarative imports

2022-04-10 Thread Guido van Rossum
On Sun, Apr 10, 2022 at 2:31 AM Daniel Pope wrote: > On Fri, 8 Apr 2022, 17:44 Guido van Rossum, wrote: > >> The interesting idea here seems to make "lazy imports" easier to >> implement by making them explicit in the code. So far, most lazy import >> fra

[Python-Dev] Re: Declarative imports

2022-04-08 Thread Guido van Rossum
python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/UX6EJHLJNNLMFPWVPF5ANYHQSHDZK7SV/ >

[Python-Dev] Re: Descriptions in unittest and avoiding confusion

2022-04-04 Thread Guido van Rossum
teve > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/lis

[Python-Dev] Re: C API: Move PEP 523 "Adding a frame evaluation API to CPython" private C API to the internal C API

2022-04-03 Thread Guido van Rossum
+1 to Nick's analysis and proposal. I had been mulling over my own reply but this just about covers it. On Sun, Apr 3, 2022 at 6:29 AM Nick Coghlan wrote: > On Fri, 1 Apr 2022, 6:47 pm Victor Stinner, wrote: > >> On Wed, Mar 30, 2022 at 5:42 PM Guido van Rossum >>

[Python-Dev] Re: code.replace() and Python 3.11 exception table

2022-04-01 Thread Guido van Rossum
By beta 1 things should be stable (modulo bug fixes). But documentation may lag. If you can’t figure something out by reading the code by all means ask! On Fri, Apr 1, 2022 at 11:40 Matthieu Dartiailh wrote: > As the maintainer of bytecode (thanks to Victor), I expect that adding > support for

[Python-Dev] Re: code.replace() and Python 3.11 exception table

2022-04-01 Thread Guido van Rossum
.py#L398 > Yes, that constructor is not considered stable. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/> ___

[Python-Dev] Re: Enhancing generic type documentation in the standard library

2022-03-30 Thread Guido van Rossum
To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/NW3SRUA2H3KNZBD4CICXY5QF2YWELUV5/ > Code of Conduct: http://python.org/

[Python-Dev] Re: C API: Move PEP 523 "Adding a frame evaluation API to CPython" private C API to the internal C API

2022-03-30 Thread Guido van Rossum
___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/ar

[Python-Dev] Re: C API: Move PEP 523 "Adding a frame evaluation API to CPython" private C API to the internal C API

2022-03-30 Thread Guido van Rossum
shall not end until my death. > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > http

[Python-Dev] Re: walrus operator and expression

2022-03-28 Thread Guido van Rossum
message/3NONJDUTXANBTINCOZITLHOAUDMJ3H66/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/

[Python-Dev] Re: import * and __future__ imports

2022-03-28 Thread Guido van Rossum
On Mon, Mar 28, 2022 at 8:52 AM Irit Katriel wrote: > > > On Mon, Mar 28, 2022 at 4:44 PM Guido van Rossum wrote: > >> >> "Future" imports are special to the parser, and they may also set a flag >> for the runtime to alter its behavior, but they ar

[Python-Dev] Re: is __self__ an implementation detail

2022-03-28 Thread Guido van Rossum
ed at > https://mail.python.org/archives/list/python-dev@python.org/message/3TAF3LR35HRRE6LD7XQ7O4BXPNLVXFVX/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/

[Python-Dev] Re: import * and __future__ imports

2022-03-28 Thread Guido van Rossum
ut they are intentionally not treated specially by code generation, so they are still properly imported. However the presence of the imported thing is not used by the runtime to determine its behavior; those flags are stored elsewhere guided by the code generator. I don't think there's anything

[Python-Dev] Re: Changing unittest verbose output.

2022-03-27 Thread Guido van Rossum
an3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/RJOWQWMMUMBJAZZTWXWEAJSRDVARA2XL/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is

[Python-Dev] Re: Changing unittest verbose output.

2022-03-27 Thread Guido van Rossum
-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/BTF4LZWVTHNHBJVNHXNWSPB2WS4324TO/ > Code of Conduct: http://python.org/psf/codeofconduct/ >

[Python-Dev] Re: Restrict the type of __slots__

2022-03-18 Thread Guido van Rossum
On Fri, Mar 18, 2022 at 9:40 AM Paul Bryan wrote: > On Fri, 2022-03-18 at 09:35 -0700, Guido van Rossum wrote: > > The motivation has been explained already. > > > In this thread? > Yes, Eric's message. > What on earth did your test do that got a speedup by using s

[Python-Dev] Re: Restrict the type of __slots__

2022-03-18 Thread Guido van Rossum
The motivation has been explained already. What on earth did your test do that got a speedup by using sets? Was it repeatedly checking whether a variable was in a slot? The other thing this does is rearrange the order in which slots appear from run to run (since set order is affected by hash

[Python-Dev] Re: PEP 684: A Per-Interpreter GIL

2022-03-11 Thread Guido van Rossum
That sounds like a horrible idea. The GIL should never be held during an I/O operation. On Fri, Mar 11, 2022 at 19:00 Jim J. Jewett wrote: > > Is ``allow_all_extensions`` the best name for the context manager? > > Nope. I'm pretty sure that "parallel processing via multiple simultaneous >

[Python-Dev] Re: RFC on PEP 655: Required[] and NotRequired[] for TypedDict

2022-03-07 Thread Guido van Rossum
ail to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/YT23XQSNUJF3S4HO5MWGOH3GR5GP4Y7Y/ > Code of Conduct: http://python.org/psf/codeofconduct/ >

[Python-Dev] Re: Make __mro_entries__ mandatory for non-types

2022-03-05 Thread Guido van Rossum
To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/E2IWXPFY32R6JS22XXFORMNQTI4S6AOK/ > Code of Conduct: http://pyt

[Python-Dev] Re: Make __mro_entries__ mandatory for non-types

2022-03-05 Thread Guido van Rossum
somewhat poorly chosen, since it really is a hook to override the list of explicit bases (i.e., (B, C) for class A(B, C)), not the MRO (which would be at least (A, B, C, object), and more if A and/or B have other superclasses). -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(

[Python-Dev] Re: build cpython on M1 Pro mac

2022-03-02 Thread Guido van Rossum
VS Code team > about > > what their plans are for fixing this > Thank for the solutions. > The specific component to look for is pydevd -- https://github.com/fabioz/PyDev.Debugger/. I recommend filing an issue there. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why

[Python-Dev] Re: build cpython on M1 Pro mac

2022-03-01 Thread Guido van Rossum
hives/list/python-dev@python.org/message/DISAPV26T2U6CHHSGXTD5EWX54CPMB6Z/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun

[Python-Dev] Re: PEP 683: "Immortal Objects, Using a Fixed Refcount"

2022-02-16 Thread Guido van Rossum
I). Those packages will necessarily use INCREF/DECREF macros that don't check for the immortality bit. Yes, it will break COW, but nevertheless we have to support the Stable ABI, and INCREF/DECREF are in the Stable ABI. If you want COW you will have to compile such packages from source. --

[Python-Dev] Re: PEP-657 and co_positions (was: Please update Cython *before* introcuding C API incompatible changes in Python)

2022-02-09 Thread Guido van Rossum
python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/P7SMK5ZGFAHZMLUKW4WZNNX47CONXIQS/ > Code of Con

[Python-Dev] Re: Moving away from _Py_IDENTIFIER().

2022-02-07 Thread Guido van Rossum
time on that alternative and just focus on the two other horses still in the race: immortal objects or what you have now. On Mon, Feb 7, 2022 at 5:41 PM Eric Snow wrote: > On Fri, Feb 4, 2022 at 8:25 PM Eric Snow > wrote: > > On Fri, Feb 4, 2022, 16:03 Guido van Rossum wrote: &

[Python-Dev] Re: Replace debug runtime checks in release mode with assertions in debug mode

2022-02-07 Thread Guido van Rossum
./configure or PCbuild/build.bat.) On Mon, Feb 7, 2022 at 8:45 AM Victor Stinner wrote: > On Mon, Feb 7, 2022 at 5:38 PM Guido van Rossum wrote: > > ISTM this is better discussed on a case-by-case basis than as a blanket > policy change. (The latter could end up causing a flood of triv

[Python-Dev] Re: Replace debug runtime checks in release mode with assertions in debug mode

2022-02-07 Thread Guido van Rossum
, but I > abandoned my idea: > https://bugs.python.org/issue37406 > > Victor > -- > Night gathers, and now my watch begins. It shall not end until my death. > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send

[Python-Dev] Re: Moving away from _Py_IDENTIFIER().

2022-02-07 Thread Guido van Rossum
Yes, please build it; I can't quite follow what you're getting at (probably since I don't know the Windows APIs). On Mon, Feb 7, 2022 at 4:39 AM Steve Dower wrote: > On 2/5/2022 4:09 PM, Guido van Rossum wrote: > > On Sat, Feb 5, 2022 at 5:18 AM Steve Dower > <mailto:steve.d

[Python-Dev] Re: Moving away from _Py_IDENTIFIER().

2022-02-05 Thread Guido van Rossum
very cheaply passed into the interpreter (and yes, the caller has > to manage the lifetime, but that's pretty easy). > What's the use case for that, that isn't covered by PyUnicode_FromString()? -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <h

[Python-Dev] Re: PyPy on PySide6 is there: PyPy with a Gui

2022-02-04 Thread Guido van Rossum
ling:^) tis...@stackless.com > Software Consulting : http://www.stackless.com/ > Strandstraße 37 : https://github.com/PySide > 24217 Schönberg : GPG key -> 0xFB7BEE0E > phone +49 173 24 18 776 fax +49 (30) 700143-0023 > -- --Guido va

[Python-Dev] Re: Slowly bend the C API towards the limited API to get a stable ABI for everyone

2022-02-04 Thread Guido van Rossum
That was solved quite a while ago, with the PyCode_NewEmpty() API. Sadly Cython doesn't call it (or at least not always), because it takes a C string which is turned into a unicode object, and Cython already has the unicode object in hand. I don't want to proliferate APIs. -- --Guido van Rossum (py

[Python-Dev] Re: Moving away from _Py_IDENTIFIER().

2022-02-04 Thread Guido van Rossum
15-00/?p=93675 > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.py

[Python-Dev] Re: Moving away from _Py_IDENTIFIER().

2022-02-03 Thread Guido van Rossum
tial); That's convenient since it means they don't have to pass module state around. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/> ___

[Python-Dev] Re: Slowly bend the C API towards the limited API to get a stable ABI for everyone

2022-02-02 Thread Guido van Rossum
I'm sorry, I was overwhelmed and didn't find the time until now to answer this. A lot was already said about this, so I'll just briefly explain below (inline). On Sat, Jan 29, 2022 at 2:38 AM Victor Stinner wrote: > On Fri, Jan 28, 2022 at 6:28 PM Guido van Rossum wrote: > > I

[Python-Dev] Re: Please update Cython *before* introcuding C API incompatible changes in Python

2022-02-01 Thread Guido van Rossum
On Tue, Feb 1, 2022 at 5:52 PM Stefan Behnel wrote: > Guido van Rossum schrieb am 02.02.22 um 01:43: > Yes. HPy is certainly far from ready for anything real, but even for the > Limited API, it's still unclear whether it's actually complete enough to > cover Cython's needs. Basica

[Python-Dev] Re: Please update Cython *before* introcuding C API incompatible changes in Python

2022-02-01 Thread Guido van Rossum
On Tue, Feb 1, 2022 at 4:14 PM Stefan Behnel wrote: > Guido van Rossum schrieb am 02.02.22 um 00:21: > > I wonder if a solution during CPython's rocky alpha release cycle could > be > > to default (either in Cython or in projects using it) to the "not quite > as > &g

[Python-Dev] Re: Please update Cython *before* introcuding C API incompatible changes in Python

2022-02-01 Thread Guido van Rossum
s/list/python-dev@python.org/message/Q3IQUKU35GNCUXBCK55JZ3B42LSVS2M2/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-

[Python-Dev] Re: Please update Cython *before* introcuding C API incompatible changes in Python

2022-02-01 Thread Guido van Rossum
l beta 1 that's fine, but then their input on the design of CPython changes is necessarily much more limited. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-prono

[Python-Dev] Re: Increase of Spammy PRs and PR reviews

2022-01-31 Thread Guido van Rossum
ython.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/JZBQ2UYTXDCHADW4LEPGPE5SFLRHW5E3/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum

[Python-Dev] Re: Increase of Spammy PRs and PR reviews

2022-01-31 Thread Guido van Rossum
nse, making your "contribution > activity overview" look nicer—I wasn't sure if "points" was an actual thing > or not, so maybe I'm speaking out of turn. Mine shows 70% of my actions are > code review, then issues, commits, and PRs are 10% each. > > On Mon, Jan 31, 2

[Python-Dev] Re: Increase of Spammy PRs and PR reviews

2022-01-31 Thread Guido van Rossum
...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/R3YU44XPWLBUWVLSYTTTWJZCSRRCB67F/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van R

[Python-Dev] Re: Slowly bend the C API towards the limited API to get a stable ABI for everyone

2022-01-28 Thread Guido van Rossum
o python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/ABFHYMUHQXKMFSBGYMFHKTGHBYJN3XJF/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --

[Python-Dev] Re: Request to revert unittest and configparser incompatible changes in Python 3.11

2022-01-18 Thread Guido van Rossum
_ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/mess

[Python-Dev] Re: Is anyone using 15-bit PyLong digits (PYLONG_BITS_IN_DIGIT=15)?

2022-01-16 Thread Guido van Rossum
ual Studio; but a command prompt in the repo can do it using `PCbuild\build.bat --pgo`. Just be patient with it. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-

[Python-Dev] Re: Is anyone using 15-bit PyLong digits (PYLONG_BITS_IN_DIGIT=15)?

2022-01-16 Thread Guido van Rossum
n by other small scalars. > > -- > Mark > > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ >

[Python-Dev] Re: PEP 646 (Variadic Generics): final call for comments

2022-01-13 Thread Guido van Rossum
e two positional arguments are given separately. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/> ___ Python

[Python-Dev] Re: PEP 646 (Variadic Generics): final call for comments

2022-01-13 Thread Guido van Rossum
gt; https://gist.github.com/mrahtz/cc86c29538de1d4a80a2e8958ae71c5a Am I > doing something wrong? > > Also, by that logic, in this situation *all* the type arguments would be > assigned to Ts1, and Ts2 would always end up being empty. That seems a bit > weird but...*shrug* it also see

[Python-Dev] Re: PEP 646 (Variadic Generics): final call for comments

2022-01-12 Thread Guido van Rossum
ny other programs that would run fine.) > And after reading the PEP again, I'm unclear on some details in the > Aliases section. Could you please clarify these examples for me? > > SplitDataset = Tuple[Array[*Ts], Array[*Ts]] > SplitDataset[Height] # Valid? What would this be eq

[Python-Dev] Re: Minor inconvenience: f-string not recognized as docstring

2022-01-11 Thread Guido van Rossum
org/archives/list/python-dev@python.org/message/UALMEMQ4QW7W4HE2PIBARWYBKFWJZFB4/ > > > Code of Conduct: http://python.org/psf/codeofconduct/ > > > > ___ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an ema

[Python-Dev] Re: PEP 679 – Allow parentheses in assert statements

2022-01-10 Thread Guido van Rossum
Note that Pablo explicitly requested all feedback to Discourse. On Mon, Jan 10, 2022 at 06:15 Batuhan Taskaya wrote: > > While it can indeed, make otherwise stable projects with "nop"s assert > sudden failing, that should be a trivial fix for any non-unmaintained > project. > > Agreed. This

[Python-Dev] Re: Is anyone using 15-bit PyLong digits (PYLONG_BITS_IN_DIGIT=15)?

2022-01-04 Thread Guido van Rossum
>> https://mail.python.org/archives/list/python-dev@python.org/message/F53IZRZPNAKB4DUPOVYWGMQDC4DAWLTF/ >> Code of Conduct: http://python.org/psf/codeofconduct/ >> > ___ > Python-Dev mailing list -- python-dev@python.org > To uns

[Python-Dev] Re: Function Prototypes

2021-12-23 Thread Guido van Rossum
: > On Thu, Dec 23, 2021 at 05:09:18PM -0800, Guido van Rossum wrote: > > > > def func(params) > > > > > > makes a Callable type object? > > > > > > > No, no, no. That syntax has already been discredited. > > It has? Where? Have I

[Python-Dev] Re: Function Prototypes

2021-12-23 Thread Guido van Rossum
, 2021 at 17:37 Barry Warsaw wrote: > On Dec 23, 2021, at 17:09, Guido van Rossum wrote: > > > > Mark's proposal was > > ``` > > @Callable > > def func(params): pass > > ``` > > My question is, why does it need `@Callable`? Lukasz pro

[Python-Dev] Re: Function Prototypes

2021-12-23 Thread Guido van Rossum
On Thu, Dec 23, 2021 at 3:24 PM Steven D'Aprano wrote: > On Thu, Dec 23, 2021 at 02:09:50PM -0800, Guido van Rossum wrote: > > > Without decorator too (that was Lukasz’ idea). Why bother with the > > decorator (*if* we were to go there)? > > So that > > def

[Python-Dev] Re: Function Prototypes

2021-12-23 Thread Guido van Rossum
Without decorator too (that was Lukasz’ idea). Why bother with the decorator (*if* we were to go there)? On Thu, Dec 23, 2021 at 13:16 Joao S. O. Bueno wrote: > My eyes are bleeding with these incomplete function definitions. > If you are using decorators and "def", then, please, there is no >

[Python-Dev] Re: RFC on Callable Syntax PEP

2021-12-20 Thread Guido van Rossum
mail to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/3HJY6VGLIWRJ7F4BZBNGNCSJJTXH3CVM/ > Code of Conduct: http://python.org/psf/codeofconduct/ >

[Python-Dev] Re: RFC on Callable Syntax PEP

2021-12-20 Thread Guido van Rossum
y similar mechanism (with dummy body), without needing a decorator. His proposal is simply: def IntToIntFunc(a: int) -> int: ... def flat_map(l: list[int], func: IntToIntFunc) -> list[int]: # body No need for a `@Callable` decorator! -- --Guido van Rossum (python.org/~guido) *Pronou

[Python-Dev] Re: The python command help is too long

2021-12-20 Thread Guido van Rossum
On Mon, Dec 20, 2021 at 12:16 PM Barry Warsaw wrote: > On Dec 20, 2021, at 11:34, Guido van Rossum wrote: > > > > Fair enough. Quick design proposal: > > > > -h and --help print info about flags (existing flags) > > --help-env (or --env-help?) prints info a

[Python-Dev] Re: About the new CFrame structure

2021-12-20 Thread Guido van Rossum
mail.python.org/archives/list/python-dev@python.org/message/KQOQTLR5IXMJXYZGPDHWR32I2Z53UVBL/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as

[Python-Dev] Re: The python command help is too long

2021-12-20 Thread Guido van Rossum
On Mon, Dec 20, 2021 at 11:15 AM Brett Cannon wrote: > > > On Sat, Dec 18, 2021 at 4:00 PM Guido van Rossum wrote: > >> On Sat, Dec 18, 2021 at 2:16 PM Serhiy Storchaka >> wrote: >> >>> The output of "python -h" is 104 lines long now. It was on

[Python-Dev] Re: The python command help is too long

2021-12-18 Thread Guido van Rossum
100% of the time either.) But I wouldn't object to a -h sub-option that lists environment vars either. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/> _

[Python-Dev] Re: "immortal" objects and how they would help per-interpreter GIL

2021-12-16 Thread Guido van Rossum
It’s *needed* when multiple interpreters share them. On Thu, Dec 16, 2021 at 14:03 Jim J. Jewett wrote: > Guido van Rossum wrote: > > On Wed, Dec 15, 2021 at 6:57 PM Jim J. Jewett jimjjew...@gmail.com > wrote: > > > Immortal objects shouldn't be reclaimed

[Python-Dev] Re: "immortal" objects and how they would help per-interpreter GIL

2021-12-16 Thread Guido van Rossum
a "load constant" instruction, and Eric's other proposal (move the Py_None struct itself into the interpreter state) would be just adding a constant to the register (possibly the fastest solution, since that constant would be much smaller than the full address of the glo

[Python-Dev] Re: Static types and subinterpreters running in parallel

2021-12-16 Thread Guido van Rossum
https://mail.python.org/archives/list/python-dev@python.org/message/QTY25AHCLOXRCQ2LADUUZFVKNVLLYS25/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-u

[Python-Dev] Re: "immortal" objects and how they would help per-interpreter GIL

2021-12-15 Thread Guido van Rossum
pe. Hence immortal objects must be immutable. (There's an issue with making types immutable that we need to address though.) -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-chan

[Python-Dev] Re: my plans for subinterpreters (and a per-interpreter GIL)

2021-12-15 Thread Guido van Rossum
On Wed, Dec 15, 2021 at 2:57 PM Guido van Rossum wrote: > > I don't know how long that would take, but I suspect that a program that > just increments the refcount relentlessly would have to run for hours > before hitting this range. On a 64-bit machine the same approach would >

  1   2   3   4   5   6   7   8   9   10   >