On Fri, 2005-09-02 at 00:40, Martin Blais wrote: > Talking about cleanliness, I'm not sure which is cleaner:: > > print >> sys.stderr, "This is a long sentence that I " \ > "had to cut in two." > > print("This is a long sentence that I " > "had to cut in two.", stream=sys.stderr) > > Sometimes I'll do this because I don't like the backslashes:: > > print >> sys.stderr, ("This is a long sentence that " > "Had to cut in two.") Or maybe print >> sys.stderr, "\ This is a long sentence that I didn't have to cut in two." A bit yucky, but easily extended to TQS when your message gets longer and longer. -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 307 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/python-dev/attachments/20050902/094d121d/attachment.pgp
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4