Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81885
| From | Christian Gollwitzer <auriocus@gmx.de> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Python, C++ interaction |
| Date | 2014-12-04 09:49 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <m5p753$j77$1@dont-email.me> (permalink) |
| References | <mailman.16522.1417595824.18130.python-list@python.org> |
Am 03.12.14 09:29, schrieb Michael Kreim: > I did some googleing on extending Python by C++ code but I did not find > something that satisfies me. I gave SWIG a try, but several webpages > disadvised me of using it. Also my small experiments did not work. I don't know why SWIG is discouraged; in my experience, it is a very easy way to generate the wrapping code around C++ classes, and also flexible in many directions. It can be easily extended for new datatypes (there is a numpy interface module, for instance), and also generates code for other scripting languages as well. What specifically did you try, and what failed? Concerning the callbacks, I don't know about these, but hopefully you are aware that you can easily loose the C++ speed advantage by using Python lambdas, since those have to go through the Python interpreter. Christian
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Python, C++ interaction Michael Kreim <michael@perfect-kreim.de> - 2014-12-03 09:29 +0100 Re: Python, C++ interaction Christian Gollwitzer <auriocus@gmx.de> - 2014-12-04 09:49 +0100
csiph-web