[Python-Dev] dateutil (original) (raw)

Greg Ewing greg at cosc.canterbury.ac.nz
Mon Mar 15 19:39:29 EST 2004


Gustavo Niemeyer <niemeyer at conectiva.com>:

We might even get some constants like:

endofmonth = relativedelta(day=31) So that one might do "d+endofmonth".

That reads like nonsense. When I find the end of a month, I am not "adding the end of the month" to the date.

I'm becoming more and more convinced that this whole thing is an abuse of the '+' operator.

By the way, can you subtract relativedeltas as well as add them? If '+' makes sense, '-' should make sense, too.

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg at cosc.canterbury.ac.nz +--------------------------------------+



More information about the Python-Dev mailing list