[C++-sig] Exporting STL List to Python
Andrew Ellem
alellem at uwaterloo.ca
Fri Oct 24 01:58:49 CEST 2003
I'm trying to export a STL list to Python, but I'm having problems
when the list type is a pointer. So, list<int> works, but list<int *>
causes the error:
TypeError: No to_python (by-value) converter found for C++ type: int *
Is there something special I have to do with pointers?
I've attached my sample program (which works as expected if the int*
list is changed to int).
Thanks,
Andrew Ellem
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: iterator.cpp
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20031023/b890f71d/attachment.txt>
More information about the Cplusplus-sig
mailing list