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

Concurrency: Are Python Extensions Written In C/c++ Affected By The Global Interpreter Lock?

One of Python's strongest points is the ease of writing C and C++ extensions to speed up proces… Read more Concurrency: Are Python Extensions Written In C/c++ Affected By The Global Interpreter Lock?

How To Embed C Code In Python Program?

i want to write a program using multi-threading, raw sockets, to scan the ports in python i have a … Read more How To Embed C Code In Python Program?

How To Do Simple, Reliable Network Messaging?

I'm using sockets for communication between various processes right now. Everything is running … Read more How To Do Simple, Reliable Network Messaging?

Installing Bitarray In Python 2.6 On Windows

I would like to install bitarray in Windows running python 2.6. I have mingw32 installed, and I hav… Read more Installing Bitarray In Python 2.6 On Windows

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

Value Of Py_none

It is clear to me that None is used to signify the lack of a value. But since everything must have … Read more Value Of Py_none

How Do I Convert A Python List Of Lists Of Lists Into A C Array By Using Ctypes?

As seen here How do I convert a Python list into a C array by using ctypes? this code will take a p… Read more How Do I Convert A Python List Of Lists Of Lists Into A C Array By Using Ctypes?

Python C Extension: Pyeval_getlocals() Returns Null

I need to read local variables from Python in C/C++. When I try to PyEval_GetLocals, I get a NULL. … Read more Python C Extension: Pyeval_getlocals() Returns Null