[Python-ideas] [Python-Dev] Issue5434: datetime.monthdelta

Jess Austin jess.austin at gmail.com
Wed Apr 22 22:59:55 CEST 2009


On Thu, Apr 16, 2009 at 6:32 PM, Jess Austin <jess.austin at gmail.com> wrote:
> My take on that is that if you want an exception for invalid dates,
> use date.replace().  If you want an exact number of days offset, use
> timedelta.  If you want the same date, some number of months offset,
> while month-end issues are silently handled, you can use the
> monthdelta patch I have at http://bugs.python.org/issue5434 and
> introduce at http://mail.python.org/pipermail/python-dev/2009-April/088794.html

I've uploaded the backported python version source distribution to
PyPI, http://pypi.python.org/pypi?name=MonthDelta&:action=display with
better-formatted documentation at
http://packages.python.org/MonthDelta/

"easy_install MonthDelta" works too.

cheers,
Jess



More information about the Python-ideas mailing list