Skip to content

Conversation

@toyg
Copy link

@toyg toyg commented Jan 18, 2014

unicode characters in arguments get mangled up. Tested in Python 3.3.3 only.

@toyg
Copy link
Author

toyg commented Jan 18, 2014

Works fine in 2.5+ as well. Should be safe to merge :)

@thedod
Copy link

thedod commented Mar 23, 2014

I was just about to pull request the same: 666d96a 😆.
Anyway, 👍

@luke-jr
Copy link
Contributor

luke-jr commented Apr 3, 2015

Hmm, this doesn't seem to actually fix the issue, just avoids the infinite loop. In particular, by casting to a float you're not ensuring the Decimal value gets encoded correctly (with 8 decimal places). I think fixing this properly will require subclassing JSONEncoder - no need to round the value, though, just get it included precisely.

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.

3 participants