I was having trouble implementing 'namedtuple._replace()', so I copied the code right off of the documentation:
Point = namedtuple('Point', 'x,y')
p = Point(x=11, y=22)
p._replace(x=33)
print p
and I got:
Point(x=11, y=22)
instead of:
Point(x=33, y=22)
as is shown in the doc.
I'm using Python 6.2 on Windows 7 edit: oops- that's Python 2.6
What's going on?