Python/sysmodule/init

Search:
Group by:
Source   Edit  

Procs

proc PySys_Create(sysmod: var PySysModuleObject): PyBaseErrorObject {.
    ...raises: [], tags: [RootEffect, WriteIOEffect], forbids: [].}

_PySys_Create called by pylifecycle:pycore_interp_init

Create sys module without all attributes. PySys_UpdateConfig() should be called later to add remaining attributes.

Source   Edit  
proc PySys_UpdateConfig(sysmod: var PySysModuleObject; config: PyConfig): PyBaseErrorObject {.
    ...raises: [], tags: [RootEffect], forbids: [].}

_PySys_UpdateConfig

Update sys attributes for a new PyConfig configuration. This function also adds attributes that _PySys_InitCore() didn't add.

Source   Edit