[RFA][patch 1/9] Yet another respin of the patch with initial Python support

Eli Zaretskii eliz@gnu.org
Sat Aug 2 19:00:00 GMT 2008


> Date: Sat, 2 Aug 2008 13:37:44 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: bauerman@br.ibm.com, gdb-patches@sourceware.org
> 
> On Sat, Jul 26, 2008 at 10:24:49PM +0300, Eli Zaretskii wrote:
> > > What would you like explained?
> > 
> > Why it is important to the manual reader to know that there's a module
> > called `gdb', and that all methods and classes added by GDB are placed
> > in that module.  Suppose I didn't know that--what would I be missing
> > as result, and what code would I get wrong?
> 
> You would not know that you had to 'import gdb' in any new modules you
> wrote, that's all.  This is obvious to a Python programmer from the
> existence of the module.

Might as well say explicitly that new modules need to 'import gdb'.
Most Python programmers will still understand that the methods and
classes added by GDB are placed in the `gdb' module, but the
instruction to 'import gdb' is IMO more friendly to those who won't.



More information about the Gdb-patches mailing list