Set list of module names to try to load in forkserver process. The on_error parameter controls how import failures are handled: "ignore" (default) silently ignores failures, "warn" emits warnings, and "fail" raises exceptions breaking the forkserver context.
(self, module_names, *, on_error='ignore')
| 184 | set_executable(executable) |
| 185 | |
| 186 | def set_forkserver_preload(self, module_names, *, on_error='ignore'): |
| 187 | '''Set list of module names to try to load in forkserver process. |
| 188 | |
| 189 | The on_error parameter controls how import failures are handled: |
| 190 | "ignore" (default) silently ignores failures, "warn" emits warnings, |
| 191 | and "fail" raises exceptions breaking the forkserver context. |
| 192 | ''' |
| 193 | from .forkserver import set_forkserver_preload |
| 194 | set_forkserver_preload(module_names, on_error=on_error) |
| 195 | |
| 196 | def get_context(self, method=None): |
| 197 | if method is None: |
no outgoing calls