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 p-ganssle
Recipients Ivan.Pozdeev, belopolsky, ericvw, fdrake, lemburg, p-ganssle, vstinner
Date 2019-05-08.14:53:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557327205.43.0.760813132938.issue35723@roundup.psfhosted.org>
In-reply-to
Content
> This sounds like a bug. Whether a tzinfo is a constant from a predefined set or something with a smart comparison semantic is none of datetime's business.

I'm not sure what you mean, but it was not a "bug" in the sense that it was accidental, it was a deliberate choice. It comes at least partially from the fact that arithmetic operations attach the same timezone object to the new datetimes they create. When I first found out about this behavior, I raised bpo 28601.

In any case, it's a side issue here, there are many other reasons pytz's model is incompatible with the preferred time zone model.
History
Date User Action Args
2019-05-08 14:53:25p-gansslesetrecipients: + p-ganssle, lemburg, fdrake, belopolsky, vstinner, ericvw, Ivan.Pozdeev
2019-05-08 14:53:25p-gansslesetmessageid: <1557327205.43.0.760813132938.issue35723@roundup.psfhosted.org>
2019-05-08 14:53:25p-gansslelinkissue35723 messages
2019-05-08 14:53:25p-gansslecreate