Tagged Questions
4
votes
1answer
56 views
shared object in C# to be used in python script
I have created a windows app which runs a python script. I'm able to capture the output of the script in textbox.
Now i need to pass a shared object to python script as an argument from my app.
what ...
0
votes
1answer
94 views
python ctypes, trying to find library names
I want to use C-functions in my python program and the obvious way is to implement the libraries with "ctypes".
But there is a problem. In C I include different header files that the linker will link ...
1
vote
2answers
61 views
Datatype for membership-testing in multiprocessing environment
I am working on a web crawler and I am using multiprocessing, to download and process four pages at a time. But of cause I do not intend to crawl the same page more than once.
Before I implemented ...
0
votes
1answer
310 views
Sharing data amongst processes using multiprocessing.Manager in python
Following is a tweaked example from http://docs.python.org/library/multiprocessing.html#sharing-state-between-processes
from multiprocessing import Process, Manager
def f(d):
print d ...
0
votes
1answer
98 views
PyDoc on a shared object
Small simple question, but I cannot find the answer!
Is it possible to use PyDoc on a shared object used as a module in python ? Let say that I declare all the help in that *.so and I'm able to use ...
1
vote
3answers
205 views
The best way to call C++ function from shared object in python
What's the best way to call C++ function from shared object in python. Can I can solve this problem without additional python extension?
1
vote
2answers
192 views
Where Should Shared Object Files Be Placed?
I am venturing into the land of creating C/C++ bindings for Python using pybindgen. I've followed the steps outlined under "Building it ( GCC instructions )" to create bindings for the sample files:
...
6
votes
4answers
3k views
python: sharing huge dictionaries using multiprocessing
I'm processing very large amounts of data, stored in a dictionary, using multiprocessing. Basically all I'm doing is loading some signatures, stored in a dictionary, building a shared dict object out ...
1
vote
5answers
3k views
How to create make .so files from code written in C or C++ that are usable from Python
Looking at Python modules and at code in the "lib-dnyload" directory in the Python framework, I noticed whenever code is creating some kind of GUI or graphic it imports a non-Python file with a .so ...
1
vote
2answers
3k views
Python ctypes: initializing c_char_p()
I wrote a simple C++ program to illustrate my problem:
extern "C"{
int test(int, char*);
}
int test(int i, char* var){
if (i == 1){
strcpy(var,"hi");
}
return 1;
}
I compile ...