Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
If I have a program in c++, can I add my own function my_fun() written in Python to this program? Is any simple tutorial how can I do that? I found some suggestions about boost and built-in functions, but I can't find how add my own function
There is information in the Python documentation about embedded Python in C++ programs.
Here is the Python 2 version of the documentation and here is the Python 3 version
Without knowing how simple or complex my_fun is - the "very high level embedding" might be sufficient for your needs.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there some tool that can provide the flow of a python program at a functional level (eg. function A called function B with args1 which in turn called function C with args2). If not, what could be a possible starting point to create it? I thought cProfile might be of some help, but it doesn't give the proper stack trace iirc. Is there a better solution than using pdb and parsing the stack trace and providing the result in a better format?
A very interesting project to visualize the program flow is pythontutor!
There are a number of Python visual debuggers that'll do what you want:
pudb (console visual debugger, open-source)
WinPDB (free, open-source)
PyCharm (shareware, free trial, cross-platform, not open source but probably has the best interface of the three)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I want to know that if there exists any book that describes about python compiler ?
There is a book on ruby MRI in Japanese which has been translated into English. I wonder there is such book exists for python.
Sorry, if this is already asked.
If you're just talking about the CPython bytecode generator (rather then a true compiler making native executable code or any of the non-CPython implementations), the first port of call would be the Design of CPython’s Compiler page.
It's part of the Python Developer's Guide.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
What are various tools to convert Python scripts to C. I am mainly looking at speed of such tools/converter/interpreter.
Thanks,
-J
cython is what you are looking for http://www.cython.org/
Mark Dufour's Shedskin is an interesting alternative, that can parse a large subset of python, and translate it to C++. The project also has a really good blog
You could use Pypy to translate a subset of Python language to C.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am looking for a hex editor or a hex editing component written in Python. So far, the only thing I have come up with is YaHEbwinPy, but it crashes with "pure virtual function call"
upon exit when I finally got it to run.
Have you tried PSPad
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
An ARC file is a lossless data-compression format.
http://en.wikipedia.org/wiki/ARC_%28file_format%29
I've tried googling some, but the Python ARC readers are 404 errors, or cannot be found.
Anyone know of any library I can use?
If you are able to use SWIG then possibly the ARC source code from FreeBSD could be used. Or you could have a look at the source, and perhaps reimplement it in Python. I remember ARC and it did not last very long as a popular tool so I suspect that it is not overly complex.