Use the ‘_file’ module. It is an internal module that contains helper functionality for the builtin file type.
objspace.usemodules._ast
objspace.usemodules.sys
Enter search terms or a module, class or function name.