Contribute Media
A thank you to everyone who makes this possible: Read More

On Being Pythonic

Description

Design Patterns, standard designs and idioms in Python

Pythonic (Noun): Uses Python idioms well, that it is natural or shows fluency in the language.

Even though you’re using Python syntax and keywords, your code still smells like C, Java or Perl. Or just feels like it's not the best way. This tour of Python is about changing the way you think, and to write Python that makes the best use of the language. As a result, your Python will be cleaner, simpler, nicer, and be more readable.

Even though you know the syntax to make a class and inherit, you don't know when you should. Composition? IsA, HasA, IsLikeA? What about factories, singletons, iterators and adapters?

Mashing together a long and painful background of C, C++, Perl and Java coding, a mind-expanding trip down the Elements of Reusable Object-Oriented Software rabbit hole, and over 30 years programming experience, Peter brings some clarity, reason and ideas on Pythonic idioms and OO design as implemented in Python.

Details

Improve this page