Title: Remove legacy ironpython 2 version check · Issue #102491 · python/cpython · GitHub
Open Graph Title: Remove legacy ironpython 2 version check · Issue #102491 · python/cpython
X Title: Remove legacy ironpython 2 version check · Issue #102491 · python/cpython
Description: Bug report The platform module contains various version checks for systems such as cpython and ironpython. The file also contains a specfic case for ironpython 2.6 and 2.7 which can be removed (platform.py does not run with python2) Remo...
Open Graph Description: Bug report The platform module contains various version checks for systems such as cpython and ironpython. The file also contains a specfic case for ironpython 2.6 and 2.7 which can be removed (pla...
X Description: Bug report The platform module contains various version checks for systems such as cpython and ironpython. The file also contains a specfic case for ironpython 2.6 and 2.7 which can be removed (pla...
Opengraph URL: https://github.com/python/cpython/issues/102491
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove legacy ironpython 2 version check","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\nThe platform module contains various version checks for systems such as cpython and ironpython. The file also contains a specfic case for ironpython 2.6 and 2.7 which can be removed (platform.py does not run with python2)\r\n\r\nRemoving the check improves the import speed as it avoids the compilation of a regular expression.\r\n\r\n```\r\n%timeit _ironpython26_sys_version_parser = re.compile(r'([\\d.]+)\\s*' r'\\(IronPython\\s*' r'[\\d.]+\\s*' r'\\(([\\d.]+)\\) on ([\\w.]+ [\\d.]+(?: \\(\\d+-bit\\))?)\\)' )\r\n383 ns ± 1.66 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each)\r\n```\r\n \n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-102492\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/eendebakpt","@type":"Person","name":"eendebakpt"},"datePublished":"2023-03-07T09:44:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/102491/cpython/issues/102491"}
| 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:7c6bd369-1b8d-ffbe-a23a-8aabad2c6018 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B1A2:87739:1D0B7B8:28C4A3B:696A55F0 |
| html-safe-nonce | 80328e8cc2f3e07b1fed4e438a329c5469efa529b3fc83c9f948e86c6e601824 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUEyOjg3NzM5OjFEMEI3Qjg6MjhDNEEzQjo2OTZBNTVGMCIsInZpc2l0b3JfaWQiOiIzMzk2Mzg0NjEyNDQ1NDc2MzM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4cd7c3c93256e7a638790e1068e3ce6f946586e0770cec089c2be12b631c6508 |
| hovercard-subject-tag | issue:1613072852 |
| 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/102491/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e053dd93bacb4c4eced04484c7d9e5b83f6d51fd69d6d03d2b7957da3711bed8/python/cpython/issues/102491 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e053dd93bacb4c4eced04484c7d9e5b83f6d51fd69d6d03d2b7957da3711bed8/python/cpython/issues/102491 |
| og:image:alt | Bug report The platform module contains various version checks for systems such as cpython and ironpython. The file also contains a specfic case for ironpython 2.6 and 2.7 which can be removed (pla... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eendebakpt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width