On 18Jan2022 13:21, Jelle Zijlstra <[email protected]> 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 <[email protected]> _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/ML3OET5QHSVHLGP6B2X66SIJETZS6ADU/ Code of Conduct: http://python.org/psf/codeofconduct/
