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

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?

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

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

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 String Addition Optimisation Failure Case

The Question Why, in CPython, does def add_string(n): s = '' for _ in range(n): … Read more Cpython String Addition Optimisation Failure Case

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