[issue37495] socket.inet_aton parsing issue on some libc versions

2020-07-01 Thread disconnect3d
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.org/issue37

[issue37495] socket.inet_aton parsing issue on some libc versions

2020-07-01 Thread disconnect3d
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

[issue37529] Mimetype module duplicates

2019-07-09 Thread disconnect3d
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 = { # (...) '.bmp': 'image/bmp

[issue37529] Mimetype module duplicates

2019-07-09 Thread disconnect3d
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