Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think what GP is saying is that with explicit kwargs you can't express variadic signatures, i.e. "this function takes one int positional, and then any number of key/value pairs where the values are lists". The variable length is the important bit.

It's certainly debatable whether doing that is better than passing a single argument whose value is a dict with that same type, but many people do prefer the variadic args/kwargs style.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: