Proposal to remove Python 2 support

Mikhail.Terekhov@dell.com Mikhail.Terekhov@dell.com
Fri Sep 18 16:39:59 GMT 2020


> -----Original Message-----
> From: Gdb <gdb-bounces@sourceware.org> On Behalf Of Pedro Alves via Gdb
> Sent: Friday, September 18, 2020 11:59 AM
> To: Tom Tromey; 
> Subject: Re: Proposal to remove Python 2 support
>
> On 9/15/20 9:46 PM, Tom Tromey wrote:
> > Hi.  Python 2 officially reached its sunset date this year:
> >
> >     https://www.python.org/doc/sunset-python-2/
> > 
> > I think gdb should follow suit starting in gdb 11 -- that is, my 
> > proposal is to keep Python 2 support for the upcoming gdb 10 release, 
> > but remove said support from git master.
> > 
> > In the short term this would amount to some relatively minor code 
> > cleanups.
> > 
> > In the longer term, my preferred approach to handling inferior control 
> > from Python is to base it on async/await, which IIUC is only available 
> > in Python 3.  So, this would be an enabling step.
>
> Dropping Python 2 support is going to be an issue for us, given we will still have a couple years more of DTS releases for RHEL 7, which is Python 2.7 based.
>
> If possible, we would prefer if Python 2 support was kept around a while longer.

RHEL 7 comes with Python 3.6 as well.

Regards,
Mikhail


More information about the Gdb mailing list