Title: Python removes negative ranges from dictionaries · Issue #103750 · python/cpython · GitHub
Open Graph Title: Python removes negative ranges from dictionaries · Issue #103750 · python/cpython
X Title: Python removes negative ranges from dictionaries · Issue #103750 · python/cpython
Description: Bug report Python removes negative ranges from dictionaries Example to reproduce: print({range(16, 1): 0.5, range(32, 16): 0.5}) The expected output: {range(16, 1): 0.5, range(32, 16): 0.5} The actual output: {range(16, 1): 0.5} Your env...
Open Graph Description: Bug report Python removes negative ranges from dictionaries Example to reproduce: print({range(16, 1): 0.5, range(32, 16): 0.5}) The expected output: {range(16, 1): 0.5, range(32, 16): 0.5} The act...
X Description: Bug report Python removes negative ranges from dictionaries Example to reproduce: print({range(16, 1): 0.5, range(32, 16): 0.5}) The expected output: {range(16, 1): 0.5, range(32, 16): 0.5} The act...
Opengraph URL: https://github.com/python/cpython/issues/103750
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python removes negative ranges from dictionaries","articleBody":"\u003c!--\r\n If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not\r\n the right place to seek help. Consider the following options instead:\r\n\r\n - reading the Python tutorial: https://docs.python.org/3/tutorial/\r\n - posting in the \"Users\" category on discuss.python.org: https://discuss.python.org/c/users/7\r\n - emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list\r\n - searching our issue tracker (https://github.com/python/cpython/issues) to see if\r\n your problem has already been reported\r\n--\u003e\r\n\r\n# Bug report\r\n\r\nPython removes negative ranges from dictionaries\r\n\r\nExample to reproduce:\r\n```Python\r\nprint({range(16, 1): 0.5, range(32, 16): 0.5})\r\n```\r\n\r\nThe expected output:\r\n \u003e {range(16, 1): 0.5, range(32, 16): 0.5}\r\n\r\nThe actual output:\r\n\u003e {range(16, 1): 0.5}\r\n\r\n\r\n# Your environment\r\n\r\n\u003c!-- Include as many relevant details as possible about the environment you experienced the bug in --\u003e\r\n\r\n- CPython versions tested on: 3.10, 3.7.6\r\n- Operating system and architecture: WIN11+linux\r\n","author":{"url":"https://github.com/wnakhleh","@type":"Person","name":"wnakhleh"},"datePublished":"2023-04-24T09:55:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/103750/cpython/issues/103750"}
| 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:56abd97b-2f48-6f2c-6939-6025bca4ee4e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9D4:3FFE1:5970C5:77EC27:6969D68E |
| html-safe-nonce | f39b6305f35f7dfc4ae7c281010d581809127c0a420ff0246d2ce3409d276746 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUQ0OjNGRkUxOjU5NzBDNTo3N0VDMjc6Njk2OUQ2OEUiLCJ2aXNpdG9yX2lkIjoiNjk4NTc3MjA2MTEyODUxMzE2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 421e1816de9a7d21ff66158110c0f3b108f698359ee892975075350bd321ee3c |
| hovercard-subject-tag | issue:1680885428 |
| 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/103750/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77b318f0e0aea1014008afc47a2a78073deaf60eecb7c3b86884e022a3749dbd/python/cpython/issues/103750 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77b318f0e0aea1014008afc47a2a78073deaf60eecb7c3b86884e022a3749dbd/python/cpython/issues/103750 |
| og:image:alt | Bug report Python removes negative ranges from dictionaries Example to reproduce: print({range(16, 1): 0.5, range(32, 16): 0.5}) The expected output: {range(16, 1): 0.5, range(32, 16): 0.5} The act... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wnakhleh |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width