I am running on Python 3.6.1 and today I missed a comma, as follows:
nt = namedtuple('Record', ['c', 'a' 'b'])
# instead the following is what I actually want
nt = namedtuple('Record', ['c', 'a', 'b'])
But I just wonder why the first way is valid Python in any way? Should not it complains with syntax error?
I just tried in 3.5.2 and 2.7.11. Seems all valid. But it is valid?