I've been reading a lot about Python's magic methods lately and recently read about a couple of ways to create an immutable class. An immutable class does not allow the programmer to add attributes to an instance (i.e. monkey patch). It's a little easier to understand if we actually look at a normal class first. […]
The Real Python: Advanced Web Development, featuring Django 1.6 KickStarter campaign released a preview chapter today called "Software Craftmanship". It is the first chapter from the book. The PDF download consists of 33 pages. You can go get it too by going to the following address: http://www.realpython.com/preview/. If you haven't already, you can still support […]
Python's first mainstream package was the .egg file. Now there's a new format in town called the Wheel (*.whl). A wheel "is designed to contain all the files for a PEP 376 compatible install in a way that is very close to the on-disk format". In this article, we will learn how to create a […]
Really Simple Syndication (RSS) has been with us for a long time and allows us to see new articles on our favorite website easily. Python doesn't have an RSS reader module in the standard library, so we'll be using the Universal Feed Parser 5.1.3 to do our parsing. If you do not have it already, […]
The other day I had an interesting task I needed to complete with Reportlab. I needed to create a PDF in landscape orientation that had to be rotated 90 degrees when I saved it. To make it easier to lay out the document, I created a class with a flag that allows me to save […]
Happy New Year! It's the end of 2013 and the beginning of 2014, so it's time to see which articles made it into the top ten list this year. I ran the statistics on December 31st and came up with the following list: Python: A Simple Step-by-Step SQLite Tutorial (37,658 page views) Python 101: How […]