You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cython Packer requires datetime tzinfo, Python fallback does not #435
2020-07-24 07:37:28.190432+00:00
Traceback (most recent call last):
File "test_msgpack.py", line 10, in <module>
packed = msgpack.Packer(datetime=True).pack(dt)
File "msgpack/_packer.pyx", line 286, in msgpack._cmsgpack.Packer.pack
File "msgpack/_packer.pyx", line 292, in msgpack._cmsgpack.Packer.pack
File "msgpack/_packer.pyx", line 289, in msgpack._cmsgpack.Packer.pack
File "msgpack/_packer.pyx", line 283, in msgpack._cmsgpack.Packer._pack
TypeError: can not serialize 'datetime.datetime' object
Should we make the Python fallback implementation stricter? I can create a PR.
Activity
methane commentedon Jul 24, 2020
Fixed via #434.
paolieri commentedon Jul 24, 2020
Thank you! (So fast.)