Need formatting suggestion for long strings

Robert Dailey rcdailey at
Fri Sep 5 22:15:02 CEST 2008

On Fri, Sep 5, 2008 at 3:06 PM, aha <aquil.abdullah at> wrote:

> Can you be more specific?  What is the formatting criteria?  Are you
> talking about formatting the string for display or are you talking
> about the source?

Apologies for the confusion.

My concern is both. Allow me to explain:

I'm concerned about the formatting of the string in that I do not want the
way I split the string up in source code to affect the way the string is
displayed to the console. In other words, in source, if I break up a single
string into multiple lines (using carriage returns), I would expect the
string to still render as a single-line string.

I'm also concerned about the source formatting, because I do not want the
single-line string to run off the edge of my display. I want it to be in
"Paragraph form" in the source code, but remain a single-line when printed.

I hope that makes sense. Let me know if I need to clarify more.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list