]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
* Updated repr.py to handle set() and frozenset().
authorRaymond Hettinger <python@rcn.com>
Fri, 21 May 2004 10:00:15 +0000 (10:00 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 21 May 2004 10:00:15 +0000 (10:00 +0000)
commitba6cd3647ff5bd0415dcdb4649a5e6a7a88c0e72
tree8355d4adb9d4c4a618d7894c6155dbce88ef4fce
parent83ee79524ae6462b7b044bb9cf2f625231814dba
* Updated repr.py to handle set() and frozenset().
* Factored out common code to a single private function.
* Use str.join() instead of + concatenation
* Loop over elements directly instead of using indexing
* Use % operator for formatting
Lib/repr.py
Lib/test/test_repr.py