This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients YoSTEALTH, pitrou, rhettinger, xtreak
Date 2018-10-09.08:08:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I would rather have the mimetypes module improved to accept Path-like objects, so that the following works:

>>> p = Path('LICENSE.txt')
>>> mimetypes.guess_type(p)
('text/plain', None)

It should be quite simple to implement as well.
Date User Action Args
2018-10-09 08:08:41pitrousetrecipients: + pitrou, rhettinger, YoSTEALTH, xtreak
2018-10-09 08:08:41pitrousetmessageid: <>
2018-10-09 08:08:41pitroulinkissue34926 messages
2018-10-09 08:08:41pitroucreate