3 ms·
>>> print (1, 2, 3) Is that supposed to be a function call with a tuple or function call with 3 integers?
by haecceity 6y ago
>>> print (1, 2, 3)
Is that supposed to be a function call with a tuple or function call with 3 integers?
- lucb1e 6y agoWell that's the point they're making: it's a downside that you can't call a function with a tuple as first argument. So it's supposed to be an argument, hence the space, but the interpreter is blind for that and takes it as 3 arguments. And frankly, I'd say the interpreter is right: anything else would leak to really freaky bugs that I don't with upon any beginning programmer. This also kind of makes me conclude that the whole idea is folly, it just causes ambiguity and doesn't really server any purpose whatsoever.