Dave Chambers added the comment:
Enough with the bikeshedding... it's been 10 months... fix the bug.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15207
Dave Chambers added the comment:
(I'm a windows dev type)
I would say that there are 2 issues with relying on the registry:
1) Default values (ie. set by Windows upon OS install) are broken and MS never
fixes them.
2) The values can be changed at any time, by any app. Thus the values
Dave Chambers added the comment:
removing read_windows_registry()
If you're suggesting hardcoding *ALL* the mimetypes for *ALL* OSes, I think
that's probably the best overall solution.
No variability, as fast as can be.
The downside is that there would occasionally be an unrecognized type
Dave Chambers added the comment:
Disappointing that faster but broken is preferable to slower but fixed
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15207
Dave Chambers added the comment:
Seems to me that some hybrid would be a good solution: Hardcode the known types
(which solves the windows is just wrong case) then as a default look in the
registry for those that aren't hardcoded.
Therefore the hit of additional time would only be for lesser
New submission from Dave Chambers dlchamb...@aol.com:
The current mimetypes.read_windows_registry() enums the values under
HKCR\MIME\Database\Content Type
However, this is the key for mimetype to extension lookups, NOT for extension
to mimetype lookups.
As a result, when 1 MIME types
Dave Chambers dlchamb...@aol.com added the comment:
My first diff file... I hope I did it right :)
--
keywords: +patch
Added file: http://bugs.python.org/file26181/mimetypes.py.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Dave Chambers dlchamb...@aol.com added the comment:
I added a diff file to the bug.
Dunno if that's the same as a patch file, or how to create a patchfile if it's
not.
Do you know if image/x-png and image/png are included in the registry on all
windows versions?
I think your question
Changes by Dave Chambers dlchamb...@aol.com:
Added file: http://bugs.python.org/file26185/mimetypes.py.diff.u
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15207