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

2021-08-19 Thread Marco Sulla
Anyway, Cannon, don't take it personal. I accuse the entire system, the whole CoC council. Indeed I was also fired some times ago from the python-ideas list: https://mail.python.org/archives/list/python-id...@python.org/message/KV4K4KS4MYTP5T5W5XKZYENGHCJYWOFR/ The reasons? https://mail.python.o

[Python-Dev] Re: Dropping out of this list

2021-08-19 Thread Marco Sulla
I think you're writing to me. I simply clicked the "Reply to all" button because I'm lazy. And that's me that is polemic? X-D Furthermore you already replied to this topic before my intervention, so this makes me laugh doubly X-D Who's the spammer? Let the people decide On Thu, 19 Aug 2021 at 20:3

[Python-Dev] Re: Dropping out of this list

2021-08-19 Thread Marco Sulla
I agree with you, and I would say that all this chaos will be avoided, if people leave the discussion between me and Steven alone. You can't say "I'm sick of spamming" if you put logs on the fire. ___ Python-Dev mailing list -- python-dev@python.org To un

[Python-Dev] Re: Dropping out of this list

2021-08-19 Thread Marco Sulla
Excuse me all for the useless back-and-forth... I can assure you I'm the last person who wanted it. But if someone insults me, I reply. Anyway, this will not last long. Goodbye and thanks for all the fish. ___ Python-Dev mailing list -- python-dev@python.

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

2021-08-18 Thread Marco Sulla
On Wed, 18 Aug 2021 at 21:31, Brett Cannon wrote: > I rarely correct people about this, but it's actually Dr. Cannon; if you're > going to insult me, please use the proper title at least. Quoting Pulp Fiction, are you a woman? I think not, so Mr. Cannon is not incorrect. Also my title is Dr. Sul

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

2021-08-18 Thread Marco Sulla
ve you further away from > your stated goals. > > Kind regards, > Steve > > > On Tue, Aug 17, 2021 at 9:31 PM Marco Sulla > wrote: >> >> On Sun, 15 Aug 2021 at 22:30, Marco Sulla >> wrote: >> > Oh, this is enough. The sense of the phrase was ver

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

2021-08-17 Thread Marco Sulla
My time is short, so thank you for focusing on the real subject. On Mon, 16 Aug 2021 at 11:00, Jeff Allen wrote: > I have spent a lot of time reading typeobject.c over the years I've been > looking at an alternative implementation. It's quite difficult to follow, and > full of tweaks for specia

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

2021-08-17 Thread Marco Sulla
On Sun, 15 Aug 2021 at 22:30, Marco Sulla wrote: > Oh, this is enough. The sense of the phrase was very clear and you all > have understood it. Remarking grammatical errors is a gross violation > of the Netiquette. I ask __immediately__ the intervent of a moderator, > even if I quite

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

2021-08-15 Thread Marco Sulla
On Mon, 16 Aug 2021 at 03:15, Tim Peters wrote: > You think Steven was indirectly accusing you of unethical behavior > (trolling for StackOverflow upvotes)?. That's not the sense I got from > his original reply, but I can understand it if you did. If that's your > complaint, I'll leave it to Steve

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

2021-08-15 Thread Marco Sulla
I make an example: what if I said to you that you want, with your response, only endear Tim? Is it for you sarcastic or a subtle insinuation? ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org

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

2021-08-15 Thread Marco Sulla
On Sun, 15 Aug 2021 at 23:58, Irit Katriel wrote: > The reality, Marco, is that this list is for discussions about python > development, not for seeking help with understanding python. > It is not appropriate to "ask for help" on this list, and you are not > entitled to a reply within X working

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

2021-08-15 Thread Marco Sulla
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 _any_ sense > of it. By my count, this is at least the second t

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

2021-08-15 Thread Marco Sulla
On Sun, 15 Aug 2021 at 23:12, Tim Peters wrote: > > [Marco Sulla ] > > Oh, this is enough. The sense of the phrase was very clear and you all > > have understood it. > > Sincerely, I have no idea what "I pretend your immediate excuses." > means, in or out of

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

2021-08-15 Thread Marco Sulla
It's the Netiquette, Chris. It's older than Internet. It's a gross violation of the Netiquette remarking grammatical or syntactical errors. I think that also the least advanced AI will understand what I meant. I think anyway that now the sense of my request is __very clear__. I ask the interventio

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

2021-08-15 Thread Marco Sulla
Furthermore, I have 13k points of reputation on SO. They are also too much for me. I don't need dirty tricks to raise them. So I __pretend__ excuses from Steven, if it is a man. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an e

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

