Proposal to remove Python 2 support

André Pönitz apoenitz@t-online.de
Wed Sep 16 17:50:37 GMT 2020


On Wed, Sep 16, 2020 at 02:53:12PM +0100, Andrew Burgess wrote:
> * Joel Brobecker <brobecker@adacore.com> [2020-09-16 06:00:13 -0700]:
> 
> > > That has no sense for me because Python 2 doesn't disappear from distros.
> > 
> > I don't know how long this is going to be True, but "distros" have
> > been shipping Python 3.x for quite a while now, so lack of Python 2
> > support wouldn't prevent you from building GDB with Python support
> > enabled.
> 
> But a user might potentially have a significant body of Python 2 code
> that they run through GDB, so it's not as simple as "just" building
> with Python 3 and off they go.
>
> I think once distros start to drop Python 2 then there's a really good
> argument that GDB should drop Python 2 also, but before then we need
> to go in with our eyes open, if the distros still ship Python 2 then
> users might be annoyed if they have to rewrite their scripts.

I am not sure whether this is significant, but I have a data point here:

I have ~13kLOC of Python code to be used with GDB that I currently need
to keep compatible with Python 2 and 3, as this may be used with any GDB.

Dropping Python 2 would certainly make /my/ life simpler.

Regards,
André


More information about the Gdb mailing list