[issue9051] Improve pickle format for aware datetime instances

Alexander Belopolsky report at bugs.python.org
Fri Jun 25 17:55:09 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

The datetime module provides compact pickled representation for date, datetime, time and timedelta instances:

type: size
date: 34
datetime: 44
time: 36
timedelta: 37


On the other hand, current pickle size for timezone is 64 and the size of an aware datetime instance is 105 bytes.

Since stability is important for pickle format, the best format should be developed before the first release to include timezone class.

----------
nosy: +fdrake
priority: low -> normal
stage: patch review -> needs patch
title: Cannot pickle timezone instances -> Improve pickle format for aware datetime instances

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


More information about the Python-bugs-list mailing list