by postfuturist · 16y ago · 0 comments
def search(*args) : ... # args is a sequence
search(this, that, the_other_thing)
Edit: found the HN FAQ entry on formatting comments, finally.Edit: Parent comment fixed by postfuturist.
def search(foo, bar, *, baz):
Then, foo and bar would be named arguments, and baz would need to be passed by keyword.Really? Where?
def search(*args): ...