Archives for May, 2015

Python design patterns #3: the decorator

Continuing with one of my favorites – the decorator. It’s a smart one, so a little more talking before coding..   Why? What do you do when you need a flexible combination of properties in an object? If you’re thinking why not sub-classing? you’re ok.. Sub classing is just right for allowing slightly different flavors […]