src/cpython/imp

Procs

proc get_magic(): string {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc get_suffixes(): seq[tuple[suffix, mode, tipe: string]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc find_module(name, path: string): tuple[file, pathname, description: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc find_module(name: string): tuple[file, pathname, description: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc load_module(name, file, pathname, description: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc reload(module: string) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc cache_from_source(path: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc source_from_cache(path: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc lock_held(): bool {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc acquire_lock() {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc release_lock() {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}