import decimal
....
elif ty is decimal.Decimal: self._append("%f" % obj)
...
Log in to post a comment.