News for hackers. Stuff that matters.
Re:Python idioms by 1amzave on Sunday June 12, 2011 @07:26PM (#2647635)
> 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?

Re:Python idioms by kragen on Monday June 13, 2011 @12:46AM (#2648160)
The surprising thing is that .join is a method of the separator, not of the list of pieces.
Re:Python idioms by dzderic on Monday June 13, 2011 @01:38AM (#2648242)
I'm pretty sure it's a string method so it can take any iterator as an argument.
Re:Python idioms by kragen on Monday June 13, 2011 @02:38AM (#2648324)
I think that was the deciding argument, yes.
Re:Python idioms by underwater on Sunday June 12, 2011 @11:44PM (#2648040)
I think he's referring to backwards nature of string joining in general.