On 07.02.2014 20:09, Asaf Las wrote:
> it might be you could try to query using sequence below :
>
> import mimetypes
> mimetypes.init()
> mimetypes.guess_extension("text/html")
>
> i got only 'htm' for 5 consequitive attempts
Doesn't change anything. With this:
#!/usr/bin/python3
import mimetypes
mimetypes.init()
print(mimetypes.guess_extension("application/msword"))
And a call like this:
$ for i in `seq 100`; do ./x.py ; done | sort | uniq -c
I get
35 .doc
24 .dot
41 .wiz
Regards,
Johannes
--
>> Wo hattest Du das Beben nochmal GENAU vorhergesagt?
> Zumindest nicht öffentlich!
Ah, der neueste und bis heute genialste Streich unsere großen
Kosmologen: Die Geheim-Vorhersage.
- Karl Kaos über Rüdiger Thomas in dsa <[email protected]>
--
https://mail.python.org/mailman/listinfo/python-list