Hacker News new | ask | show | jobs
by sourpoi 4378 days 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.