2 ms·
Slight typo - the sample replacement should read: def wat(*args) a, b, *args = args ..But I don't see how moving required arguments from the signature t
by sourpoi 12y ago
Slight typo - the sample replacement should read:
def wat(*args)
a, b, *args = args
..But I don't see how moving required arguments from the signature to the body (or turning a TypeError into a ValueError) might be useful, or how it differs from the presentation's first advanced unpacking example.