Title: Drop Python 2.7 support for better code quality and support of new language features · Issue #346 · canopen-python/canopen · GitHub
Open Graph Title: Drop Python 2.7 support for better code quality and support of new language features · Issue #346 · canopen-python/canopen
X Title: Drop Python 2.7 support for better code quality and support of new language features · Issue #346 · canopen-python/canopen
Description: Hi, I would like to propose to drop the support for python 2.7. Official support for this version (EOL) ended on 31.12.2020 which was three years ago and over 12 years after 2.7 was released and over 20 years after Python 2.x. Even Debia...
Open Graph Description: Hi, I would like to propose to drop the support for python 2.7. Official support for this version (EOL) ended on 31.12.2020 which was three years ago and over 12 years after 2.7 was released and ov...
X Description: Hi, I would like to propose to drop the support for python 2.7. Official support for this version (EOL) ended on 31.12.2020 which was three years ago and over 12 years after 2.7 was released and ov...
Opengraph URL: https://github.com/canopen-python/canopen/issues/346
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Drop Python 2.7 support for better code quality and support of new language features","articleBody":"Hi,\r\n\r\nI would like to propose to drop the support for python 2.7. Official support for this version (EOL) ended on 31.12.2020 which was three years ago and over 12 years after 2.7 was released and over 20 years after Python 2.x. Even Debian oldstable has support for Python 3.7.\r\nMy main reason for this suggestion is code quality and the new language features (like type hints!). My PyLint can't handle the mixed style of the current scripts and things like:\r\n\r\n```\r\ntry:\r\n from configparser import RawConfigParser, NoOptionError, NoSectionError\r\nexcept ImportError:\r\n from ConfigParser import RawConfigParser, NoOptionError, NoSectionError\r\n```\r\n\r\n\r\n```\r\ntry:\r\n # Python 3\r\n eds.read_file(fp)\r\nexcept AttributeError:\r\n # Python 2\r\n eds.readfp(fp)\r\n```\r\n\r\n are ugly and smelly and can lead to further code errors. What do you guys think?","author":{"url":"https://github.com/friederschueler","@type":"Person","name":"friederschueler"},"datePublished":"2023-02-22T09:04:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/346/canopen/issues/346"}
| 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:55096593-633c-35a2-215e-724f71ae9c49 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9E8:300F93:864FC31:B6DE6F6:6A5E8E96 |
| html-safe-nonce | 5f1bbf075664d0e1d8243ea6108a693dae00db460de2248090fa357f6d550797 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUU4OjMwMEY5Mzo4NjRGQzMxOkI2REU2RjY6NkE1RThFOTYiLCJ2aXNpdG9yX2lkIjoiNjgzMTE0NzcwNjU3MDY3MzgxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 37717bbf238cd304078353c2a640190b3665543b85fb3ece0961956f2454a5fb |
| hovercard-subject-tag | issue:1594721190 |
| 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/canopen-python/canopen/346/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9be25df86272f442b6e47a8b4af02af664f47e8aa5866c1fe04cbc44c25a6ef0/canopen-python/canopen/issues/346 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9be25df86272f442b6e47a8b4af02af664f47e8aa5866c1fe04cbc44c25a6ef0/canopen-python/canopen/issues/346 |
| og:image:alt | Hi, I would like to propose to drop the support for python 2.7. Official support for this version (EOL) ended on 31.12.2020 which was three years ago and over 12 years after 2.7 was released and ov... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | friederschueler |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6846168613b61074bf9dc18814ffe7596f4950f1f3b3070cfea5af602ccb3327 |
| turbo-cache-control | no-preview |
| go-import | github.com/canopen-python/canopen git https://github.com/canopen-python/canopen.git |
| octolytics-dimension-user_id | 200581454 |
| octolytics-dimension-user_login | canopen-python |
| octolytics-dimension-repository_id | 68737600 |
| octolytics-dimension-repository_nwo | canopen-python/canopen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 68737600 |
| octolytics-dimension-repository_network_root_nwo | canopen-python/canopen |
| 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 | 5d2e2a84380a21e7a59801a38bee3d8a5f0e822d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width