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

Return List Of New Custom-class Objects In Python C Api

I need to create a new list via the python C API containing new copies of objects of a Quaternion c… Read more Return List Of New Custom-class Objects In Python C Api

Pass Command Line Arguments To Python 2.7.6 Package Application Using C Api

I'm new to python and now I need to call a python 2.7.6 program using its C API. The python pro… Read more Pass Command Line Arguments To Python 2.7.6 Package Application Using C Api

Printing A Variable In An Embedded Python Interpreter

I have written a small C program that embeds Python. I'm setting it up correctly using Py_Initi… Read more Printing A Variable In An Embedded Python Interpreter

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

Python Ctypes: How To Pass Row Outputs From A C Function Into A Pandas Dataframe?

My question is how to parse tab-delimited output from a C function into a pandas DataFrame via ctyp… Read more Python Ctypes: How To Pass Row Outputs From A C Function Into A Pandas Dataframe?

Python C-api Object Allocation

I want to use the new and delete operators for creating and destroying my objects. The problem is p… Read more Python C-api Object Allocation

Memory Leak When Embedding Python Into My Application

The following program, when linked against python 2.7.13 and run on Windows 10 slowly but steadily … Read more Memory Leak When Embedding Python Into My Application

Assignment Into Python 3.x Buffers With Itemsize > 1

I am trying to expose a buffer of image pixel information (32 bit RGBA) through the Python 3.x buff… Read more Assignment Into Python 3.x Buffers With Itemsize > 1

Python C-api And Unicode Strings

I need to convert between python objects and c strings of various encodings. Going from a c string … Read more Python C-api And Unicode Strings

Are There Any Datetime.tzinfo Implementations In C?

I've been working on a Python library that uses a C extension module to do ISO 8601 parsing. Pa… Read more Are There Any Datetime.tzinfo Implementations In C?

"No Module Named '_'" When Importing A SWIG Module With Embedded Python

I'm trying to use SWIG with embedded Python 3.5.2. The following is built as a Windows console … Read more "No Module Named '_'" When Importing A SWIG Module With Embedded Python

Pass Command Line Arguments To Python 2.7.6 Package Application Using C API

I'm new to python and now I need to call a python 2.7.6 program using its C API. The python pro… Read more Pass Command Line Arguments To Python 2.7.6 Package Application Using C API

How To Use Setuptools Packages And Ext_modules With The Same Name?

I got the following file structure for my Python C Extension project: . ├── setup.py ├── source   … Read more How To Use Setuptools Packages And Ext_modules With The Same Name?