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

Cython Implementation No Faster Than Pure Python

For an exercise I've written a XOR doubly-linked list %%cython from cpython.object cimport PyO… Read more Cython Implementation No Faster Than Pure Python

Python Setuptools: How Can I Install Package With Cython Submodules?

I have a python package named pytools. It contains a cython-based submodule nms. When I install the… Read more Python Setuptools: How Can I Install Package With Cython Submodules?

Cython - Iterate Through Map

I was wondering if this was possible to iterate through a map directly in Cython code, ie, in the .… Read more Cython - Iterate Through Map

How To Loop Over A List In Cython Pure Mode

In an attempt to speed up struct.pack(), I have the following to pack an int to bytes: import cytho… Read more How To Loop Over A List In Cython Pure Mode

How To Document Cython Function On Readthedocs

On ReadTheDocs I am not allowed to compile cython extensions, is it possible to configure sphinx in… Read more How To Document Cython Function On Readthedocs

Do Locally Set Cython Compiler Directives Affect One Or All Functions?

I am working on speeding up some Python/Numpy code with Cython, and am a bit unclear on the effects… Read more Do Locally Set Cython Compiler Directives Affect One Or All Functions?

Is An Explicit Nul-byte Necessary At The End Of A Bytearray For Cython To Be Able To Convert It To A Null-terminated C-string

When converting a bytearray-object (or a bytes-object for that matter) to a C-string, the cython-do… Read more Is An Explicit Nul-byte Necessary At The End Of A Bytearray For Cython To Be Able To Convert It To A Null-terminated C-string

Pytest Cannot Find Module On Import But Code Runs Just Fine

The goal is to use the pytest unit test framework for a Python3 project that uses Cython. This is n… Read more Pytest Cannot Find Module On Import But Code Runs Just Fine