The Very High Level Layer — Python 3.11.16 documentation

docs.python.org

Tin mới

Reference Counting

Python Module Index

3.11.16 Documentation

Python/C API Reference Manual

sys.getfilesystemencoding()

__main__: The environment where top-level code is run. Covers command-line interfaces, import-time behavior, and ``__name__ == '__main__'``.

Executes the Python source code from command in the __main__ module according to the flags argument. If __main__ does not already exist, it is created. Returns 0 on success or -1 if an exception was raised. If there was

filesystem encoding and error handler

Similar to PyRun_SimpleStringFlags(), but the Python source code is read from fp instead of an in-memory string. filename should be the name of the file, it is decoded from filesystem encoding and error handler. If close

readline: GNU readline support for Python. (Unix)

The result must be a string allocated by PyMem_RawMalloc() or PyMem_RawRealloc(), or NULL if an error occurred.

PyMem_RawRealloc()

The result must be a string allocated by PyMem_RawMalloc() or PyMem_RawRealloc(), or NULL if an error occurred.