2021-08-15 Thread Marco Sulla
a Treant? > On 8/15/2021 10:22 AM, Marco Sulla wrote: > (without quoting his previous message> > > On Thu, 12 Aug 2021 at 12:54, Steven D'Aprano wrote: > >> Are you looking for upvotes on StackOverflow > > A perhaps snarky response to a slightly spammy pair of po

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

2021-08-15 Thread Marco Sulla
On Thu, 12 Aug 2021 at 12:54, Steven D'Aprano wrote: > Are you looking for upvotes on StackOverflow This is unacceptable. I pretend your immediate excuses. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-l

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

2021-08-11 Thread Marco Sulla
No ideas? Excuse me for the up. On Fri, 6 Aug 2021 at 21: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-s

[Python-Dev] Problems with dict subclassing performance

2021-08-06 Thread Marco Sulla
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: Why list.sort() uses mergesort and not timsort?

2021-06-06 Thread Marco Sulla
On Sun, 6 Jun 2021 at 11:57, Christian Heimes wrote: > > On 06/06/2021 11.42, Marco Sulla wrote: > > As title. Is it faster for inplace sorting, or simply the > > implementation of list.sort() was done before the implementation of > > timsort? > > list.sort() uses

[Python-Dev] Why list.sort() uses mergesort and not timsort?

2021-06-06 Thread Marco Sulla
As title. Is it faster for inplace sorting, or simply the implementation of list.sort() was done before the implementation of timsort? ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https:/

[Python-Dev] Where and how can I contribute?

2021-03-26 Thread Marco Sulla
I would contribute to the project in my spare time. Can someone point me to some easy task? I know C and the Python C API a little. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://ma

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-02-28 Thread Marco Sulla
On Sat, 27 Feb 2021 at 00:35, Guido van Rossum wrote: > On Fri, Feb 26, 2021 at 3:18 PM Marco Sulla > wrote: >> >> Excuse me if I post here. Maybe is a stupid question: why, instead of >> introducing except*, Python can't extend the functionality of except, >>

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-02-26 Thread Marco Sulla
Excuse me if I post here. Maybe is a stupid question: why, instead of introducing except*, Python can't extend the functionality of except, so it can do what except* would do? ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an ema

[Python-Dev] A question about pattern matching

2020-11-24 Thread Marco Sulla
Excuse me, I have a question about pattern matching: is it used often in math language as Mathematica? May it help to translate code from such languages to Python? ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python

[Python-Dev] Re: Words rather than sigils in Structural Pattern Matching

2020-11-22 Thread Marco Sulla
On Sun, 22 Nov 2020 at 01:27, Greg Ewing wrote: > That's a fairly complex bit of mental parsing to do > when reading a case. I agree, that's why I wrote pattern matching seems exotical to me. I was accustomed by Python to read the code as if it's wrote in simple English. I must admit this is not

[Python-Dev] Re: Words rather than sigils in Structural Pattern Matching

2020-11-21 Thread Marco Sulla
On Sat, 21 Nov 2020 at 18:52, David Mertz wrote: > So in my mind, if I had the choice, it is a decision between a sigil and a > word > to indicate "no, really use this name as a value!" I like a word better, but > none > of the current keywords really make sense, so it would need to be a new wor

[Python-Dev] Re: Words rather than sigils in Structural Pattern Matching

2020-11-16 Thread Marco Sulla
On Tue, 17 Nov 2020 at 03:52, Steven D'Aprano wrote: > Here is a more representative example, borrowed from here: > > https://gvanrossum.github.io//docs/PyPatternMatching.pdf > > > match node: > case BinOp(Num(left), '+', Num(right)): > return Num(left + right) > c

[Python-Dev] Re: Who is target reader of tutorial?

2020-11-06 Thread Marco Sulla
I started to learn Python with the tutorial, and two things come into my mind: 1. The class section seems quite difficult and intimidating for a novel, while classes in Python are really more simple than in other OO languages 2. I really missed a section about how to write a decorator function. Luc

[Python-Dev] Re: Macro for logging

2020-10-28 Thread Marco Sulla
Thank you Victor, I know. I meant a macro in CPython. Maybe not so sane to have a unique global logger in C, as Antoine pointed out. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://m

[Python-Dev] Re: Speeding up CPython

2020-10-22 Thread Marco Sulla
On Thu, 22 Oct 2020 at 14:25, Mark Shannon wrote: > MSVC seems to do better jump fusion than GCC. > Maybe I'm wrong, since I only take a look at dict, tuple and set C code, but it does not seems to me that there's more than 1-2 GOTOs in every CPython function, and they can't be merged. _

[Python-Dev] Macro for logging

2020-10-21 Thread Marco Sulla
If not already present, do you think it's useful to add a macro that does something like # ifdef Py_DEBUG fprintf(stderr, "%s\n", message); # endif ? ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le.

[Python-Dev] Re: Pickle for C extension?

2020-10-20 Thread Marco Sulla
Ah, okay. This is a problem for me, since I can't pass the 5th argument to __reduce__, since it's an immutable type. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/m

[Python-Dev] Pickle for C extension?

2020-10-19 Thread Marco Sulla
n. It seems to work, but I have to move the code I wrote in _pickle.c and pickle.py in the C extension. Is it possible, or I have to create a slower `__reduce_ex__` method that simply converts it to dict? This is, for example, the C code for pickling frozendict in _pickle.c: https://github.com/Marco-

[Python-Dev] Re: Changing Python's string search algorithms

2020-10-16 Thread Marco Sulla
Excuse me if I intrude in an algorithm that I have not understood, but the new optimization can be applied to regexps too? ___ 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: PEP 638: Syntactic macros

2020-09-28 Thread Marco Sulla
On Mon, 28 Sep 2020 at 13:56, Nick Coghlan wrote: > For usage, whether something is a macro or not should either be irrelevant > (when they're used as a more powerful function call or > decorator), or else entirely obvious from the way you use it (when they're > defining a new pseudo-statement),

[Python-Dev] Re: PEP 638: Syntactic macros

2020-09-27 Thread Marco Sulla
I like this, but IMHO adding a character at the end of the macro name (the exclamation mark), lowers readability. I'd prefer a character at the start of the macro, a character that is not used as an unary operator. On Sat, 26 Sep 2020 at 14:11, Mark Shannon wrote: > > Hi everyone, > > I've submit