On Donnerstag 25 Oktober 2007, Jason Tackaberry wrote:
> The idea was mins allows an interval, whereas min was a fixed time.  An
> interval is just a shorthand way of specifying a list of possible values
> for min.  So how about we just let the kwargs accept sequences or range
> objects.
>
>   t.schedule(min = 0) # on the hour every hour
>   t.schedule(min = range(0, 60, 50)) # every 5 minutes
>   t.schedule(hour = [0, 12], min = 30) # at half past midnight and noon

Looks great, and quite pythonic IMO. :-)

-- 
Ciao, /  /                                                    .o.
     /--/                                                     ..o
    /  / ANS                                                  ooo

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to