ref https://sourceware.org/gdb/current/onlinedocs/gdb.html/Python.html for details

pi/python-interpretive[ py-expr] (without arg: inter repl; otherwise, print(py-expr) )

py[thon] py-stmt[\n end]

within py-expr/py-stmt, gdb module exists;

ref https://sourceware.org/gdb/current/onlinedocs/gdb.html/Python-API.html#Python-API for APIs