-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from lelit/datetime-roundtrip
Handle serialization/deserialization of date, time and datetime instances
- Loading branch information
Showing
4 changed files
with
659 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.