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

Python's argument conventions are even more flexible; they actually work by passing a tuple of positional arguments and a dictionary of keyword arguments, and unpacking/repacking according to the signature of each function. You can pass any iterable as positional arguments and any mapping as keyword arguments. You can also retrieve the positional and keyword arguments inside a callable as a tuple and dictionary. It's the best calling convention I've ever seen.


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

Search: