Kaydet (Commit) 213ae014 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Fixup example in docs.

üst 5681cbce
......@@ -464,7 +464,7 @@ two additonal methods and a read-only attribute.
Point(x=33, y=22)
>>> for recordnum, record in inventory:
... inventory[recordnum] = record.replace('total', record.price * record.quantity)
... inventory[recordnum] = record.replace(total = record.price * record.quantity)
.. attribute:: somenamedtuple.__fields__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment