Python Properties

I learned something new today: Python allows you to set attributes for classes that are actually function calls, using a mechanism called properties.

Explanation

Example with results (courtesy of Zed Shaw)

More examples (courtesy of StackOverflow)

Edit: As suspected, they’re used to define table export syntax in tablib, too.