If you forget a comma in a list of strings, Python (2.7) will automatically concatenate the two strings. For example:
x = ['id', 'date' 'time']
print(x)
#[id, 'datetime']
This behavior seems to run contrary to the vast majority of "use cases" where a user simply forgot the comma. This leads to either missing an error in the code or getting an odd error message. In the example above, for instance, this was a list of attributes for an object and it threw AttributeError: 'YourObjectClass' object has no attribute 'datetime'
. Is this a feature or a bug, and if it's a feature why is it a feature?