Beautiful, idiomatic Python

Bob, Tue 10 January 2017, Best practices

2vs3, cleancode, collections, contextmanagers, decorators, namedtuples, pythonic

Resources

The slidedeck is here. Thanks Jeff Paine for this awesome set of notes.

When you see this, do that instead

A quick digest below. Note that Python3 takes some of these features to the next level, so switching from 2 to 3 is a good idea :)

PyBites Python Tips

Do you want to get 250+ concise and applicable Python tips in an ebook that will cost you less than 10 bucks (future updates included), check it out here.

Get our Python Tips Book

"The discussions are succinct yet thorough enough to give you a solid grasp of the particular problem. I just wish I would have had this book when I started learning Python." - Daniel H

"Bob and Julian are the masters at aggregating these small snippets of code that can really make certain aspects of coding easier." - Jesse B

"This is now my favourite first Python go-to reference." - Anthony L

"Do you ever go on one of those cooking websites for a recipe and have to scroll for what feels like an eternity to get to the ingredients and the 4 steps the recipe actually takes? This is the opposite of that." - Sergio S

Get the book