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

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

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

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

Undefined Symbol: Pyos_mystrnicmp

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

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?

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

Python: Equality For Nan In A List?

I just want to figure out the logic behind these results: >>>nan = float('nan') &g… Read more Python: Equality For Nan In A List?

What Happens Behind The Scenes When Python Adds Small Ints?

I was fiddling around with id recently and realized that (c?)Python does something quite sensible: … Read more What Happens Behind The Scenes When Python Adds Small Ints?