summaryrefslogtreecommitdiff
path: root/Lib/UserString.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-05-14 18:39:41 +0000
committerTim Peters <tim.peters@gmail.com>2001-05-14 18:39:41 +0000
commit95b3f7862260a3f91b7095e00e50931e1902c6c9 (patch)
tree422c38906613c44468894a9d4c5aab2f90a46125 /Lib/UserString.py
parent43913dd27cc1657c0508ac07aa76582540f6964b (diff)
downloadcpython-git-95b3f7862260a3f91b7095e00e50931e1902c6c9.tar.gz
pprint's workhorse _safe_repr() function took time quadratic in the # of
elements when crunching a list, dict or tuple. Now takes linear time instead -- huge speedup for even moderately large containers, and the code is notably simpler too. Added some basic "is the output correct?" tests to test_pprint.
Diffstat (limited to 'Lib/UserString.py')
0 files changed, 0 insertions, 0 deletions