[issue15443] datetime module has no support for nanoseconds

Tim Peters report at bugs.python.org
Tue Jul 15 03:51:21 CEST 2014


Tim Peters added the comment:

Yup, it's definitely more than 8 bytes.  In addition to the comments you quoted, an in-memory datetime object also has a full Python object header, a member to cache the hash code, and a byte devoted to saying whether or not a tzinfo member is present.

Guessing Guido was actually thinking about the pickle size - but that's 10 bytes (for a "naive" datetime object).

----------

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


More information about the Python-bugs-list mailing list