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?

Why Is It Slower To Iterate Over A Small String Than A Small List?

I was playing around with timeit and noticed that doing a simple list comprehension over a small st… Read more Why Is It Slower To Iterate Over A Small String Than A Small List?

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

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

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

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

Migrating From Cpython To Jython

I'm considering moving my code (around 30K LOC) from CPython to Jython, so that I could have be… Read more Migrating From Cpython To Jython

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?