[issue4963] mimetypes.guess_extension result changes after mimetypes.init()
Terry J. Reedy
report at bugs.python.org
Fri Jan 16 17:40:59 CET 2009
Terry J. Reedy <tjreedy at udel.edu> added the comment:
3.0, WinXP
import mimetypes
print(mimetypes.guess_extension('image/jpeg'))
mimetypes.init()
print(mimetypes.guess_extension('image/jpeg'))
gives
.jpe
.jpe
I wonder at this answer since .jpg and occasionally .jpeg is standard in
Windows usage, but the doc is unclear to me as to the actual intent of
the function.
----------
nosy: +tjreedy
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4963>
_______________________________________
More information about the Python-bugs-list
mailing list