[Python-Dev] Re: Problems with dict subclassing performance

2021-08-16 Thread Federico Salerno
"Pretendere" in Italian means "to demand", it's a false friend with the English "pretend". I don't know whether Marco is Italian (the false friend might also be there between Spanish or whatever other romance language he speaks and English, for all I know). From a native Italian speaker's persp

[Python-Dev] Re: Problems with dict subclassing performance

2021-08-16 Thread Jeff Allen
On 16/08/2021 08:41, Federico Salerno wrote: "Pretendere" in Italian means "to demand", it's a false friend with the English "pretend". I don't know whether Marco is Italian (the false friend might also be there between Spanish or whatever other romance language he speaks and English, for all I

[Python-Dev] Re: Problems with dict subclassing performance

2021-08-16 Thread Chris Angelico
On Mon, Aug 16, 2021 at 5:44 PM Federico Salerno wrote: > > "Pretendere" in Italian means "to demand", it's a false friend with the > English "pretend". I don't know whether Marco is Italian (the false > friend might also be there between Spanish or whatever other romance > language he speaks and

[Python-Dev] Re: Problems with dict subclassing performance

2021-08-16 Thread Jeff Allen
On 06/08/2021 20:29, Marco Sulla wrote: I've done an answer on SO about why subclassing `dict` makes the subclass so much slower than `dict`. The answer is interesting: https://stackoverflow.com/questions/59912147/why-does-subclassing-in-python-slow-things-down-so-much What do you think about

[Python-Dev] Re: Making code object APIs unstable

2021-08-16 Thread Steve Dower
On 8/16/2021 12:47 AM, Guido van Rossum wrote: My current proposal is to issue a DeprecationWarning in PyCode_New() and PyCode_NewWithPosArgs(), which can be turned into an error using a command-line flag. If it's made an error, we effectively have (B); by default, we have (A). Then in 3.13 w

[Python-Dev] Re: PEP 558, the simplest thing I could come up with

2021-08-16 Thread Brett Cannon
On Sat, Aug 14, 2021 at 8:01 PM Nick Coghlan wrote: > Bringing the public record up to date with a brief off-list discussion > between Mark, Nathaniel and I: > > * Mark hasn't convinced me that getting rid of the frame value cache > entirely for optimised frames is a good idea, so he's going to w

[Python-Dev] python-dev thread w/ Marco Sulla

2021-08-16 Thread Brett Cannon
https://mail.python.org/archives/list/python-dev@python.org/thread/JRFJ4QH7TR35HFRQWOYPPCGOYRFAXK24/ I can't be objective with Marco as I believe we have recorded issues with him previously (as with Steven if you take Marco's initial side with this). The thing that pushed me over the edge to repo

[Python-Dev] Re: Problems with dict subclassing performance

2021-08-16 Thread Brett Cannon
On Sun, Aug 15, 2021 at 2:55 PM Marco Sulla wrote: > On Sun, 15 Aug 2021 at 23:33, Tim Peters > wrote:ople have said now, including me, they had no idea what > > you meant.by "I pretend your immediate excuses". It's not a complaint > > that it's expressed inelegantly, but that they can't make _a

[Python-Dev] Re: python-dev thread w/ Marco Sulla

2021-08-16 Thread Antoine Pitrou
On Mon, 16 Aug 2021 09:47:13 -0700 Brett Cannon wrote: > https://mail.python.org/archives/list/python-dev@python.org/thread/JRFJ4QH7TR35HFRQWOYPPCGOYRFAXK24/ > > I can't be objective with Marco as I believe we have recorded issues with > him previously (as with Steven if you take Marco's initial

[Python-Dev] Re: Making code object APIs unstable

2021-08-16 Thread Guido van Rossum
On Mon, Aug 16, 2021 at 9:30 AM Steve Dower wrote: > On 8/16/2021 12:47 AM, Guido van Rossum wrote: > > My current proposal is to issue a DeprecationWarning in PyCode_New() and > > PyCode_NewWithPosArgs(), which can be turned into an error using a > > command-line flag. If it's made an error, we

[Python-Dev] Re: python-dev thread w/ Marco Sulla

2021-08-16 Thread Kyle Stanley
I can agree with the general premise of what Antoine is saying, but to me even as a non-participant, the following quote from the thread Brett linked seems a clear CoC violation: I repeat, even the worst AI will understand from the context what I meant. > But let me do a very rude example: > > Wha

[Python-Dev] Re: python-dev thread w/ Marco Sulla

2021-08-16 Thread Nathaniel Smith
Was this post intended to go to python-dev or...? On Mon, Aug 16, 2021 at 9:53 AM Brett Cannon wrote: > > https://mail.python.org/archives/list/python-dev@python.org/thread/JRFJ4QH7TR35HFRQWOYPPCGOYRFAXK24/ > > I can't be objective with Marco as I believe we have recorded issues with him > previ

[Python-Dev] Re: python-dev thread w/ Marco Sulla

2021-08-16 Thread Nathan C. Fox
Yes, it was intended to go to python-dev, even though it's not about Python development. It's part of a discussion about a pretty hostile and off-topic thread that has unfolded over the last week on this mailing list. https://mail.python.org/archives/list/python-dev@python.org/thread/JRFJ4QH7TR35H

[Python-Dev] Re: python-dev thread w/ Marco Sulla

2021-08-16 Thread Jonathan Goble
On Mon, Aug 16, 2021 at 4:04 PM Nathan C. Fox wrote: > Yes, it was intended to go to python-dev, even though it's not about > Python development. It's part of a discussion about a pretty hostile and > off-topic thread that has unfolded over the last week on this mailing list. > Brett's original

[Python-Dev] Re: python-dev thread w/ Marco Sulla

2021-08-16 Thread Brett Cannon
On Mon, Aug 16, 2021 at 1:37 PM Jonathan Goble wrote: > On Mon, Aug 16, 2021 at 4:04 PM Nathan C. Fox > wrote: > >> Yes, it was intended to go to python-dev, even though it's not about >> Python development. It's part of a discussion about a pretty hostile and >> off-topic thread that has unfold

[Python-Dev] Re: Making code object APIs unstable

2021-08-16 Thread Nick Coghlan
On Tue, 17 Aug 2021, 4:30 am Guido van Rossum, wrote: > On Mon, Aug 16, 2021 at 9:30 AM Steve Dower > wrote: > >> On 8/16/2021 12:47 AM, Guido van Rossum wrote: >> > My current proposal is to issue a DeprecationWarning in PyCode_New() >> and >> > PyCode_NewWithPosArgs(), which can be turned into

[Python-Dev] Re: Making code object APIs unstable

2021-08-16 Thread Guido van Rossum
On Mon, Aug 16, 2021 at 4:44 PM Nick Coghlan wrote: > [...] > A cloning-with-replacement API that accepted the base code object and the > "safe to modify" fields could be a good complement to the API deprecation > proposal. > Yes (I forgot to mention that). > Moving actual "from scratch" code

[Python-Dev] Re: Making code object APIs unstable

2021-08-16 Thread Gregory P. Smith
Doing a search of a huge codebase (work), the predominant user of PyCode_New* APIs appears to be checked in Cython generated code (in all sorts of third_party OSS projects). It's in the boilerplate that Cython extensions make use of via it's __Pyx_PyCode_New macro. https://github.com/cython/cython/