Skip to content

Bugs in 0.9.2 #147

Description

@SmartAudioTools

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 :

>>> import rapidjson
>>> encoder = rapidjson.Encoder()
>>> encoder.indent
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'rapidjson.Encoder' object has no attribute 'indent'

encoder ensure_ascii is saved in sort_keys :

>>> import rapidjson
>>> encoder = rapidjson.Encoder(sort_keys = False, ensure_ascii = True)
>>> encoder.sort_keys
True
>>> encoder = rapidjson.Encoder(sort_keys = False, ensure_ascii = False)
>>> encoder.sort_keys
False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions