Python
Notes and pointers on the world's best programming language.
-
Django form fields
- A pointer on how to process them.
-
Installing Pydee on OSX
- A short note of getting Pydee (and PyQt) to run on a Mac.
-
Setuptools and the single file
- Problems with making an installer for a simple module
-
Subprocess zombies
- Cleaning up your errant commandlines.
-
Installing MySQLdb
- When unresolved linker symbols attack.
-
rst2beamer
- A restructured text based tool for preparing presentations.
-
Encoding types in etree
- Setting encoding in the header of ElementTree generated XML.
-
Converting Ordnance Survey coordinates
- In which OS positions are transformed into something saner and less UK-centric.
-
Applescript via Python
- Controlling Mac applications with appscript
-
Project Euler
-
Unicode and HTML entities
- In which we struggle with a cacophony of characters for the web.
-
SQLAlchemy merge and relations
- In which an oddity in SQLAlchemy is spotted, and it turns out to be a bug not a misunderstanding.
-
Surprises
- In which Python does several unexpected but logical things.
-
Using percent in a string
- A (perhaps) obscure fact - how to use the percent sign in a Python string.
-
The etree tail quirk
- How to make a good XML solution for Python better.
-
Slots
- A new, and poorly explained, feature of Python classes.
-
Matplotlib
- Notes on installing and using.
-
Can't use print
- Who would of thunk it? 'print' is a reserved word everywhere.
-
Installing and using PIL
- Overcoming the sometimes tricky installation of the Python Imaging Library and improving image quality.
-
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 ...

