News for hackers. Stuff that matters.
Re:Ask HN: How do you handle large Python projects? by iampims on Saturday May 28, 2016 @04:31PM (#11793342)
Not OP.

2) From the doc [1]:

> Named tuples assign meaning to each position in a tuple and allow for more readable, self-documenting code. They can be used wherever regular tuples are used, and they add the ability to access fields by name instead of position index.

They do act as immutable containers for related data. They are usually used to replace classes that don't have any behavior/methods.

They avoid confusion by having a name, and named attributes.

[1] https://docs.python.org/2/library/collections.html#collectio...

There are no comments on this comment yet.