[C++-sig] One more question about method with argc, argv like arguments

Emmanuel Taurel etaurel at cells.es
Tue Oct 25 11:13:27 CEST 2005


Hello everybody,

 

Certainly this question has already been posted on this list but I don't
really find example of how it could be solved.

I want to wrap a class which has constructor taking arguments like the
famous "int argc, char *argv[]"

and build instance of this class in python using
my_class(len(sys.argv),argv)

 

It is a quite common problem. As the second parameter is a pointer to
pointer I guess that

there is a special trick to be used here.

 

Can anyone send me brief example of how this could be wrapped ?

 

Thank's in advance

 

Emmanuel Taurel (etaurel at cells.es)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20051025/c97d42a3/attachment.htm>


More information about the Cplusplus-sig mailing list