Brett Slatkin - Refactoring Python: Why and how to restructure your code

Brett Slatkin - Refactoring Python: Why and how to restructure your code

As programs gain complexity, it becomes harder to add features and fix bugs. Reorganizing code is an effective way to make programs more manageable. This talk will show you Pythonic ways to do the most imporant "refactorings": Extract variables with __nonzero__; Change signatures with *args and **kwargs; Extract fields and classes with @property; Create stateful closures with __call__; and more!

https://us.pycon.org/2016/schedule/presentation/2073/

Eec9d25835717f1f1f12a354faf68d87?s=128

PyCon 2016

May 29, 2016
Tweet