New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-42158: Add MIME types for n-triples, n-quads, n3 and trig #23230
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
This PR is stale because it has been open for 30 days with no activity. |
This would be very useful my work too! |
Misc/NEWS.d/next/Library/2020-11-10-17-46-12.bpo-42158.OhxAiH.rst
Outdated
Show resolved
Hide resolved
Not in Ubuntu 20.04 LTS unfortunately, maybe a later Ubuntu version. |
Co-authored-by: Éric Araujo <merwok@netwok.org>
Sorry for the confusion — I wasn’t saying that to mean you should not change Python’s mimetypes, but to mean that the mappings are correct |
No problem |
This looks ready for inclusion. However, since 3.10 is out and 3.9 is pretty late in the game, I'd like to learn if there is an exception to "no new features in bugfix releases" when it comes to adding MIME types. |
I think there is an informal exception for registries that have definitions external to Python; in previous tickets it was deemed safe and beneficial to backport new entries. I think I remember than @terryjreedy or maybe @bitdancer were involved. Tickets with backports:
Backport avoided to avoid compat issue: https://bugs.python.org/issue22589 → Found one of the discussions of the policy here: https://bugs.python.org/issue13952#msg152752 |
R. David Murray was much more involved in such decisions. As the last link indicates, the debate tended to be framed as whether the item missing is a bug, rather than an exceptional new feature. Eric, thank you for the research! |
Given R. David's conservative approach (which I share) demonstrated in the last link by Eric, I'll merge this to 3.11 alone. Unless a backwards incompatibility is demonstrated, we won't be backporting to 3.10 and 3.9. |
Thanks @DylanVanAssche for the PR, and @ambv for merging it |
…GH-23230) Co-authored-by: Éric Araujo <merwok@netwok.org>
Adds MIME types to
Lib/mimetypes.py
for:.nq: application/n-quads
(specification: https://www.w3.org/TR/n-quads/).nt: application/n-triples
(specification: https://www.w3.org/TR/n-triples/).n3: text/n3
(specification: https://www.w3.org/TeamSubmission/n3/).trig: application/trig
(specification: https://www.w3.org/TR/trig/)https://bugs.python.org/issue42158