Skip to content

Commit

Permalink
Merge pull request #35 from lelit/datetime-roundtrip
Browse files Browse the repository at this point in the history
Handle serialization/deserialization of date, time and datetime instances
  • Loading branch information
kenrobbins committed Aug 26, 2016
2 parents a841457 + 176112d commit 1a00fc2
Show file tree
Hide file tree
Showing 4 changed files with 659 additions and 65 deletions.
19 changes: 13 additions & 6 deletions python-rapidjson/docstrings.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
#ifndef DOCSTRINGS_H_
#define DOCSTRINGS_H_

static const char* rapidjson_module_docstring =
"Fast, simple JSON encoder and decoder. Based on RapidJSON C++ library.";
PyDoc_STRVAR(rapidjson_module_docstring,
"Fast, simple JSON encoder and decoder. Based on RapidJSON C++ library.");

static const char* rapidjson_loads_docstring =
"loads(s, object_hook=None, use_decimal=False, precise_float=True, allow_nan=True)\n\nDecodes a JSON string into Python object.";
PyDoc_STRVAR(rapidjson_loads_docstring,
"loads(s, object_hook=None, use_decimal=False, precise_float=True,"
" allow_nan=True, datetime_mode=None)\n"
"\n"
"Decodes a JSON string into Python object.\n");

static const char* rapidjson_dumps_docstring =
"dumps(obj, skipkeys=False, ensure_ascii=True, allow_nan=True, indent=None, default=None, sort_keys=False, use_decimal=False, max_recursion_depth=2048, datetime_mode=None)\n\nEncodes Python object into a JSON string.";
PyDoc_STRVAR(rapidjson_dumps_docstring,
"dumps(obj, skipkeys=False, ensure_ascii=True, allow_nan=True, indent=None,"
" default=None, sort_keys=False, use_decimal=False, max_recursion_depth=2048,"
" datetime_mode=None)\n"
"\n"
"Encodes Python object into a JSON string.");

#endif

0 comments on commit 1a00fc2

Please sign in to comment.