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

All other Source.Python topics and issues.
User avatar
khaimovmr
Member
Posts: 52
Joined: Fri Aug 25, 2017 3:15 am
Contact:

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

Postby khaimovmr » Mon Sep 12, 2022 9:17 am

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
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

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

Postby Ayuto » Mon Sep 12, 2022 3:04 pm

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.
User avatar
khaimovmr
Member
Posts: 52
Joined: Fri Aug 25, 2017 3:15 am
Contact:

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

Postby khaimovmr » Mon Sep 12, 2022 3:07 pm

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 )
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

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

Postby satoon101 » Mon Sep 12, 2022 11:42 pm

Python 3.11 is supposed to have a significant speed improvement, but I don't know how much that would affect SP.
Image
User avatar
khaimovmr
Member
Posts: 52
Joined: Fri Aug 25, 2017 3:15 am
Contact:

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

Postby khaimovmr » Tue Sep 13, 2022 8:00 am

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.
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

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

Postby Ayuto » Tue Sep 13, 2022 10:35 am

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:
User avatar
khaimovmr
Member
Posts: 52
Joined: Fri Aug 25, 2017 3:15 am
Contact:

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

Postby khaimovmr » Tue Sep 13, 2022 11:34 am

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

+

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 24 guests