Module import path when embedding python in C

Christian Heimes lists at
Fri Sep 26 10:24:19 CEST 2008

graph wrote:
> Does anyone know why PySys_GetObject wasn't documented until somewhat
> recently ( if it has been part of the
> system module interface since at least Python 1.5.2?  Is it not
> supposed to be used?  What's the difference the above and importing
> the sys module and then doing the append?

The PySys_Get/SetObject methods are faster than PyImport. The methods 
access the sys module directly without going through the import API. The 
funcitons weren't documented because they were simply forgotten.


More information about the Python-list mailing list