[Python-Dev] Re: Questions about CPython's behavior on addition operator -- binary_op1 (abstract.c) and nb_add (typeobject.c)

2020-01-20 Thread Raphaël Monat
I'm also keen to understand this and think I can elucidate a little, from my study of the code. The perspective of someone who *didn't* write it might help, but I defer to the authors' version when it appears. Thank you! I'd be happy to know the authors' opinion as well. A crucial observati

[Python-Dev] Questions about CPython's behavior on addition operator -- binary_op1 (abstract.c) and nb_add (typeobject.c)

2020-01-16 Thread Raphaël Monat
Hi all, I'm looking at CPython's behavior when an addition is called. From what I understand, binary_op1 is eventually called, and it calls either slotv or slotw, which seems to be the binaryfunc defined as nb_add in the fie