Message79961
| Author |
terry.reedy |
| Recipients |
siona, terry.reedy |
| Date |
2009年01月16日.16:40:58 |
| SpamBayes Score |
0.019634403 |
| Marked as misclassified |
No |
| Message-id |
<1232124059.61.0.218128264298.issue4963@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年01月16日 16:40:59 | terry.reedy | set | recipients:
+ terry.reedy, siona |
| 2009年01月16日 16:40:59 | terry.reedy | set | messageid: <1232124059.61.0.218128264298.issue4963@psf.upfronthosting.co.za> |
| 2009年01月16日 16:40:59 | terry.reedy | link | issue4963 messages |
| 2009年01月16日 16:40:58 | terry.reedy | create |
|