Skip to content Skip to sidebar Skip to footer
Showing posts with the label C

Cython Memoryviews: Wrapping C Function With Array Parameter To Pass Numpy Array

I am trying to use Cython to wrap c function with an array parameter (quick_sort()), so I can pass … Read more Cython Memoryviews: Wrapping C Function With Array Parameter To Pass Numpy Array

Server And Client In Python And C

I've wrote a simple client code in python, and I'm trying to connect to a simple echo serve… Read more Server And Client In Python And C

Running C In A Browser

I've spent days of research over the seemingly simple question: is it possible to run C code in… Read more Running C In A Browser

Creating A Numpy Array In C From An Allocated Array Is Causing Memory Leaks

I have traced a memory leak in my program to a Python module I wrote in C to efficiently parse an a… Read more Creating A Numpy Array In C From An Allocated Array Is Causing Memory Leaks

Use Struct In Swig Argout Typemap

I want to call a C function from Python, which should create and initialize a struct. I want this s… Read more Use Struct In Swig Argout Typemap

Swig Function With Pointer Struct

Im new using SWIG to wrapped C shared library. I have problem to call a C function with Struct poin… Read more Swig Function With Pointer Struct

Difference Between Np.int, Np.int_, Int, And Np.int_t In Cython?

I am a bit struggled with so many int data types in cython. np.int, np.int_, np.int_t, int I guess … Read more Difference Between Np.int, Np.int_, Int, And Np.int_t In Cython?

Is It Necessary To Mention All Functions Of The Wrapped .c File In The Interface File Using Swig?

I try to wrap several .c files to make the accessible via Python. If I want to access all functions… Read more Is It Necessary To Mention All Functions Of The Wrapped .c File In The Interface File Using Swig?

What Are The Possible Pitfalls In Porting Psyco To 64-bit?

The Psyco docs say: Just for reference, Psyco does not work on any 64-bit systems at all. This… Read more What Are The Possible Pitfalls In Porting Psyco To 64-bit?

Unset Pdf Font With Script

I'm creating PDFs automatically using xhtml2pdf library. A couple months ago I had this problem… Read more Unset Pdf Font With Script

Confusing Reference Ownership: How To Properly Deallocate (via Py_decref) Objects Of An Object?

I was analysing the following code, which compiles and runs correctly, but generates a memory leak.… Read more Confusing Reference Ownership: How To Properly Deallocate (via Py_decref) Objects Of An Object?

C Dll Crack When Called From Python

I've a DLL that embeds Python interpreter using the C/Python API. The DLL works fine if called … Read more C Dll Crack When Called From Python

Ecdsa Signing And Verifying Issue Between Python Ecdsa And C Micro-ecc Library

I am facing an issue when I do the following : Created a Public Private key pair using python for … Read more Ecdsa Signing And Verifying Issue Between Python Ecdsa And C Micro-ecc Library

Build Python Package With C Bindings In Windows (vc90) Causes Lnk1181 Fatal Error

I'm trying to build a Python package (pyspotify) with bindings to a C library (libspotify). I&#… Read more Build Python Package With C Bindings In Windows (vc90) Causes Lnk1181 Fatal Error

Initializer Is Not A Constant, Error C2099, On Compiling A Module Written In C For Python

i tried to compile a python module called distance, whith c 'python setup.py install --with-c&#… Read more Initializer Is Not A Constant, Error C2099, On Compiling A Module Written In C For Python

How To Find The Number Of Parameters To A Python Function From C?

I'm using the Python C API to call Python functions from my application. I'd like to presen… Read more How To Find The Number Of Parameters To A Python Function From C?

How To Compile Static Library With -fpic From Boost.python

By default, libboostpython.a is compiled without -fPIC. But I have to make a python extension and i… Read more How To Compile Static Library With -fpic From Boost.python

How To Get Python Gui To Call A Genetic Algorithm Written In C

I'm new to Stack Overflow. I have a genetic algorithm written in C that accepts user input in … Read more How To Get Python Gui To Call A Genetic Algorithm Written In C

Signed Equivalent Of A 2's Complement Hex Value

On the python terminal when I do :- In [6]: 0xffffff85 Out[6]: 4294967173 In [9]: '%d' %(0… Read more Signed Equivalent Of A 2's Complement Hex Value

Python : Socket Sending Struct(having C Stuct As Example)

Below Are Struct from C,and i m trying Convert to Python, and use Socket to sending out the struct … Read more Python : Socket Sending Struct(having C Stuct As Example)