Skip to content

Conversation

@dpedu
Copy link

@dpedu dpedu commented Nov 2, 2015

Fixes #54.

Python 2.x's round() automatically converts Decimal types to a float. Python 3's round() returns a rounded Decimal object, leading to infinite recursion as EncodeDecimal is again called (it was passed to json.dumps as default) to convert the Decimal into a serializable type. Explicitly converting to a float will work for both python versions.

@FellowTraveler
Copy link

Can definitely confirm.

@reiven
Copy link

reiven commented Nov 11, 2015

+1

@alecalve
Copy link
Contributor

Duplicate of the now merged #39

@jgarzik jgarzik closed this Nov 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants