diff options
author | Raymond Hettinger <python@rcn.com> | 2008-01-07 05:50:35 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-01-07 05:50:35 (GMT) |
commit | 1db6f80cd5259841f1387f14bf773ebc3c946502 (patch) | |
tree | 51826f85df81b05c7fbf226672291be960db226b /Lib/collections.py | |
parent | b8e0072fec28e6c1a8398b12b5b40f82e878f8b9 (diff) | |
download | cpython-1db6f80cd5259841f1387f14bf773ebc3c946502.zip cpython-1db6f80cd5259841f1387f14bf773ebc3c946502.tar.gz cpython-1db6f80cd5259841f1387f14bf773ebc3c946502.tar.bz2 |
Cleanup subclassing example to more clearly show fixed-width print format.
Diffstat (limited to 'Lib/collections.py')
-rw-r--r-- | Lib/collections.py | 3 |
1 files changed, 1 insertions, 2 deletions
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 @@ if __name__ == '__main__': 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') |