How to print character arrays in Python

I've come across this problem a number of times, so here's a reminder. When printing in Python, occasionally I'll end up with something like this:

>>> print "foo=%s" % row["Name"]
foo=array('c', 'bar')

The solution is to use the .tostring() method:

>>> print "foo=%s" % row["Name"].tostring()
foo=bar

Details here.