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.
diff --git a/Misc/NEWS b/Misc/NEWS
index dfe6e2f..d4aef1e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -182,7 +182,9 @@
- 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.