i remember a thread a while back that touched on how various operators were implemented as funtion calls. i'm more curious about this, now, but i cannot find the thread. so i'd like to know what document i can read that describes this. one of the things i'm curious about is how assignments differ from data fetches in, for example, a dictionary. if i do
edit:
i'd imagine it could be just one function that with just one argument means to fetch data indexed by that argument, and with two arguments means to store the data (given in the 2nd argument) at the specified index.
edit:
i've noted that a few posts show that some of you know about expressing an assembly-like language that expresses what goes on inside Python (or at least inside CPython). where did you learn this? is there a document that explains all of this?
= mydict[x]
vs. mydict[x] =
how do the function calls differ. is this an implementation decision?edit:
i'd imagine it could be just one function that with just one argument means to fetch data indexed by that argument, and with two arguments means to store the data (given in the 2nd argument) at the specified index.
edit:
i've noted that a few posts show that some of you know about expressing an assembly-like language that expresses what goes on inside Python (or at least inside CPython). where did you learn this? is there a document that explains all of this?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.