Walrusing Around
This is -- well -- it is what it is. I don't have to like it.
>>> t_s = (8063599, 0) >>> fields = [(t_s := divmod(t_s[0], b))[1] for b in (60, 60, 24, 7)] >>> list(reversed(fields + [t_s[0]])) [13, 2, 7, 53, 19]
It works and shows how the assignment operator works …