diff options
author | Raymond Hettinger <python@rcn.com> | 2004-03-14 05:43:59 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-03-14 05:43:59 (GMT) |
commit | 49f9bd15ffeef67358a319f89faeaa31ad97d575 (patch) | |
tree | 21a7a17750ea5dc4b7042b9f35085933b42d73d5 /Misc | |
parent | 6e2ee866fa5cac9de821921a31ad4ba76dfde8d9 (diff) | |
download | cpython-49f9bd15ffeef67358a319f89faeaa31ad97d575.zip cpython-49f9bd15ffeef67358a319f89faeaa31ad97d575.tar.gz cpython-49f9bd15ffeef67358a319f89faeaa31ad97d575.tar.bz2 |
SF feature request #686323: Minor array module enhancements
array.extend() now accepts iterable arguments implements as a series
of appends. Besides being a user convenience and matching the behavior
for lists, this the saves memory and cycles that would be used to
create a temporary array object.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -182,7 +182,9 @@ Extension modules - array objects now support the copy module. Also, their resizing scheme has been updated the same as for list objects. The improves - performance for append() operations. + the performance (speed and memory usage) of append() operations. + Also, array.extend() now accepts any iterable argument for repeated + appends without needing to create another temporary array. - cStringIO.writelines() now accepts any iterable argument and writes the lines one at a time rather than joining them and writing once. |