[issue15443] datetime module has no support for nanoseconds

Alexander Belopolsky report at bugs.python.org
Tue Jul 15 04:04:41 CEST 2014


Alexander Belopolsky added the comment:

> Guessing Guido was actually thinking about the pickle size

No, pickle also comes with an overhead

>>> from datetime import *
>>> import pickle
>>> t = datetime.now()
>>> len(pickle.dumps(t))
70

For the present discussion, DATETIME_DATASIZE is the only relevant number because we are not going to change anything other than the payload layout in the datetime object or its pickle serialization.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15443>
_______________________________________


More information about the Python-bugs-list mailing list