support print(e)

this is same as: print(e.tostring())