Minor, minor style question

Bengt Richter bokr at oz.net
Fri Mar 1 20:38:35 EST 2002


On Fri, 01 Mar 2002 12:14:54 -0500, Justin Sheehy <justin at iago.org> wrote:
[...]
>If those really are the two things being compared, there's a far
>better option:
>
>>>> string = ("abc"
>...           "def"
>...           "xyz")
>>>> string
>'abcdefxyz'
>
I prefer
 >>> string = (
 ...     "abc"
 ...     "def"
 ...     "ghi"
 ... )
 >>> string
 'abcdefghi'

(Oops, don't mean to say I prefer ghi over xyz ;-)

Regards,
Bengt Richter




More information about the Python-list mailing list