[C++-sig] Vector indexing suite::extend should take general iterables

Andreas Klöckner lists at informa.tiker.net
Fri Dec 21 07:16:52 CET 2007


Hi all,

The extend() method that is generated as part of the vector_indexing_suite 
insists on calling __len__() on its argument, without much need. This 
prevents the useful construct vec.extend(generator expression) from working.

:(

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20071221/335207dd/attachment.pgp>


More information about the Cplusplus-sig mailing list