Proposal to remove Python 2 support

Tom Tromey
Tue Sep 15 20:46:20 GMT 2020

Hi.  Python 2 officially reached its sunset date this year:

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

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.

Let me know what you think.


More information about the Gdb mailing list