ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> cpp-sig
cpp-sig
[C++-sig] Exporting STL List to Python
by Andrew Ellem other posts by this author
Oct 23 2003 4:55PM messages near this date
[C++-sig] Re: Exporting STL List to Python | [C++-sig] fat class decoration
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
Attachments:
iterator.cpp
unknown2
iterator.cpp
unknown1
unknown2


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved