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

Serious question, I see this from time to time, but have no idea what triple double-quotes means? These """..."""

Mentally, I transcribe it as CAPS LOCK, and ignore what is written. Should I interpret it in another way?



They're from Python; they're a third kind of string delimiter, alongside '...' and "...". They allow multi-line strings (or, as in this case, quotations) that contain both unescaped " and ' characters.




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

Search: