Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #65638

Re: Possible bug with stability of mimetypes.guess_* function output

From Peter Otten <__peter__@web.de>
Subject Re: Possible bug with stability of mimetypes.guess_* function output
Date 2014-02-08 08:51 +0100
Organization None
References <ld37bb$7ji$1@news.albasani.net> <03a2c4c8-313f-4382-8be9-5163d8bf644c@googlegroups.com> <mailman.6497.1391802017.18130.python-list@python.org> <c26b109c-0247-4c99-80c3-dccfa3d7ab06@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.6517.1391845924.18130.python-list@python.org> (permalink)

Show all headers | View raw


Asaf Las wrote:

> On Friday, February 7, 2014 9:40:06 PM UTC+2, Peter Otten wrote:

>> You never see ".shtml" as the guessed extension because it is not in the
>> original mimetypes.types_map dict, but instead programmaticaly read from
>> a file like /etc/mime.types and then added to a list of extensions.

> as there are bunch of files in mimetypes.py the only repeatability could
> be achieved on particular machine level.

At least the mimetypes already defined in the module could easily produce 
the same guessed extension consistently.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Possible bug with stability of mimetypes.guess_* function output Johannes Bauer <dfnsonfsduifb@gmx.de> - 2014-02-07 19:06 +0100
  Re: Possible bug with stability of mimetypes.guess_* function output Asaf Las <roegltd@gmail.com> - 2014-02-07 11:09 -0800
    Re: Possible bug with stability of mimetypes.guess_* function output Asaf Las <roegltd@gmail.com> - 2014-02-07 11:17 -0800
      Re: Possible bug with stability of mimetypes.guess_* function output Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-07 19:28 +0000
    Re: Possible bug with stability of mimetypes.guess_* function output Johannes Bauer <dfnsonfsduifb@gmx.de> - 2014-02-07 20:39 +0100
    Re: Possible bug with stability of mimetypes.guess_* function output Peter Otten <__peter__@web.de> - 2014-02-07 20:40 +0100
      Re: Possible bug with stability of mimetypes.guess_* function output Asaf Las <roegltd@gmail.com> - 2014-02-07 12:25 -0800
        Re: Possible bug with stability of mimetypes.guess_* function output Peter Otten <__peter__@web.de> - 2014-02-08 08:51 +0100
          Re: Possible bug with stability of mimetypes.guess_* function output Asaf Las <roegltd@gmail.com> - 2014-02-08 00:24 -0800
            Re: Possible bug with stability of mimetypes.guess_* function output Peter Otten <__peter__@web.de> - 2014-02-08 09:39 +0100
              Re: Possible bug with stability of mimetypes.guess_* function output Asaf Las <roegltd@gmail.com> - 2014-02-08 02:59 -0800

csiph-web