Python embedding - vector problem
1 Jul
2009
1 Jul
'09
7:07 a.m.
Hello! I'm currently embedding Python in C++ and now having some problems with std::vector. I used indexing suite to wrap it and work with it in Python like a Python list. But there is a problem: when I copy it in Python style (e.g. a[:] = b) it seems like it copies elements recursively, here is a log of copying: Copy constructor Copy constructor Destructor Copy constructor Copy constructor Copy constructor Destructor Destructor Copy constructor Copy constructor Copy constructor Copy constructor Destructor Destructor Destructor .. This is a real problem when the number of elements is more than 100000, because it takes a long time to finish. Is there anything to do with it? Regards, Chirkov Artyom
5611
Age (days ago)
5611
Last active (days ago)
0 comments
1 participants
participants (1)
-
Tyomich on the AIR