Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zem
on Aug 28, 2023
|
parent
|
context
|
favorite
| on:
Python Type Hints – *args and **kwargs (2021)
that's what the splat operator is for - it unpacks a list into separate arguments. in this case e.g.
xs = (1, 2, 3) f(*xs)
is equivalent to f(1, 2, 3), not f((1, 2, 3))
uxp8u61q
on Aug 28, 2023
[–]
And
that's
readable?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: