René's URL Explorer Experiment


Title: mimetypes.guess_extension result changes after mimetypes.init() · Issue #49213 · python/cpython · GitHub

Open Graph Title: mimetypes.guess_extension result changes after mimetypes.init() · Issue #49213 · python/cpython

X Title: mimetypes.guess_extension result changes after mimetypes.init() · Issue #49213 · python/cpython

Description: BPO 4963 Nosy @warsaw, @terryjreedy, @pitrou, @tiran, @abadger, @bitdancer, @bertjwregeer, @vadmium, @zooba, @maxking, @pombredanne, @davidkhess PRs #3062#14375#14376 Files mimetypes-init-test.patchissue4963.patch: stable guess_extension...

Open Graph Description: BPO 4963 Nosy @warsaw, @terryjreedy, @pitrou, @tiran, @abadger, @bitdancer, @bertjwregeer, @vadmium, @zooba, @maxking, @pombredanne, @davidkhess PRs #3062#14375#14376 Files mimetypes-init-test.patc...

X Description: BPO 4963 Nosy @warsaw, @terryjreedy, @pitrou, @tiran, @abadger, @bitdancer, @bertjwregeer, @vadmium, @zooba, @maxking, @pombredanne, @davidkhess PRs #3062#14375#14376 Files mimetypes-init-test.patc...

