Top secret .NET handles – Part 1 – Dependent handles

.NET publicly has documented 4 kind of handles: Weak (also called Short Weak) – Don’t keep target object alive and will return null when object is gone. The target will become null when the object enters for finalization. WeakTrackResurrection (also called Long Weak) – Don’t keep target object alive and will return null when object is gone….

0

Calling C functions from Python – part 3 – deep dive into ctypes implementation in CPython

Last time we’ve looked at using ctypes to call C API, and writing extension module using Python/C API. Now we can finally tie these two together – looking at how ctypes is actually implemented using mix of Python/C API and Python code. You can find CPython source code here. ctypes’ C implementation is here ctypes’ python implementation…

0