3 ms·
>as it's implemented like a method rather than a function Why should it be a function? It can be a method on sequence like objects (trait)... Python itself ha
by coldtea 9y ago
>as it's implemented like a method rather than a function
Why should it be a function? It can be a method on sequence like objects (trait)...
Python itself has tons of those...
- cup-of-tea 9y agoBecause the parameters to zip aren't positional, they are just multiple parameters of the same type. Python does have some that annoy me a bit. I think str.join would be clearer as a function, but at least that does have a positional parameter.
- coldtea 9y ago>Because the parameters to zip aren't positional, they are just multiple parameters of the same type. How is that a counter-argument? It makes sense then that the method belongs to that type (iteratables).