News for hackers. Stuff that matters.
Re:Redesigning Python's named tuples by filmor on Friday September 01, 2017 @04:14AM (#15146939)
That's not the point, destructuring works fine on classes implementing `__iter__`:

    class A:
        def __iter__(self):
            return iter(range(3))

    for x, y, z in [A(), A(), A()]:
        print(x, y, z)

Prints

    0 1 2
    0 1 2
    0 1 2
Re:Redesigning Python's named tuples by carapace on Friday September 01, 2017 @04:55PM (#15152333)
TIL, cheers!