[Python-Dev] Issue5434: datetime.monthdelta (original) (raw)

Jess Austin jess.austin at gmail.com
Wed Apr 22 22:57:07 CEST 2009


On Thu, Apr 16, 2009 at 8:01 PM, Jess Austin <jess.austin at gmail.com> wrote:

These operations are useful in particular contexts.  What I've submitted is also useful, and currently isn't easy in core, batteries-included python.  While I would consider the foregoing interpretation of the Zen to be backwards (this doesn't add another way to do something that's already possible, it makes possible something that currently encourages one to pull her hair out), I suppose it doesn't matter.  If adding a class and a function to a module will require extended advocacy on -ideas and c.l.p, I'm probably not the person for the job.

If, on the other hand, one of the committers wants to toss this in at some point, whether now or 3 versions down the road, the patch is up at bugs.python.org (and I'm happy to make any suggested modifications).  I'm glad to have written this; I learned a bit about CPython internals and scraped a layer of rust off my C skills.  I will go ahead and backport the python-coded version to 2.3.  I'll continue this conversation with whomever for however long, but I suspect this topic will soon have worn out its welcome on python-dev.

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-Dev mailing list