[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-13 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Serhiy! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 06c26f4d2909eae196ac81c9ed9b41e747e42685 by Miss Islington (bot) in branch '3.10': bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286) (GH-28289)

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-13 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 9cd8fb8d6356c17dafa1be727cab3d438f6df53f by Miss Islington (bot) in branch '3.9': bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286) (GH-28290)

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +26706 pull_request: https://github.com/python/cpython/pull/28290 ___ Python tracker ___

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 97ea18ecede8bfd33d5ab2dd0e7e2aada205 by Serhiy Storchaka in branch 'main': bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list (GH-28286)

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26705 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28289 ___ Python tracker

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Also, mutating the result of guess_all_extensions() mutated the internal state of the MimeTypes object and affected the following calls of guess_all_extensions(). -- stage: patch review -> versions: +Python 3.10, Python 3.11, Python 3.9

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2021-09-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch nosy: +serhiy.storchaka nosy_count: 1.0 -> 2.0 pull_requests: +26702 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28286 ___ Python tracker

[issue35474] mimetypes.guess_all_extensions potentially mutates list

2018-12-12 Thread Ryan McCampbell
New submission from Ryan McCampbell : The mimetypes.guess_all_extensions function is defined as: def guess_all_extensions(self, type, strict=True): type = type.lower() extensions = self.types_map_inv[True].get(type, []) if not strict: for ext in