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
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
