[issue24527] The MimeTypes class cannot ignore global files per instance

2022-01-20 Thread Irit Katriel


Change by Irit Katriel :


--
type: behavior -> enhancement
versions: +Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24527] The MimeTypes class cannot ignore global files per instance

2015-06-29 Thread Sebastian Noack

New submission from Sebastian Noack:

In order to prevent the mimetypes module from considering global files and 
registry entries, you have to call mimetypes.init([]). However, this will 
enforce that behavior globally, and only works if the module wasn't initialized 
yet.

There is also a similar argument in the mimetypes.MimeTypes() constructor, 
however the list of files passed there are considered additionally. But there 
is no way to prevent an individual MinmeTypes instance to consider global files.

Adding a ignore_global_types option would be trivial too add to the MimeTypes 
constructor, and would be extremely useful.

--
components: Library (Lib)
messages: 245930
nosy: Sebastian Noack
priority: normal
severity: normal
status: open
title: The MimeTypes class cannot ignore global files per instance
type: behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24527
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24527] The MimeTypes class cannot ignore global files per instance

2015-06-29 Thread Wladimir Palant

Changes by Wladimir Palant t...@adblockplus.org:


--
nosy: +Wladimir Palant

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24527
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com