Sections
You are here: Home Programming Python

Python

— filed under:

In which we celebrate the world's greatest programming language, and bewail the modules and applications that are built with it.

Document When Python asserts don't
Bewildered why error conditions are breezing right past the 'assert' statements you sprinkled through your Python script? Maybe you made the same basic mistake I did ...
Document Can't use print
Who would of thunk it? 'print' is a reserved word everywhere.
Document Installing and using PIL
Overcoming the sometimes tricky installation of the Python Imaging Library and improving image quality.
Document Installing MySQLdb
When unresolved linker symbols attack.
Document Matplotlib
Notes on installing and using.
Document Slots
A new, and poorly explained, feature of Python classes.
Document SQLAlchemy merge and relations
In which an oddity in SQLAlchemy is spotted, and it turns out to be a bug not a misunderstanding.
Document Surprises
In which Python does several unexpected but logical things.
Document The etree tail quirk
How to make a good XML solution for Python better.
Document Unicode and HTML entities
In which we struggle with a cacophony of characters for the web.
Document Using percent in a string
A (perhaps) obscure fact - how to use the percent sign in a Python string.
Document When tests don't
A quirk in the nose testing tool that hides test cases.
Folder Project Euler
 
Folder Adventures in Plone (and Zope)
Where "adventures" is qualified by "harrowing" and "preposterous".
Document rst2beamer
A restructured text based tool for preparing presentations.
Document rst2beamer.py
 
Document Applescript via Python
Controlling Mac applications with appscript
Document Advanced Python NB
 
Document Converting Ordnance Survey coordinates
In which OS positions are transformed into something saner and less UK-centric.
File osgb.py
 
Document Encoding types in etree
Setting encoding in the header of ElementTree generated XML.
Document Actions
Visitors
Locations of visitors to this page