Created
July 24, 2013 20:15
-
-
Save dnewcome/6074130 to your computer and use it in GitHub Desktop.
Missing commas and Python automatic string concatenation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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