Trailing comma (was: Re: structure in Python)
Cousin Stanley
CousinStanley at hotmail.com
Wed Oct 22 11:59:02 EDT 2003
Peter ....
Thanks for the reply ....
I usually format long lists as one item per line as well ....
I only stuck Alex' example on a single line
since it was short and I was using the interpreter ....
The style that looks the most natural and seems the easiest
to extend and edit to me is ....
x = [ 'fe' ,
'fi' ,
'fo' ,
'fum' ]
--
Cousin Stanley
Human Being
Phoenix, Arizona
More information about the Python-list
mailing list