[CentralOH] Python Puzzle: Day generator: Factor Out Arg Parsing, Simplify Loop Test

Joe Shaw joe at joeshaw.org
Thu Feb 5 17:19:42 CET 2015


Hi,

On Thu, Feb 5, 2015 at 11:02 AM, <jep200404 at columbus.rr.com> wrote:
>
> How does your code behave if your day_generator is passed
> a datetime.date object for date arguments (as compared to
> passing a datetime.datetime object)?
>

It blows up.  I've fixed it in the gist.

Thanks,
Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/centraloh/attachments/20150205/5417d559/attachment.html>


More information about the CentralOH mailing list