Page 1 of 1

Python 3.6 has reached it's EOL. Any plans to shift to any recent version?

Posted: Mon Sep 12, 2022 9:17 am
by khaimovmr
Hi, guys!
I have a problems in creating the virtual environment for my sourcepython plugin with Python 3.6.1 on the Ubuntu 22.05.
Segmentation fault on trying to install python 3.6.1 with pyenv.
So my question - is there any plans to shift to any recent version of Python?

The first signs of the problem was discoverd while the plugin was trying to use the SSL connection to some web resource that is using the https connection. So it seams that the python3.6 is no longer supports an actual version of the OpenSSL3 (I might be mistaking but had no time to further dig this issue).
Image

Re: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?

Posted: Mon Sep 12, 2022 3:04 pm
by Ayuto
Hey khaimovmr! Yes, there are and were plans to upgrade. With the release of 3.8 and 3.10 I twice started an upgrade, but discarded it due to the lack of time. But we should definitely do the upgrade. I will try to focus this very soon!

Edit: The question is just if we should wait for 3.11, which is expected to be released on the 24th October 2022.

Re: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?

Posted: Mon Sep 12, 2022 3:07 pm
by khaimovmr
Ayuto wrote:Hey khaimovmr! Yes, there are and were plans to upgrade. With the release of 3.8 and 3.10 I twice started an upgrade, but discarded it due to the lack of time. But we should definitely do the upgrade. I will try to focus this very soon!

That would be great!
Wish you a bunch of free time )

Re: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?

Posted: Mon Sep 12, 2022 11:42 pm
by satoon101
Python 3.11 is supposed to have a significant speed improvement, but I don't know how much that would affect SP.

Re: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?

Posted: Tue Sep 13, 2022 8:00 am
by khaimovmr
satoon101 wrote:Python 3.11 is supposed to have a significant speed improvement, but I don't know how much that would affect SP.

Yeah. I see there's the performance boost for CPython as well. I wonder if it is at last considering python type-hints to optimize the C-code.

Re: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?

Posted: Tue Sep 13, 2022 10:35 am
by Ayuto
As far as I understand, the performance improvements come from:
  1. Improved frames
  2. Improved function calls
  3. Adaptive instructions
The latter is explained in PEP659. The interpreter will look for code with type stability during runtime and replaces the instructions with other instructions that fit better in that specific case. So, it's done during runtime and doesn't consider any type hints.

See also:
https://docs.python.org/3.11/whatsnew/3 ... imizations

I also really like the zero-cost exceptions :smile:

Re: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?

Posted: Tue Sep 13, 2022 11:34 am
by khaimovmr
Ayuto wrote:I also really like the zero-cost exceptions :smile:

+