Skip to content

New option uuid_mode, to dump/load UUIDs#40

Merged
kenrobbins merged 1 commit into
python-rapidjson:masterfrom
lelit:uuid-roundtrip-v2
Aug 28, 2016
Merged

New option uuid_mode, to dump/load UUIDs#40
kenrobbins merged 1 commit into
python-rapidjson:masterfrom
lelit:uuid-roundtrip-v2

Conversation

@lelit

@lelit lelit commented Aug 27, 2016

Copy link
Copy Markdown
Contributor

By default not recognized, setting it to UUID_MODE_CANONICAL UUIDs
will be emitted and recognized upon loading in their canonical
representation, ie as strings like "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".
With UUID_MODE_HEX they will be emitted as more compact 32 hexdigits strings,
and recognized as either that or the canonical representation.

By default not recognized, setting it to UUID_MODE_CANONICAL UUIDs
will be emitted and recognized upon loading in their canonical
representation, ie as strings like "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".
With UUID_MODE_HEX they will be emitted as more compact 32 hexdigits strings,
and recognized as either that or the canonical representation.
@kenrobbins kenrobbins merged commit d80784c into python-rapidjson:master Aug 28, 2016
@lelit lelit deleted the uuid-roundtrip-v2 branch August 28, 2016 07:35
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.

2 participants