Python performance optimizations – __slots__ and namedtuples

Hey again, My first post about optimization will be about __slots__ and namedtuples. __slots__ __slots__ have two important effects: performance: A class that utilizes slots gains ~30% faster attri…

Similar

C for Python Programmers

In this tutorial, you'll learn the basics of the C language, which is used in the source code for CPython, the most popular Python implementation. Learning C is important for Python programmers interested in contributing to CPython. (more…)

Read more »