[Qt-creator] RFC: Dropping support for Python 2.x for GDB/LLDB

Alexandru Croitor alexandru.croitor at qt.io
Tue Feb 26 13:10:31 CET 2019


I know that people like to throw around the end of support date, but in my opinion the reality will be just like with Windows XP.

Also there's nothing for me to update, I use the latest macOS version.

On 26. Feb 2019, at 13:03, Christian Gagneraud <chgans at gmail.com<mailto:chgans at gmail.com>> wrote:

On Tue, 26 Feb 2019 at 23:26, Alexandru Croitor <alexandru.croitor at qt.io<mailto:alexandru.croitor at qt.io>> wrote:

Hi,

Afaik all macOS versions so far, link against and use the system Python 2.7.x in lldb.

In which case I assume that the dumper script and friends have to stay 2.7.x compatible.

Python 2.7 will not be maintained past 2020.
https://pythonclock.org<https://pythonclock.org/>
You have 0 Years 10 Months 4 Days 22 Hours 57 Minutes and 53 Seconds,Huh?

Please update your computer/OS and stop holding us back.

Chris



On 21. Feb 2019, at 20:51, André Pönitz <apoenitz at t-online.de<mailto:apoenitz at t-online.de>> wrote:


Hi all.

As you may know, Qt Creator heavily uses Python in the Debugger
plugin to interact with the "real" debuggers (GDB, LLDB, CDB, PDB).

Currently the scripts in the glue code works with both Python
2.7 and 3.x. This is a workable setup, but makes it a bit
unpleasant to test and maintain and in some code paths less
efficient than a 3.x-only setup.

I am therefore pondering the idea of dropping support for Python 2.x,
and I'd like to gauge the potential heat such a move will draw.

What do people see as output of the following:

  python --version
  python3 --version
  gdb -version
  gdb -batch -ex 'py import sys' -ex 'py print(sys.version)'
  lldb -version
  lldb -batch -o 'sc import sys' -o 'sc print(sys.version)


For the record, on my 18.04.1 LTS here this yields something like:

  Python 2.7.15rc1
  Python 3.6.7
  GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
  3.6.7 (default, Oct 22 2018, 11:32:17)
  lldb version 6.0.0
  2.7.15rc1 (default, Nov 12 2018, 14:31:15)


Private reply would be just fine, I might have some follow-up
questions for certain setups.

Andre'

_______________________________________________
Qt-creator mailing list
Qt-creator at qt-project.org<mailto:Qt-creator at qt-project.org>
https://lists.qt-project.org/listinfo/qt-creator

_______________________________________________
Qt-creator mailing list
Qt-creator at qt-project.org<mailto:Qt-creator at qt-project.org>
https://lists.qt-project.org/listinfo/qt-creator

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20190226/de29a6a9/attachment-0001.html>


More information about the Qt-creator mailing list