Duration: 10 minutes
This screencast discusses the use of super as well as method resolution order (__mro__). We cover an example of using the super to initialize the parent class in the context of creating one of its subclasses. Also touch upon a the concept of **kwargs unpacking.
Posted on April 29, 2013
Duration: 23 minutes
The second part of the screencast we focus more on the measurement and breakdown of time spent in various portions of code. We also cover a few visualization tools and how to read and sort the profiles outputted by cProfile. We run through a real life example of bulk loading users into SQLAlchemy, which goes to show the flow of real life profiling.
Posted on April 23, 2013
Duration: 13 minutes
In the first part of this screencast we cover measuring the execution time of python applications, using simple timestamp calculations, then we discuss more advanced timing modules like timeit available in the standard library. We also cover the difference between the two and how to interpret the data returned. We also touch on the nuances of timing on cross platforms.
Posted on April 10, 2013