[issue9051] Improve pickle format for timezone aware datetime instances

Serhiy Storchaka report at bugs.python.org
Tue Sep 22 21:16:14 CEST 2015


Serhiy Storchaka added the comment:

For stability it is better to use public name 'timezone.utc' instead of '_utc'. Dotted names now are supported with all protocols.

> but there is still room for improvement:

Don't worry about this. When you pickle a number of datetime objects with the same timezone, the timezone is pickled only once and for all other datetime objects only a reference is used.

----------
nosy: +serhiy.storchaka
type: behavior -> enhancement
versions: +Python 3.6 -Python 3.5

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


More information about the Python-bugs-list mailing list