[2.7] bpo-30283: Backport test_regrtest from master to 2.7 by vstinner · Pull Request #1513 · python/cpython (original) (raw)
Oh wow, I didn't notice that I did two mitakes: typo in the type name, and "," typo in the string describing fields. I'm surprised because "," seems to be simply ignored!? Fixed in PR 1516.
>>> collections.namedtuple('Point', 'x,y z')._fields
('x', 'y', 'z')
It seems like namedtuple tries to be kind and fix my mistakes :-)