summaryrefslogtreecommitdiff
path: root/msgpack/_packer.pyx
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2020-12-04 17:23:09 +0900
committerInada Naoki <songofacandy@gmail.com>2020-12-04 17:52:24 +0900
commit44bc2bd439808ad7563ef8a558ad6ccfe175a66a (patch)
treebfca13a3d16320dfda59487002b5c9dc6289db4d /msgpack/_packer.pyx
parent8fb709f2e0438862020d8810fa70a81fb5dac7d4 (diff)
downloadmsgpack-python-44bc2bd439808ad7563ef8a558ad6ccfe175a66a.tar.gz
Update docstring
Diffstat (limited to 'msgpack/_packer.pyx')
-rw-r--r--msgpack/_packer.pyx8
1 files changed, 7 insertions, 1 deletions
diff --git a/msgpack/_packer.pyx b/msgpack/_packer.pyx
index b470646..e6cd2c7 100644
--- a/msgpack/_packer.pyx
+++ b/msgpack/_packer.pyx
@@ -63,7 +63,7 @@ cdef class Packer(object):
"""
MessagePack Packer
- usage::
+ Usage::
packer = Packer()
astream.write(packer.pack(a))
@@ -94,6 +94,12 @@ cdef class Packer(object):
This is useful when trying to implement accurate serialization
for python types.
+ :param bool datetime:
+ If set to true, datetime with tzinfo is packed into Timestamp type.
+ Note that the tzinfo is stripped in the timestamp.
+ You can get UTC datetime with `timestamp=3` option of the Unpacker.
+ (Python 2 is not supported).
+
:param str unicode_errors:
The error handler for encoding unicode. (default: 'strict')
DO NOT USE THIS!! This option is kept for very specific usage.