Minor, minor style question
Quinn Dunkan
quinn at barf.ugcs.caltech.edu
Fri Mar 1 15:51:56 EST 2002
On Fri, 1 Mar 2002 11:05:41 -0800, Emile van Sebille <emile at fenx.com> wrote:
>claird at starbase.neosoft.com (Cameron Laird) writes:
>
>> Why would I prefer
>> string = ""
>> string = string + "abc "
>> string = string + "def "
>> string = string + "xyz"
>> over
>> string = "abc " + \
>> "def " + \
>> "xyz"
>> ?
>
>Isn't the question about line continuations? I don't use them (except
>on rare occasions), preferring to do something more like:
>
>string = ('abc' +
> 'def' +
> 'xzy')
Or, if they are all string constants:
string = ('abc'
'dev'
'xyz')
More information about the Python-list
mailing list