Mihail Konstantinov wrote:
Hello,
due to limitations of swig I am currently learning Py++ and Pyste
(because it seems currently to be better documented than Py++).
Does Pyste or Py++ offer typemaps like swig
(http://www.swig.org/Doc1.3/SWIGDocumentation.html#Python_nn53) that
allow any sequence of input arguments to be wrapped to other Python
arguments (like for example ...,int len,char *s,... to a Python
string) in any function where they appear, even surrounded by other
arguments?
I'm not entirely sure I understand the question. boost.python provides
to-python and from-python converters that seem to be equivalent to the
'typemap' you are referring to. These converters are generated
automatically for C++ types you export to python (
http://www.boost.org/doc/libs/1_37_0/libs/python/doc/tutorial/doc/html/python/exposing.html),
so the conversion will happen automatically when you pass such a C++
type to a python function.
You may start with reading the boost.python tutorial
(http://www.boost.org/doc/libs/1_37_0/libs/python/doc/tutorial/doc/html/index.html),
as it explains this as well as many more features of boost.python. Py++
and Pyste are just tools that generate boost.python wrapper code
automatically.
HTH,
Stefan
--
...ich hab' noch einen Koffer in Berlin...
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig