Replies: 5 comments 4 replies
-
Python Foundation officially set python 2 sunset to 2015 then it was shifted to January 2020 [1]. FreeBSD Ports drops python 2 at the end of 2020 [2]. Everyone had enough time to switch to Python 3. As a big fan of compatibility and adhering to standards I would say setting up Python 3 virtual environment and all required packages with pip is a matter of few seconds while keeping software compatible with both Python 2 and 3 which are not compatible can be painful and generates additional costly work. Because Python 2 is not supported for over a year now by its authors, initially scheduled in 2008 for EOL at 2015, I see no reason to support it with pyOCD anymore. We are in 2021. There has been 9 minor releases of Python 3 (most recent is 3.9.1) already so its a solid ground to move along. Switching host from Python 2 to 3 is not really painful they can even co-exist as independent virtual environments if someone really needs to stick to Python 2 for any reason. Summing up I would drop Python 2 as soon as possible. People had over 5 years to update their code base :-) [1] https://www.python.org/doc/sunset-python-2/ |
Beta Was this translation helpful? Give feedback.
-
Great argument, thanks. Fwiw, I haven't heard any feedback against dropping Python 2. So I'm feeling pretty confident about dropping Python 2 in 0.30 (next feature release). (I didn't realise Python 2 was originally sunset on 2015!) |
Beta Was this translation helpful? Give feedback.
-
Fyi, I am planning to drop Python 2 in the next release, 0.30.0. The PR will be coming in probably tomorrow. |
Beta Was this translation helpful? Give feedback.
-
It is done 😈: 8680ee6 |
Beta Was this translation helpful? Give feedback.
-
I'm testing now and fixing some bugs, and will release v0.30.0 as soon as possible. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion is about dropping of Python 2 support from pyOCD. Python 2 support is already deprecated, but there isn't a declared time when it will be fully dropped.
By no longer having to support Python 2, pyOCD can start taking advantage of recent Python 3 enhancements such as type hints for functions.
Does dropping Python 2 support actually affect anyone?
How soon should it be done?
Can pyOCD move to Python 3.7 and above (it's currently 3.6+)?
Beta Was this translation helpful? Give feedback.
All reactions