Yeah, in Python each . is a dictionary lookup. The cost of having a dynamic language where the compiler can do pretty much no optimizations (and yes, Python does have a compiler).
In static languages these lookups can be collapsed to a single pointer address by the compiler.
Thanks for the summary!
Yeah, in Python each . is a dictionary lookup. The cost of having a dynamic language where the compiler can do pretty much no optimizations (and yes, Python does have a compiler).
In static languages these lookups can be collapsed to a single pointer address by the compiler.