disconnect3d added the comment:
Regarding the exception case: seems like OSError, since that's what originally
was done and we don't want to break users of this code.
--
___
Python tracker
<https://bugs.python.o
disconnect3d added the comment:
Its a while since this has been reported. I think inet_aton_pton.py is fine,
though, a commit adding it should explain why we do it this way.
@vstinner can you push this patch further or do you want me to do it
disconnect3d added the comment:
To be more specific and to keep this information historically, the .bmp
registers two mimetypes - 'image/bmp' and 'image/x-ms-bmp'.
Below a part of the relevant code.
```
types_map = _types_map_default = {
# (...)
New submission from disconnect3d :
The mimetype builtin module allows users to guess extension for a given
mimetype through the `mimetypes.guess_extension` function.
Default mimetypes are stored in `types_map` and `_types_map_default`
dictionaries that maps extensions to mimetypes. Those