Title: Warnings and errors specific to the C implementation of the warnings module · Issue #122255 · python/cpython · GitHub
Open Graph Title: Warnings and errors specific to the C implementation of the warnings module · Issue #122255 · python/cpython
X Title: Warnings and errors specific to the C implementation of the warnings module · Issue #122255 · python/cpython
Description: New deprecation warnings about missing or inconsistent __spec__.loader and __loader__ introduced in #86298 are emitted only for the C implementation of the warnings module. Existing errors (AttributeError or ValueError) are also only rai...
Open Graph Description: New deprecation warnings about missing or inconsistent __spec__.loader and __loader__ introduced in #86298 are emitted only for the C implementation of the warnings module. Existing errors (Attribu...
X Description: New deprecation warnings about missing or inconsistent __spec__.loader and __loader__ introduced in #86298 are emitted only for the C implementation of the warnings module. Existing errors (Attribu...
Opengraph URL: https://github.com/python/cpython/issues/122255
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Warnings and errors specific to the C implementation of the warnings module","articleBody":"New deprecation warnings about missing or inconsistent `__spec__.loader` and `__loader__` introduced in #86298 are emitted only for the C implementation of the `warnings` module. Existing errors (AttributeError or ValueError) are also only raised for the C implementation of the `warnings` module. See tests added in #122227.\r\n\r\nI believe that before turning the deprecation warnings into errors, we should add warnings for the Python implementation.\r\n\r\ncc @brettcannon, @warsaw\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-122227\n* gh-122818\n* gh-122819\n* gh-122824\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2024-07-25T06:29:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/122255/cpython/issues/122255"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:db88d705-3c63-bd43-fa97-98a6e76f3e75 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD1C:22EB08:75523:9FE4F:696A6A45 |
| html-safe-nonce | 68cac9c2334b0d2685c2de5f2348be031113050c22451ed5d1f95eca221da715 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDFDOjIyRUIwODo3NTUyMzo5RkU0Rjo2OTZBNkE0NSIsInZpc2l0b3JfaWQiOiI2NzkzMzAwNzM4MjEwMTYzMjY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f566db522f3fe79faeccb7be0ac714fca19fbdd15319b2233fbabd3f121a0b31 |
| hovercard-subject-tag | issue:2429132512 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/122255/issue_layout |
| twitter:image | https://opengraph.githubassets.com/df6d888745b50a87a42b4abeca9beb80ac0aaaa68c45a209d777801d708a8ff3/python/cpython/issues/122255 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df6d888745b50a87a42b4abeca9beb80ac0aaaa68c45a209d777801d708a8ff3/python/cpython/issues/122255 |
| og:image:alt | New deprecation warnings about missing or inconsistent __spec__.loader and __loader__ introduced in #86298 are emitted only for the C implementation of the warnings module. Existing errors (Attribu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6fea32d5b7276b841b7a803796d9715bc6cfb31ed549fdf9de2948ac25d12ba6 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f2d9f6432a5a115ec709295ae70623f33bb80aee |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width