-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugs in 0.9.2 #147
Comments
Thank you for the report, this went unnoticed for a long time! |
This exposes the "indent_char" and "write_mode" attributes, and fixes the "sort_keys" access that was wrongly referencing the "ensure_ascii" flag. While on it, mentions Encoder and Decoder instance attributes in the documentation. Fixes issue #147.
Fixed in v0.9.3! |
Hello! |
There's no |
Ok ! :) I can do without, but there is no way to know if indent = None.
|
You can inspect the >>> import rapidjson
>>> e = rapidjson.Encoder()
>>> e.indent_char
' '
>>> e.indent_count
4
>>> e.write_mode
0
>>> e.write_mode == rapidjson.WM_COMPACT
True
>>> e = rapidjson.Encoder(indent=4)
>>> e.indent_char
' '
>>> e.indent_count
4
>>> e.write_mode
1
>>> e.write_mode == rapidjson.WM_PRETTY
True |
Hello !
Thanks for the new version !
I found to bugs in this 0.9.2 version with access to encoder attributs (there are maybe others, but i did'nt test all attributs access)
encoder indent attribut is not saved in encoder.indent :
encoder ensure_ascii is saved in sort_keys :
The text was updated successfully, but these errors were encountered: