Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hah, I use the join function when I write them. Can you elaborate upon why that’s bad?


Doesn't require a whole lot of elaboration.

",".join(["a,b","c","d\ne","\"f\",g\""])

yields:

a,b,c,d

e,"f",g"

Try opening that in any csv reader.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: