Author Esben.Agerbæk.Black
Recipients Esben.Agerbæk.Black, belopolsky, lemburg, pitrou
Date 2012-04-10.20:52:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CADonfAQqXsU=enAUswfXgj2LOxHDEqypL511j_RCviXv1H=_vQ@mail.gmail.com>
In-reply-to <CAP7h-xbKmyEGYW-pkDzZh-oyDWyCFR_naCm0THrQnFESVXaYCA@mail.gmail.com>
Content
1) Yes I agree, your solution is somewhat more concise, I have corrected
the code accordingly.
2) I get errors for all my test when I build "my" python and run
"./python.exe -m test.datetimetester -j3"
    I asume this is because I have yet to implement the c version in
Modules/_datetimemodule.c
    is this the correct assumption?

Kind regards

On Tue, Apr 10, 2012 at 3:32 PM, Alexander Belopolsky <
report@bugs.python.org> wrote:

>
> Alexander Belopolsky <alexander.belopolsky@gmail.com> added the comment:
>
> On Tue, Apr 10, 2012 at 6:44 AM, Antoine Pitrou <report@bugs.python.org>
> wrote:
> > It's so easy that the patch isn't a one-liner and it seems to still have
> > bugs wrt. intended behaviour.
>
> Unless I miss something, the inverse to isocalendar() is simply
>
> from datetime import *
>
> def fromiso(year, week, day):
>    d = date(year, 1, 4)
>    return d + timedelta((week - 1) * 7 + day - d.isoweekday())
>
> At least it works in my testing:
>
> (2012, 15, 2)
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue14423>
> _______________________________________
>
History
Date User Action Args
2012-04-10 20:52:31Esben.Agerbæk.Blacksetrecipients: + Esben.Agerbæk.Black, lemburg, belopolsky, pitrou
2012-04-10 20:52:31Esben.Agerbæk.Blacklinkissue14423 messages
2012-04-10 20:52:31Esben.Agerbæk.Blackcreate