assigning multi-line strings to variables
lie.1296 at gmail.com
Fri Apr 30 21:43:11 CEST 2010
On 05/01/10 03:56, Alf P. Steinbach wrote:
>> Use triple-quoted, let them flow, done. I've never heard of any text
>> editor in current use without text wrapping capability, even Notepad has
>> it. And if I've got 5k of text in source code without line breaks I
>> wouldn't want that silly string to disturb my view of the code. You
>> argument aren't even convincing.
> You'd put a 5K line in your source code, + you're working with text
> wrapping in your editor.
In the other hand, you'd put a 5K line in your source code, + you're
writing, debugging, and running a script to wrap and put various escapes
for quotes and newlines, + you need to figure out how to force that
script to accept your 5k string.
More information about the Python-list