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'\x80\x03cdatetime\n_utc\nq\x00.' ---------- Added file: http://bugs.python.org/file35804/issue9051-utc-pickle-proto.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9051> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com