4 ms·
I normally just do this for multiline strings: s = "\n".join(["one","two","three"])
by noinsight 12y ago
I normally just do this for multiline strings:
s = "\n".join(["one","two","three"])
- philsnow 12y agoThis happens at run time whereas IIRC the string literal is crammed pre-joined into the ,pyc / .pyo file. The performance hit of doing this kind of thing really adds up in a larger app.