[Python-Dev] Python-Dev Digest, Vol 69, Issue 143

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 17 03:55:58 CEST 2009


Jess Austin wrote:

> This is a perceptive observation: in the absence of parentheses to
> dictate a different order of operations, the third quantity will
> differ from the second.

Another aspect of this is the use case mentioned right
at the beginning of this discussion concerning a recurring
event on a particular day of the month.

If you do this the naive way by just repeatedly adding one
of these monthdeltas to the previous date, and the date is
near the end of the month, it will eventually end up
drifting to the 28th of every month.

-- 
Greg


More information about the Python-Dev mailing list