On 18Jan2022 13:21, Jelle Zijlstra <jelle.zijls...@gmail.com> wrote: >Perhaps there should be a guess_all_types() function in addition to >guess_type() that returns all possible types, so that the user can select >the type they want using any criterion. This would be nicely symmetrical >with the existing guess_extension and guess_all_extensions functions.
Indeed. +1 That would allow applying policy beyond the mime.types file ordering. Cheers, Cameron Simpson <c...@cskk.id.au> _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/ML3OET5QHSVHLGP6B2X66SIJETZS6ADU/ Code of Conduct: http://python.org/psf/codeofconduct/