commit | 15b5e55b48dc9da1fdfdd4cb282da499c45da5fb | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Jan 10 23:00:01 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Jan 10 23:00:01 2008 +0000 |
tree | da9994cace8f8100558e579b6507d199b45883f5 | |
parent | d08a8ebf2a8fe9705a48468c9280445afd1df324 [diff] [blame] |
Neaten-up the named tuple docs
diff --git a/Lib/collections.py b/Lib/collections.py index 267c39f..b03a733 100644 --- a/Lib/collections.py +++ b/Lib/collections.py
@@ -123,7 +123,7 @@ def hypot(self): return (self.x ** 2 + self.y ** 2) ** 0.5 def __str__(self): - return 'Point: x=%6.3f y=%6.3f hypot=%6.3f' % (self.x, self.y, self.hypot) + return 'Point: x=%6.3f y=%6.3f hypot=%6.3f' % (self.x, self.y, self.hypot) for p in Point(3, 4), Point(14, 5/7.): print p