Message 54282 - Python tracker
Logged In: YES user_id=341410 While I agree with the original poster that returning '.txt' is preferable to the others in the list returned by mimetypes.guess_all_extensions() at least 9 times out of 10, being able to prioritize all of the types is not necessarily the easiest thing to do for all of the possible returned lists. Is using a custom comparison function along with the list returned by guess_all_extensions() sufficient?