This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients belopolsky, jaraco, serhiy.storchaka
Date 2016-11-20.17:34:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479663291.26.0.164398662695.issue28752@psf.upfronthosting.co.za>
In-reply-to
Content
> Other way is to define __reduce_ex__ instead of __reduce__ in datetime.date.

Sorry, I was wrong. This would wouldn't work with C implementation. And explicitly setting __reduce__ = object.__reduce__ doesn't work. The only way is to define both __reduce_ex__ and __reduce__ for time and datewtime.
History
Date User Action Args
2016-11-20 17:34:51serhiy.storchakasetrecipients: + serhiy.storchaka, jaraco, belopolsky
2016-11-20 17:34:51serhiy.storchakasetmessageid: <1479663291.26.0.164398662695.issue28752@psf.upfronthosting.co.za>
2016-11-20 17:34:51serhiy.storchakalinkissue28752 messages
2016-11-20 17:34:51serhiy.storchakacreate