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

Python: Where Is The Code For Os.mkdir?

I've been looking through the code of the os module (just to be clear, I'm looking at the f… Read more Python: Where Is The Code For Os.mkdir?

Cpython From Java?

I need to call CPython code from Java. What tools/APIs/libraries exist out there to help me do this… Read more Cpython From Java?

Backward Compatibility Of Python 3.5 For External Modules

I have built a Python C++ module based on Python 3.4.3. Later I have installed Python 3.5, and trie… Read more Backward Compatibility Of Python 3.5 For External Modules

Causes For Inconsistent Behavior When Adding Nans To A Set

There is puzzling (at least for me) behavior of Python's set in combination with NaNs (here liv… Read more Causes For Inconsistent Behavior When Adding Nans To A Set

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

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 To Create The Int 1 At Two Different Memory Locations?

I want to show someone how using is instead of == to compare integers can fail. I thought this wou… Read more How To Create The Int 1 At Two Different Memory Locations?

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