Python 2.5 is stricter about the requirement that `__repr__` should return a string object. Closes #5405.
Authored by: cboos 2007-06-08
Parent: [r5645]
Child: [r5647]