Document fact that mininum Python version is now 2.6

Message ID 20190226104533.601164f1@f29-4.lan
State New, archived
Headers

Commit Message

Kevin Buettner Feb. 26, 2019, 5:45 p.m. UTC
  gdb/ChangeLog:

	* NEWS: Note minimum Python version.

gdb/doc/ChangeLog:

	* gdb.texinfo (Configure Options): Document minimum python
	version.
  

Comments

Eli Zaretskii Feb. 26, 2019, 6:29 p.m. UTC | #1
> Date: Tue, 26 Feb 2019 10:45:33 -0700
> From: Kevin Buettner <kevinb@redhat.com>
> Cc: Eli Zaretskii <eliz@gnu.org>
> 
> gdb/ChangeLog:
> 
> 	* NEWS: Note minimum Python version.
> 
> gdb/doc/ChangeLog:
> 
> 	* gdb.texinfo (Configure Options): Document minimum python
> 	version.

Thanks, this is OK.
  
Kevin Buettner Feb. 27, 2019, 6:18 p.m. UTC | #2
On Tue, 26 Feb 2019 20:29:07 +0200
Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Tue, 26 Feb 2019 10:45:33 -0700
> > From: Kevin Buettner <kevinb@redhat.com>
> > Cc: Eli Zaretskii <eliz@gnu.org>
> > 
> > gdb/ChangeLog:
> > 
> > 	* NEWS: Note minimum Python version.
> > 
> > gdb/doc/ChangeLog:
> > 
> > 	* gdb.texinfo (Configure Options): Document minimum python
> > 	version.  
> 
> Thanks, this is OK.

Thanks for the review.

I've pushed this change.

Kevin
  
Kevin Buettner Feb. 27, 2019, 7 p.m. UTC | #3
On Wed, 27 Feb 2019 11:18:09 -0700
Kevin Buettner <kevinb@redhat.com> wrote:

> > > gdb/ChangeLog:
> > > 
> > > 	* NEWS: Note minimum Python version.
> > > 
> > > gdb/doc/ChangeLog:
> > > 
> > > 	* gdb.texinfo (Configure Options): Document minimum python
> > > 	version.    
> > 
> > Thanks, this is OK.  
> 
> Thanks for the review.
> 
> I've pushed this change.

I realized that, in conjunction with Joel's changes to the NEWS file,
this push now says that gdb-8.3 no longer supports Python versions
less than 2.6.  This is technically true due to the commit of the
two argument version of gdb.Value that I pushed yesterday.
(That commit uses the PEP 3118 buffer protocol which is only
supported in Python versions 2.6 and up.)

So...

I've pushed this documentation commit to gdb-8.3-branch also.

I won't push "Use Python 2.[67] / 3.X / PEP 3118 buffer protocol"
to the gdb-8.3-branch unless someone asks for it though.

Kevin
  

Patch

diff --git a/gdb/NEWS b/gdb/NEWS
index bfb023e7bb..e2f1907db4 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -188,6 +188,8 @@  FreeBSD/riscv			riscv*-*-freebsd*
 
 * Python API
 
+  ** GDB no longer supports Python versions less than 2.6.
+
   ** The gdb.Inferior type has a new 'progspace' property, which is the program
      space associated to that inferior.
 
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 7b2e5578bd..8b61cc1ba3 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -35975,7 +35975,7 @@  libpython is present and found at configure time.)  Python makes
 @value{GDBN} scripting much more powerful than the restricted CLI
 scripting language.  If your host does not have Python installed, you
 can find it on `http://www.python.org/download/'.  The oldest version
-of Python supported by GDB is 2.4.  The optional argument @var{python}
+of Python supported by GDB is 2.6.  The optional argument @var{python}
 is used to find the Python headers and libraries.  It can be either
 the name of a Python executable, or the name of the directory in which
 Python is installed.