Archive for the 'Python Magazine' Category

Using Future Statements to Prepare for the Future

Wednesday, September 22nd, 2010

Tweet Note: This article was first published the June 2008 issue of Python Magazine Mark Mruss With the release of Python 3.0 only a few months away many Python programmers have visions of compatibility problems dancing in their heads. This article will introduce the concept of future statements including two future statements that you can […]

Introducing Descriptors and Properties

Sunday, April 25th, 2010

Tweet Note: This article was first published the May 2008 issue of Python Magazine Introducing Descriptors and Properties Mark Mruss New-style classes were introduced to Python with the release of Python 2.2. And with these new-style classes came descriptors and properties. This article will introduce the descriptor protocol, descriptors, and properties. Introduction New-style classes were […]

An Introduction to Google Calendars

Saturday, February 27th, 2010

Tweet Note: This article was first published the March 2008 issue of Python Magazine Mark Mruss Over the past few years Google has expanded it’s services beyond those of a normal search engine. One of those new services is the Google Calendar. This article will provide an introduction to working with the Google Calendar using […]

Introducing Docstrings

Friday, January 8th, 2010

Tweet By: Mark Mruss Note: This article was first published the February 2008 issue of Python Magazine Of all the tasks assigned to programmers, commenting code and writing documentation are among the most disliked. This article introduces you to Python’s documentation strings. While they won’t make commenting your code any more enjoyable, they will provide […]

Iterators, Iterables, and Generators! Oh, my!

Monday, February 23rd, 2009

Tweet By: Mark Mruss Note: This article was first published the January 2008 issue of Python Magazine Iterators, iterables, and generators are features handled so wall by Python that people programming in other languages cannot help but drool over. Fortunately for us, creating iterators, iterables and generators is a relatively simple task. This article introduces […]

Operator Overload! Learn how to change the behavior of equality operators.

Saturday, June 21st, 2008

Tweet By: Mark Mruss Note: This article was first published the November 2007 issue of Python Magazine While the equality operator works great on numbers and strings the fact the way it treats your custom objects really is not that useful. This article looks into overloading the equality operator so that you can easily compare […]