Opengraph URL: https://github.com/python/cpython/issues/49213

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mimetypes.guess_extension result changes after mimetypes.init()","articleBody":"BPO | [4963](https://bugs.python.org/issue4963)\n--- | :---\nNosy | @warsaw, @terryjreedy, @pitrou, @tiran, @abadger, @bitdancer, @bertjwregeer, @vadmium, @zooba, @maxking, @pombredanne, @davidkhess\nPRs | \u003cli>python/cpython#3062\u003c/li>\u003cli>python/cpython#14375\u003c/li>\u003cli>python/cpython#14376\u003c/li>\nFiles | \u003cli>[mimetypes-init-test.patch](https://bugs.python.org/file17803/mimetypes-init-test.patch \"Uploaded as text/plain at 2010-06-29.19:04:00 by @bitdancer\")\u003c/li>\u003cli>[issue4963.patch](https://bugs.python.org/file34821/issue4963.patch \"Uploaded as text/plain at 2014-04-14.16:08:16 by @abadger\"): stable guess_extension patch and test\u003c/li>\n\n\u003csup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup>\n\n\u003cdetails>\u003csummary>Show more details\u003c/summary>\u003cp>\n\nGitHub fields:\n```python\nassignee = 'https://github.com/zooba'\nclosed_at = \u003cDate 2019-06-25.16:14:49.543>\ncreated_at = \u003cDate 2009-01-16.12:04:54.057>\nlabels = ['easy', 'type-bug', '3.8', 'expert-email', '3.7', 'library', '3.9']\ntitle = 'mimetypes.guess_extension result changes after mimetypes.init()'\nupdated_at = \u003cDate 2021-01-10.02:17:07.465>\nuser = 'https://bugs.python.org/siona'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2021-01-10.02:17:07.465>\nactor = 'terry.reedy'\nassignee = 'steve.dower'\nclosed = True\nclosed_date = \u003cDate 2019-06-25.16:14:49.543>\ncloser = 'steve.dower'\ncomponents = ['Library (Lib)', 'email']\ncreation = \u003cDate 2009-01-16.12:04:54.057>\ncreator = 'siona'\ndependencies = []\nfiles = ['17803', '34821']\nhgrepos = []\nissue_num = 4963\nkeywords = ['patch', 'easy']\nmessage_count = 35.0\nmessages = ['79955', '79961', '79962', '108650', '108674', '108704', '108707', '108746', '108755', '108853', '108934', '108967', '182465', '214948', '216104', '216764', '246649', '293248', '293249', '293258', '293261', '293262', '293626', '293628', '300092', '315145', '322534', '346456', '346457', '346534', '346537', '346539', '384730', '384731', '384750']\nnosy_count = 18.0\nnosy_names = ['barry', 'terry.reedy', 'pitrou', 'christian.heimes', 'wichert', 'a.badger', 'r.david.murray', 'siona', 'sascha_silbe', 'l0nwlf', 'X-Istence', 'martin.panter', 'steve.dower', 'wodny', 'maxking', 'pombredanne', 'sivert', 'dhess']\npr_nums = ['3062', '14375', '14376']\npriority = 'normal'\nresolution = 'fixed'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue4963'\nversions = ['Python 3.7', 'Python 3.8', 'Python 3.9']\n```\n\n\u003c/p>\u003c/details>\n","author":{"url":null,"@type":"Person","name":"siona"},"datePublished":"2009-01-16T12:04:54Z","url":"https://github.com/python/cpython/issues/49213"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d966074d-0679-dc0c-542d-d0e869a2a323
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id802E:3CB04:904821:C1DD7E:6AEE00B0
html-safe-nonce30cd902ea0a1dd870cee2cadf9fc353516ab3643039b063e2ec90cb5adad6301
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDJFOjNDQjA0OjkwNDgyMTpDMUREN0U6NkFFRTAwQjAiLCJ2aXNpdG9yX2lkIjoiODY5NTI2NTQ2MTY0ODc1NDQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacad71006b300f9c0853ce5b95884dbb284b66ab6fc73767f3b29d571861ea0aa4
hovercard-subject-tagissue:1198840204
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/49213/issue_layout
twitter:imagehttps://opengraph.githubassets.com/63ed2d453ff26b84dff341183aa0539b4b9aaad0fe7a7ed69ace1307eef0b869/python/cpython/issues/49213
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/63ed2d453ff26b84dff341183aa0539b4b9aaad0fe7a7ed69ace1307eef0b869/python/cpython/issues/49213
og:image:altBPO 4963 Nosy @warsaw, @terryjreedy, @pitrou, @tiran, @abadger, @bitdancer, @bertjwregeer, @vadmium, @zooba, @maxking, @pombredanne, @davidkhess PRs #3062#14375#14376 Files mimetypes-init-test.patc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesiona
hostnamegithub.com
expected-hostnamegithub.com
None0dd941b5245e608c751507bdb7c7016789050735e3c97662aac0f0791b67227a
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebf78b34e3533f50fdd2e62be099271a8641eefe7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/49213#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F49213
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F49213
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/49213
Reloadhttps://github.com/python/cpython/issues/49213
Reloadhttps://github.com/python/cpython/issues/49213
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.3k (2.3k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/pulse
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/49213
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/49213
mimetypes.guess_extension result changes after mimetypes.init()https://github.com/python/cpython/issues/49213#top
https://github.com/zooba
3.7 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.7%20(EOL)%22
3.8 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.8%20(EOL)%22
3.9 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.9%20(EOL)%22
easyhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22easy%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-emailhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-email%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Jan 16, 2009https://github.com/python/cpython/issues/49213#issue-1198840204
4963https://bugs.python.org/issue4963
@warsawhttps://github.com/warsaw
@terryjreedyhttps://github.com/terryjreedy
@pitrouhttps://github.com/pitrou
@tiranhttps://github.com/tiran
@abadgerhttps://github.com/abadger
@bitdancerhttps://github.com/bitdancer
@bertjwregeerhttps://github.com/bertjwregeer
@vadmiumhttps://github.com/vadmium
@zoobahttps://github.com/zooba
@maxkinghttps://github.com/maxking
@pombredannehttps://github.com/pombredanne
@davidkhesshttps://github.com/davidkhess
bpo-4963: Fix for initialization and non-deterministic behavior issues in mimetypes #3062https://github.com/python/cpython/pull/3062
[3.8] bpo-4963: Fix for initialization and non-deterministic behavior issues in mimetypes (GH-3062) #14375https://github.com/python/cpython/pull/14375
[3.7] bpo-4963: Fix for initialization and non-deterministic behavior issues in mimetypes (GH-3062) #14376https://github.com/python/cpython/pull/14376
mimetypes-init-test.patchhttps://bugs.python.org/file17803/mimetypes-init-test.patch
issue4963.patchhttps://bugs.python.org/file34821/issue4963.patch
Nexthttps://github.com/python/cpython/issues/49213?timeline_page=1
on Jan 16, 2009https://github.com/python/cpython/issues/49213#issuecomment-1093453909
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Jan 16, 2009https://github.com/python/cpython/issues/49213#event-6402805096
https://github.com/terryjreedy
terryjreedyhttps://github.com/terryjreedy
on Jan 16, 2009https://github.com/python/cpython/issues/49213#issuecomment-1093453910
on Jan 16, 2009https://github.com/python/cpython/issues/49213#issuecomment-1093453911
https://github.com/pitrou
pitrouhttps://github.com/pitrou
on Jun 25, 2010https://github.com/python/cpython/issues/49213#issuecomment-1093453912
https://github.com/bitdancer
bitdancerhttps://github.com/bitdancer
on Jun 26, 2010https://github.com/python/cpython/issues/49213#issuecomment-1093453914
bpo-5853https://bugs.python.org/issue?@action=redirect&bpo=5853
bitdancerhttps://github.com/bitdancer
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 26, 2010https://github.com/python/cpython/issues/49213#event-6402805099
on Jun 26, 2010https://github.com/python/cpython/issues/49213#issuecomment-1093453917
on Jun 26, 2010https://github.com/python/cpython/issues/49213#issuecomment-1093453918
https://github.com/bitdancer
bitdancerhttps://github.com/bitdancer
on Jun 26, 2010https://github.com/python/cpython/issues/49213#issuecomment-1093453920
bitdancerhttps://github.com/bitdancer
on Jun 26, 2010https://github.com/python/cpython/issues/49213#event-6402805100
on Jun 26, 2010https://github.com/python/cpython/issues/49213#issuecomment-1093453922
on Jun 28, 2010https://github.com/python/cpython/issues/49213#issuecomment-1093453925
https://github.com/bitdancer
bitdancerhttps://github.com/bitdancer
on Jun 29, 2010https://github.com/python/cpython/issues/49213#issuecomment-1093453926
https://github.com/zooba
zoobahttps://github.com/zooba
on Jun 25, 2019https://github.com/python/cpython/issues/49213#issuecomment-1093453955
25fbe33https://github.com/python/cpython/commit/25fbe33b92cd938e809839feaa3fda97e6ad0980
bpo-4963https://bugs.python.org/issue?@action=redirect&bpo=4963
GH-14375https://github.com/python/cpython/pull/14375
25fbe33https://github.com/python/cpython/commit/25fbe33b92cd938e809839feaa3fda97e6ad0980
on Jun 25, 2019https://github.com/python/cpython/issues/49213#issuecomment-1093453956
https://github.com/zooba
zoobahttps://github.com/zooba
on Jun 25, 2019https://github.com/python/cpython/issues/49213#issuecomment-1093453958
2a99fd9https://github.com/python/cpython/commit/2a99fd911ebeecedbb250a05667cd46eca4735b9
bpo-4963https://bugs.python.org/issue?@action=redirect&bpo=4963
GH-14376https://github.com/python/cpython/pull/14376
2a99fd9https://github.com/python/cpython/commit/2a99fd911ebeecedbb250a05667cd46eca4735b9
zoobahttps://github.com/zooba
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 25, 2019https://github.com/python/cpython/issues/49213#event-6402805112
zoobahttps://github.com/zooba
on Jun 25, 2019https://github.com/python/cpython/issues/49213#event-6402805113
on Jan 9, 2021https://github.com/python/cpython/issues/49213#issuecomment-1093453963
9fc720e#r45794801https://github.com/python/cpython/commit/9fc720e5e4f772598013ea48a3f0d22b2b6b04fa#r45794801
https://github.com/nexB/typecode/blob/ba07c04d23441d3469dc5de911376d408514ebd8/src/typecode/contenttype.py#L308https://github.com/nexB/typecode/blob/ba07c04d23441d3469dc5de911376d408514ebd8/src/typecode/contenttype.py#L308
on Jan 9, 2021https://github.com/python/cpython/issues/49213#issuecomment-1093453964
https://github.com/terryjreedy
terryjreedyhttps://github.com/terryjreedy
on Jan 10, 2021https://github.com/python/cpython/issues/49213#issuecomment-1093453966
ezio-melottihttps://github.com/ezio-melotti
https://github.com/python/cpython/issues/undefined
on Apr 10, 2022https://github.com/python/cpython/issues/49213#event-6402805119
pombredannehttps://github.com/pombredanne
on Jun 1, 2022https://github.com/python/cpython/issues/49213#event-6719965795
bpo-4963: Fix for initialization and non-deterministic behavior issue…https://github.com/python/cpython/commit/9fc720e5e4f772598013ea48a3f0d22b2b6b04fa
bpo-4963https://bugs.python.org/issue?@action=redirect&bpo=4963
9fc720ehttps://github.com/python/cpython/commit/9fc720e5e4f772598013ea48a3f0d22b2b6b04fa
serhiy-storchakahttps://github.com/serhiy-storchaka
on May 31, 2026https://github.com/python/cpython/issues/49213#event-26163085530
pythongh-115075: Fix info about initialization of mimetypes.MimeTypes…https://github.com/serhiy-storchaka/cpython/commit/e3deffd56338a5f1d5b7fcd6b21fc66ea4dd18f2
pythongh-115075https://github.com/python/cpython/issues/115075
e3deffdhttps://github.com/serhiy-storchaka/cpython/commit/e3deffd56338a5f1d5b7fcd6b21fc66ea4dd18f2
serhiy-storchakahttps://github.com/serhiy-storchaka
on Aug 30, 2026https://github.com/python/cpython/issues/49213#event-30230047981
gh-115075: Fix info about initialization of mimetypes.MimeTypes attri…https://github.com/python/cpython/commit/19363f20b6e014fd44c76f8a998b21845716e358
gh-115075https://github.com/python/cpython/issues/115075
19363f2https://github.com/python/cpython/commit/19363f20b6e014fd44c76f8a998b21845716e358
[3.13] gh-115075: Fix info about initialization of mimetypes.MimeType…https://github.com/python/cpython/commit/6b42a7f91d4ab82de898c5c880b3542d8d48db84
gh-115075https://github.com/python/cpython/issues/115075
6b42a7fhttps://github.com/python/cpython/commit/6b42a7f91d4ab82de898c5c880b3542d8d48db84
[3.14] gh-115075: Fix info about initialization of mimetypes.MimeType…https://github.com/python/cpython/commit/b388c61be4b88a4be08fe4de737966e9a8d89ac9
gh-115075https://github.com/python/cpython/issues/115075
b388c61https://github.com/python/cpython/commit/b388c61be4b88a4be08fe4de737966e9a8d89ac9
clin1234https://github.com/clin1234
on Sep 12, 2026https://github.com/python/cpython/issues/49213#event-31023912616
pythongh-115075: Fix info about initialization of mimetypes.MimeTypes…https://github.com/clin1234/cpython/commit/fd981d05e014a64f2e6b96d47f78c8f3bec8511a
pythongh-115075https://github.com/python/cpython/issues/115075
fd981d0https://github.com/clin1234/cpython/commit/fd981d05e014a64f2e6b96d47f78c8f3bec8511a
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/49213
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/49213
zoobahttps://github.com/zooba
3.7 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.7%20(EOL)%22
3.8 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.8%20(EOL)%22
3.9 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.9%20(EOL)%22
easyhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22easy%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-emailhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-email%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.