diff options
author | Raymond Hettinger <python@rcn.com> | 2003-04-23 17:27:00 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-04-23 17:27:00 (GMT) |
commit | 88ba1e39ecf32d0a2328358351fff3006a5b30b9 (patch) | |
tree | 62ec435a8f72c680b192c3e95991e7fb602d6703 /Modules/expat | |
parent | 444e434011408d474cbd167c2276ad51259eda20 (diff) | |
download | cpython-88ba1e39ecf32d0a2328358351fff3006a5b30b9.zip cpython-88ba1e39ecf32d0a2328358351fff3006a5b30b9.tar.gz cpython-88ba1e39ecf32d0a2328358351fff3006a5b30b9.tar.bz2 |
SF Patch 685051: fix for 680789: reprs in arraymodule
(contributed by logistix; substantially reworked by rhettinger).
To create a representation of non-string arrays, array_repr() was
starting with a base Python string object and repeatedly using +=
to concatenate the representation of individual objects.
Logistix had the idea to convert to an intermediate tuple form and
then join it all at once. I took advantage of existing tools and
formed a list with array_tolist() and got its representation through
PyObject_Repr(v) which already has a fast implementation for lists.
Diffstat (limited to 'Modules/expat')
0 files changed, 0 insertions, 0 deletions