jgarzik/python-bitcoinrpc — pull request #39 by alecalve (2014-11-14 23:22:13+00:00)
Title: Explicit casting of Decimal to float for python3.3+

In python2.*, rounding a Decimal returns a float, however, in python 3, rounding a Decimal returns a Decimal. This leads to infinite loops in EncodeDecimal when decoding a response containing a float in python3 (tested with python 3.4.0).

> File "/home/antoine/…/virtualenv/lib/python3.4/site-packages/bitcoinrpc/authproxy.py", line 64, in EncodeDecimal
> return round(o, 8)
> RuntimeError: maximum recursion depth exceeded while calling a Python object