Actually, that&#39;s a point.<br><br>If its&#39; the 31st of Jan, then +1 monthdelta will be 28 Feb and another +1 will be 28 March whereas 31st Jan +2 monthdeltas will be 31 March. <br><br>That&#39;s the kind of thing which really needs to be documented, or I think people really will make mistakes.<br>
<br>For example, should a monthdelta include a goal-day so that the example above would go 31 Jan / 28 Feb / 31 March?<br><br>-T<br><br><div class="gmail_quote">On Fri, Apr 17, 2009 at 11:55 AM, Greg Ewing <span dir="ltr">&lt;<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Jess Austin wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This is a perceptive observation: in the absence of parentheses to<br>
dictate a different order of operations, the third quantity will<br>
differ from the second.<br>
</blockquote>
<br></div>
Another aspect of this is the use case mentioned right<br>
at the beginning of this discussion concerning a recurring<br>
event on a particular day of the month.<br>
<br>
If you do this the naive way by just repeatedly adding one<br>
of these monthdeltas to the previous date, and the date is<br>
near the end of the month, it will eventually end up<br>
drifting to the 28th of every month.<br>
<br>
-- <br><font color="#888888">
Greg</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-dev" target="_blank">http://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/tleeuwenburg%40gmail.com" target="_blank">http://mail.python.org/mailman/options/python-dev/tleeuwenburg%40gmail.com</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--------------------------------------------------<br>Tennessee Leeuwenburg<br><a href="http://myownhat.blogspot.com/">http://myownhat.blogspot.com/</a><br>&quot;Don&#39;t believe everything you think&quot;<br>