  | ### 4.28.6 python_import `Syntax:` `python_import (` string_expression `)` `Type:` pyobject `Purpose:` Imports python module (given as a string) in the SINGULAR context. `Example:`
        LIB("pyobject.so");
      ==> no pyobject support
        python_import("os");
      ==>    ? `python_import` is not defined
      ==>    ? error occurred in or before ./examples/python_import.sing line 2: ` \
          python_import("os");`
        name;                         // e. g. 'posix'
      ==>    ? `name` is undefined
      ==>    ? error occurred in or before ./examples/python_import.sing line 3: ` \
          name;                         // e. g. 'posix'`
        sep;                          // pathname separator
      ==>    ? `sep` is undefined
      ==>    ? error occurred in or before ./examples/python_import.sing line 4: ` \
          sep;                          // pathname separator`
        linesep;                      // end of line marker
      ==>    ? `linesep` is undefined
      ==>    ? error occurred in or before ./examples/python_import.sing line 5: ` \
          linesep;                      // end of line marker`

User manual for Singular version 4.4.1, 2025, generated by texi2html.