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?

Is There A Way To Run Cpython On A Diffident Thread Without Risking A Crash?

I have a program that runs lots of urllib requests IN AN INFINITE LOOP, which makes my program real… Read more Is There A Way To Run Cpython On A Diffident Thread Without Risking A Crash?

__builtin__.iterator Does Not Exist?

Consider: Python 2.7.3 (default, Aug 2 2012, 16:55:39) [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on… Read more __builtin__.iterator Does Not Exist?

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?

Error When Compiling CPython: Cannot Convert From PyLongObject To PyObject

I've been trying to learn to use CPython and for it, I tried creating a simple factorial functi… Read more Error When Compiling CPython: Cannot Convert From PyLongObject To PyObject