Message157907
| Author |
belopolsky |
| Recipients |
Esben.Agerbæk.Black, belopolsky, lemburg, pitrou, vstinner |
| Date |
2012年04月09日.21:50:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1334008213.67.0.732587422156.issue14423@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Before you invest in a C version, let's discuss whether this feature is desirable. The proposed function implements a very simple and not very common calculation. Note that even dateutil does not provide direct support for this: you are instructed to use relativedelta to add weeks to January 1st of the given year.
If we are going to add yet another way to construct dates, I would like to consider some universal solution. For example, a "make_date" function that would behave similar to the timedelta constructor: take a large number of keyword arguments and return a date. For example,
make_date(year=2000, isoweek=5, weekday=3)
make_date(year=2000, isoday=63)
etc. |
|