Skip to content

Instantly share code, notes, and snippets.

@dnewcome
Created July 24, 2013 20:15
Show Gist options
  • Save dnewcome/6074130 to your computer and use it in GitHub Desktop.
Save dnewcome/6074130 to your computer and use it in GitHub Desktop.
Missing commas and Python automatic string concatenation
# omitting a comma after the second field
# does not generate an error
fields = [
'field1',
'field2'
'field3'
]
# in fact
'field1' 'field2' == 'field1field2'
# so the list effectively becomes
fields = [
'field1',
'field2field3'
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment