[Bug gdb/18380] New: 'help python' gives Python 2 example

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug gdb/18380] New: 'help python' gives Python 2 example

fweimer at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=18380

            Bug ID: 18380
           Summary: 'help python' gives Python 2 example
           Product: gdb
           Version: 7.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: dholth at gmail dot com
  Target Milestone: ---

Even though gdb embeds Python 3, the help statement shows a Python 2 example.
Typing the example yields SyntaxError. Instead, it should read python print(23)

(gdb) help python
Evaluate a Python command.

The command can be given as an argument, for instance:

    python print 23

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug gdb/18380] 'help python' gives Python 2 example

fweimer at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=18380

Jonah Graham <jonah at kichwacoders dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonah at kichwacoders dot com

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug python/18380] 'help python' gives Python 2 example

fweimer at redhat dot com
In reply to this post by fweimer at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=18380

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |good-first-bug
                 CC|                            |tromey at sourceware dot org
          Component|gdb                         |python

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug python/18380] 'help python' gives Python 2 example

fweimer at redhat dot com
In reply to this post by fweimer at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=18380

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |tromey at sourceware dot org

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug python/18380] 'help python' gives Python 2 example

fweimer at redhat dot com
In reply to this post by fweimer at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=18380

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <[hidden email]>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a154931ef1ef1c588c0e7da5e5fd4658c5dd28f5

commit a154931ef1ef1c588c0e7da5e5fd4658c5dd28f5
Author: Tom Tromey <[hidden email]>
Date:   Sat Sep 8 09:13:37 2018 -0600

    Fix help text for "python" command

    PR python/18380 points out that the example in the "help python" text
    will only work in Python 2.  This changes the example to be valid
    syntax for both Python 2 and Python 3.

    gdb/ChangeLog
    2018-09-10  Tom Tromey  <[hidden email]>

        PR python/18380:
        * python/python.c (_initialize_python): Make example in "python"
        help work in Python 3.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug python/18380] 'help python' gives Python 2 example

fweimer at redhat dot com
In reply to this post by fweimer at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=18380

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.3

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
Fixed.

--
You are receiving this mail because:
You are on the CC list for the bug.