Hacker News new | ask | show | jobs
by pcote 4916 days ago
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.

1 comments

Indeed, although the commas are superfluous.
The space character argument is also superfluous as it is the default.

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