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

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

How To Edit Cpython's Lib/importlib/_bootstrap.py?

I would like to play with CPython's Lib/importlib/_bootstrap.py file, but my edits in my curren… Read more How To Edit Cpython's Lib/importlib/_bootstrap.py?

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

Undefined Symbol: Pyos_mystrnicmp

I tried installing pysqlite, but I'm having some trouble using it. >>> import pysqlite… Read more Undefined Symbol: Pyos_mystrnicmp

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?

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

Default __str__ Method For An Instance

I have a class without a str or repr method. And when I call it: >>> from ingest.tpr impor… Read more Default __str__ Method For An Instance

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

How Does Module Loading Work In Cpython?

How does module loading work in CPython under the hood? Especially, how does the dynamic loading of… Read more How Does Module Loading Work In 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?

What Does __flags__ In Python Type Used For

I have been read pickle source code recently. The following code in copy_reg make me confused: _HEA… Read more What Does __flags__ In Python Type Used For