[Python-Dev] NamedTuple (was: Py2.6 ideas)

2007-02-20 Thread python
[Raymond Hettinger] > The constructor signature ... Point(*fetchall(s)), > and it allows for direct construction with Point(2,3) without > the slower and weirder form: Point((2,3)). [Jim Jewett] >> If you were starting from scratch, I would agree >> whole-heartedly; this is one of my most frequen

[Python-Dev] NamedTuple (was: Py2.6 ideas)

2007-02-20 Thread Jim Jewett
Raymond Hettinger explained: > The constructor signature ... Point(*fetchall(s)), > and it allows for direct construction with Point(2,3) without the > slower and weirder form: Point((2,3)). If you were starting from scratch, I would agree whole-heartedly; this is one of my most frequent mistakes