mimetypes.read_windows_registry()
mimetypes.read_windows_registry() is a Python function in the Mimetypes Module category. Loads MIME types from Windows registry (Windows only). The syntax is mimetypes.read_windows_registry(mime_types). Parameters: mime_types — MimeTypes instance. Returns: None. A typical example: mime = mimetypes.MimeTypes()
mimetypes.read_windows_registry(mime). A close sibling is mimetypes.guess_type(), which guesses the MIME type and encoding of a file from its URL/extension. A close sibling is mimetypes.guess_extension(), which guesses the file extension for a given MIME type. A close sibling is mimetypes.init(), which initializes the MIME type database from system files. A close sibling is mimetypes.MimeTypes(), which creates a MIME types registry with optional custom mappings. More about this category: MIME type guessing — guess_type, guess_extension, init. Related Mimetypes Module entries: mimetypes.guess_type(), mimetypes.guess_extension(), mimetypes.init(), mimetypes.MimeTypes(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try mimetypes.read_windows_registry() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.