News for hackers. Stuff that matters.
Re:Python for Beginners by riz_ on Wednesday December 26, 2012 @10:20AM (#4969484)
From the Lists Chapter:

Lists are very easy to create, these are some of the ways to make lists:

emptyList = [ ]

strlist = ['one, two, three, four, five']

I find the "strlist" example very misleading, as a beginner might think we are creating a list of five strings, when it is actually just one string with some commas in it.

Re:Python for Beginners by pcote on Wednesday December 26, 2012 @12:05PM (#4969922)
Likely an autopilot bug. It's almost second nature for a lot of coders to do this when making a list of strings.

strlist = 'one, two, three, four, five'.split(", ")

That habit probably just kicked in a little when putting in that example.

Re:Python for Beginners by pstuart on Wednesday December 26, 2012 @01:01PM (#4970148)
Indeed, although the commas are superfluous.
Re:Python for Beginners by bsagert on Thursday December 27, 2012 @01:47AM (#4972625)
The space character argument is also superfluous as it is the default.

strlist = 'one two three four five'.split()