Title: edge case when parsing complex numbers · Issue #105027 · python/cpython · GitHub
Open Graph Title: edge case when parsing complex numbers · Issue #105027 · python/cpython
X Title: edge case when parsing complex numbers · Issue #105027 · python/cpython
Description: Bug report A clear and concise description of what the bug is. Include a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), if possible. Parsing -1.0j with no real part will assume the real part ...
Open Graph Description: Bug report A clear and concise description of what the bug is. Include a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), if possible. Parsing -1.0j with...
X Description: Bug report A clear and concise description of what the bug is. Include a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), if possible. Parsing -1.0j with...
Opengraph URL: https://github.com/python/cpython/issues/105027
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"edge case when parsing complex numbers","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\nA clear and concise description of what the bug is.\r\nInclude a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), if possible.\r\n\r\nParsing `-1.0j` with no real part will assume the real part is `-0`, not +0. This is a change from Python2. Is it intentional? PyPy3 will assume `+0`. This is the root cause of [this PyPy issue](https://foss.heptapod.net/pypy/pypy/-/issues/3944)\r\n\r\n```\r\n$ python3.11\r\nPython 3.11.3 (main, Apr 5 2023, 14:14:37) [GCC 11.3.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e -1.0j\r\n(-0-1j)\r\n\u003e\u003e\u003e 0-1.0j\r\n-1j\r\n\u003e\u003e\u003e \r\n```\r\n\r\n# Your environment\r\nDebian-provided python3 all do this (python3.9, python3.10, python3.11).\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:\r\n- Operating system and architecture:\r\nDebian, CPython 3.9, 3.10, 3.11\r\n\u003c!--\r\nYou can freely edit this text. Remove any lines you believe are unnecessary.\r\n--\u003e\r\n","author":{"url":"https://github.com/mattip","@type":"Person","name":"mattip"},"datePublished":"2023-05-27T19:19:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/105027/cpython/issues/105027"}
| 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:e7f71ef4-831e-48ea-6667-b6e303ab94cc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBB4:35149:131BA7:1A4671:6A5124DF |
| html-safe-nonce | 00cd07508aaecfd3395b146ce29fdcfaf33ee1c9a1e8e646a64f048c275ca5f0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkI0OjM1MTQ5OjEzMUJBNzoxQTQ2NzE6NkE1MTI0REYiLCJ2aXNpdG9yX2lkIjoiNTcwMDkxNTkzODY2MjA5ODE0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0505bcd1495865c631375362bd7ad1c5d15592b96d08f6bf9a9036a9d48a74d8 |
| hovercard-subject-tag | issue:1728909145 |
| 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/105027/issue_layout |
| twitter:image | https://opengraph.githubassets.com/202a4c56bfe8ec71d2ab654662b938c8c1bb9982f9f43dbde8b0b46376af5175/python/cpython/issues/105027 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/202a4c56bfe8ec71d2ab654662b938c8c1bb9982f9f43dbde8b0b46376af5175/python/cpython/issues/105027 |
| og:image:alt | Bug report A clear and concise description of what the bug is. Include a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), if possible. Parsing -1.0j with... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mattip |
| hostname | github.com |
| expected-hostname | github.com |
| None | 689b683944b0d7f015d0e776452c970832fa81b82dc15284469b556ecced715b |
| 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 | 942b51ed3bd5feee3d5e2719f890a5fe286edbbb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width