11 ms·
> Calling it from the empty string concatenates the pieces with no separator, which is a Python quirk and rather surprising at first. This is stated twice, but
by 1amzave 15y ago
> Calling it from the empty string concatenates the pieces with no separator, which is a Python quirk and rather surprising at first.
This is stated twice, but I can't make any sense of it. How is this even remotely surprising? What else would anyone possibly expect joining with the empty string as the separator to do?
- underwater 15y agoI think he's referring to backwards nature of string joining in general.
- kragen 15y agoThe surprising thing is that .join is a method of the separator, not of the list of pieces.