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

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

Strange Segmentation Fault In Pyarray_simplenewfromdata

My question is similar 'in spirit' to Segmentation fault in PyArray_SimpleNewFromData I hav… Read more Strange Segmentation Fault In Pyarray_simplenewfromdata

Determine Whether A Python Function Is Already Implemented In C Extension

Suppose I have a Python program that runs slow- after profiliing and I have identified the bottlene… Read more Determine Whether A Python Function Is Already Implemented In C Extension

How To Expose A Constexpr To Cython?

A file Globals.h contains the following definition of a constant: namespace MyNameSpace { /** Cons… Read more How To Expose A Constexpr To Cython?

Building Python Package Containing Multiple Cython Extensions

I have the following directory structure: testcython/ setup.py testcython/ __init__… Read more Building Python Package Containing Multiple Cython Extensions

Can A Cdef Class Store A Variable That Isn’t (type-)declared?

I’m curious if the following is valid, where only some of the variables are type-declared in a type… Read more Can A Cdef Class Store A Variable That Isn’t (type-)declared?

How Can I Set Cython Compiler Flags When Using Pyximport?

This question (How does one overwrite the default compile flags for Cython when building with distu… Read more How Can I Set Cython Compiler Flags When Using Pyximport?

Hello World From Cython Wiki Not Working

I'm trying to follow this tutorial from Cython: http://docs.cython.org/docs/tutorial.html#the-b… Read more Hello World From Cython Wiki Not Working