Re:Type hinting for Python
by johnloeber on Tuesday January 06, 2015 @12:49PM
(#8845774)
Amusingly, your pythonic example isn't even pythonic. The first line should read def foo(*args):
[ Parent
| on HN ]
Why? If a, b and c are separate args why not name them? Especially if they're of different types (as per second example).
[deleted]
Sure, but isn't the comment obviously a demonstration of formal parameter syntax rather than functionality? Surely the more idiomatic Python would be not to write the function at all if it does nothing (and then there's no example code to illustrate with).