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

Python 3 Course with Jupyter Notebooks

Python is one of the most widely used programming language in current trend. This is a complete Python (updated to Python 3.7) course where you can learn Python from scratch. It covers almost all aspects of Python prgramming language from a professional d... (more…)

Read more »