commit | 1db6f80cd5259841f1387f14bf773ebc3c946502 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Jan 07 05:50:35 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Jan 07 05:50:35 2008 +0000 |
tree | 51826f85df81b05c7fbf226672291be960db226b | |
parent | b8e0072fec28e6c1a8398b12b5b40f82e878f8b9 [diff] [blame] |
Cleanup subclassing example to more clearly show fixed-width print format.
diff --git a/Lib/collections.py b/Lib/collections.py index 1701952..d3f7b80 100644 --- a/Lib/collections.py +++ b/Lib/collections.py
@@ -123,8 +123,7 @@ def __repr__(self): return 'Point(x=%.3f, y=%.3f, hypot=%.3f)' % (self.x, self.y, self.hypot) - print Point(3, 4) - print Point(2, 5) + print Point(3, 4),'\n', Point(2, 5), '\n', Point(9./7, 6) import doctest TestResults = namedtuple('TestResults', 'failed attempted')