You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect docs for mimetypes.MimeTypes.types_map #115075
Accordingly to the docs I would expect application/pers.added. It can be achieved by commenting out the mimetypes.init() call.
I think, behavior changed when #49213 was fixed, but docs have not been updated.
I see some reason in the documented behavior. Perhaps mimetypes.init() should be more flexible and support both ways to set types_map: from the global dictionary and from the internal data, but likely it should be discussed on the pyhton-ideas mailing list first.
This behavior was so long, that it is now considered a new norm. We should just document it. Any changes of the behavior should be considered a new feature.
Activity
pythongh-115075: Fix info about initialization of mimetypes.MimeTypes…
serhiy-storchaka commentedon May 31, 2026
This behavior was so long, that it is now considered a new norm. We should just document it. Any changes of the behavior should be considered a new feature.
gh-115075: Fix info about initialization of mimetypes.MimeTypes attri…
[3.13] gh-115075: Fix info about initialization of mimetypes.MimeType…
[3.14] gh-115075: Fix info about initialization of mimetypes.MimeType…
[3.15] gh-115075: Fix info about initialization of mimetypes.MimeType…
pythongh-115075: Fix info about initialization of mimetypes.MimeTypes…