Alexander Belopolsky <alexander.belopol...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14423>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to