diff options
author | Raymond Hettinger <python@rcn.com> | 2008-01-10 23:00:01 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-01-10 23:00:01 (GMT) |
commit | 15b5e55b48dc9da1fdfdd4cb282da499c45da5fb (patch) | |
tree | da9994cace8f8100558e579b6507d199b45883f5 /Lib/collections.py | |
parent | d08a8ebf2a8fe9705a48468c9280445afd1df324 (diff) | |
download | cpython-15b5e55b48dc9da1fdfdd4cb282da499c45da5fb.zip cpython-15b5e55b48dc9da1fdfdd4cb282da499c45da5fb.tar.gz cpython-15b5e55b48dc9da1fdfdd4cb282da499c45da5fb.tar.bz2 |
Neaten-up the named tuple docs
Diffstat (limited to 'Lib/collections.py')
-rw-r--r-- | Lib/collections.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ if __name__ == '__main__': 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 |