circuitpython/shared-bindings
Jeff Epler e188ae8b23 time: struct_time: allow construction like a namedtuple, too
Whenever there is more than one argument, delegate the operation to
namedtuple_make_new.  This allows other circuitpython-compatible
idioms, like with keywords
    time.struct_time(tm_year=2000, tm_mon=1, tm_mday=1, tm_hour=0,
        tm_min=0, tm_sec=14, tm_wday=5, tm_yday=5, tm_isdst=-1)
with 9 positional arguments, etc.

The only vaguely plausible CPython behavior still not permitted in
CircuitPython that I found is constructing a timetuple from a length-9
list, a la
    time.struct_time(list(time.localtime())

Even better, by getting rid of an error message, the build shrinks a
tiny bit.
2019-11-26 08:45:44 -06:00
..
2019-11-21 16:39:57 -08:00
2019-10-27 16:41:56 -05:00
2019-10-27 16:42:18 -05:00
2019-09-03 22:44:43 -05:00
2019-08-25 14:57:29 -05:00
2019-08-27 12:49:46 -07:00
2019-10-29 09:58:44 -04:00
2019-06-18 16:59:05 -05:00
2018-08-07 14:58:57 -07:00
2019-11-15 13:04:25 -05:00
2019-10-25 10:56:41 -07:00
2018-08-07 14:58:57 -07:00
2019-10-23 15:48:34 -07:00
2018-12-30 22:49:20 -05:00
2019-03-19 18:37:41 -07:00
2019-05-30 19:02:47 -07:00