python (at least 2.2) doesn't expect (/usr/lib/python2.2/mimetypes.py) the mime.types file in /etc/mime.types, but the ebuild app-misc/mime-types copy the mime.types file to /etc
Created attachment 21830 [details, diff] corrected /usr/lib/python2.2/mimetypes.py file
this is something we definitely need to fix, but only for 2.2, because the changes you suggest are in python-2.3 the other bits like the apache mime.types file needs to be changed for gentoo specific paths too. web-apps, what are the specific mime.type files that apache1 and apache2 use?
I believe apache uses /etc/apache/conf/mime.types and apache 2 uses /etc/apache2/conf/mime.types.
this patch has made it into python-2.3.3.ebuild now. closing. thanks for your report.