[Python-Dev] "Micro-optimisations can speed up CPython"

Greg Ewing greg.ewing at canterbury.ac.nz
Tue May 30 02:06:39 EDT 2017


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.

-- 
Greg


More information about the Python-Dev mailing list