[Python-Dev] "Micro-optimisations can speed up CPython"
Serhiy Storchaka
storchaka at gmail.com
Tue May 30 02:16:09 EDT 2017
30.05.17 09:06, Greg Ewing пише:
> Steven D'Aprano wrote:
>> What does "tp" stand for? Type something, I guess.
>
> I think it's just short for "type". There's an old tradition
> in C of giving member names a short prefix reminiscent of
> the type they belong to. Not sure why, maybe someone thought
> it helped readability.
In early ages of C structures didn't create namespaces, and member names
were globals.
More information about the Python-Dev
mailing list