[ISAAC J SCHWABACHER <[email protected]>] > People keep talking about infinite regress, but I don't think > there's a problem there at all because in the internals of the > time zone conversion, you can strip off the time zone before > doing arithmetic. Am I missing something here?
Yes: magic doesn't exist in the real world ;-) All places relying on classic arithmetic _could_ be repaired if timeline arithmetic were made mandatory, but finding them would require an exhaustive expert audit of all instances of aware-datetime arithmetic in all the world's code. It only requires finding one such instance to prove that code _would_ break if the default were changed. I didn't look for one - I just happened to notice one in .astimezone(). I have no idea how many such places Lennart found across the 2+ years PEP 431 was struggling to finish (but I also have no idea about the _details_ of the problems Lennart hit). _______________________________________________ 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/
