[issue9051] Improve pickle format for aware datetime instances

2014-06-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I see review links for both of your files Now I do too. I guess they just take time to appear. Note that I unlinked the file that Antoine complained about. -- ___ Python tracker

[issue9051] Improve pickle format for aware datetime instances

2014-06-29 Thread Ned Deily
Ned Deily added the comment: FWIW, I see review links for both of your files: all the way over to the right in the Files section. -- nosy: +ned.deily ___ Python tracker ___ _

[issue9051] Improve pickle format for aware datetime instances

2014-06-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Hmm. Still no "review" link. Is there something special that I need to do to get it? Use different name, maybe? -- ___ Python tracker _

[issue9051] Improve pickle format for aware datetime instances

2014-06-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue9051] Improve pickle format for aware datetime instances

2014-06-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17769/issue9051-utc-pickle-proto.diff ___ Python tracker ___ ___ Pyt

[issue9051] Improve pickle format for aware datetime instances

2014-06-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I updated the patch. Please note that it only includes python code, so you need to suppress _datetime acceleration to test: >>> import sys >>> sys.modules['_datetime'] = None >>> from pickle import * >>> from datetime import * >>> dumps(timezone.utc) b'\

[issue9051] Improve pickle format for aware datetime instances

2014-06-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your latest patch doesn't have a review link. Would you like to regenerate it against the latest default? -- ___ Python tracker ___

[issue9051] Improve pickle format for aware datetime instances

2014-06-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +alexandre.vassalotti, haypo, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue9051] Improve pickle format for aware datetime instances

2011-01-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue9051] Improve pickle format for aware datetime instances

2010-07-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Intern UTC timezone ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue9051] Improve pickle format for aware datetime instances

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a python prototype implementing interned UTC instance pickling. The patch is against sandbox revision r82218 of datetime.py. Note that the pickling protocol requires that an instance or factory function is defined at the module level. T

[issue9051] Improve pickle format for aware datetime instances

2010-06-25 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: As part of this, we should ensure references to common timezones, like UTC, only create references to a single instance rather than filling memory with multiple instances. One consequence of this is that shared instances should probably be immutable. -

[issue9051] Improve pickle format for aware datetime instances

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky 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 da