where in the source does blender define its python to internal data types?

Just curious as to where in the source blender defines its python to internal C/C++ data type wrappers?

Mmm, from what i saw, in the game engine it is defined as attributes of a pyobject that wraps the c++ object. It is placed in the same cpp file as the class. In main blender, i think it is defined where all the rna functions are defined, and than in the ui you set up the functions to call…