On 08/17/2015 10:58 AM, Chris Barker wrote: > On Sun, Aug 16, 2015 at 7:29 PM, Guido van Rossum <[email protected] > And while I'm at it, I don't think PEP 500 is the answer. > > > I know I really don't like the idea of delegating everything to the > tzinfo object, it simply doesn't seem to be the right place for things > other than, timezone info / operations.
Datetime arithmetic with a timezone-aware datetime _is_ a "timezone operation". Doing it correctly requires knowledge of timezone transitions. I think PEP 500 is an elegant and flexible solution, and the alternatives discussed so far (e.g. hardcoding isinstance checks) are much less flexible for users of the datetime module, without compensating benefit. I haven't seen anyone yet present a specific downside to the PEP 500 approach. But that's all off-topic for this thread, which is about PEP 495, not PEP 500. Carl
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Datetime-SIG mailing list [email protected] https://mail.python.org/mailman/listinfo/datetime-sig The PSF Code of Conduct applies to this mailing list: https://www.python.org/psf/codeofconduct/
