I have been looking at the documentation for the Python datetime library, and I am confused by the call signatures. For example, datetime.timedelta
can be called in the following way
datetime.timedelta(10, 68400)
However, its call signature is documented as
datetime.timedelta([days[, seconds[, microseconds[, milliseconds[, minutes[, hours[, weeks]]]]]]])
I am uncertain how to interpret the nested lists in the call signature, and how they relate to the ways in which you can call timedelta
.