This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: [python] Add the in_scope.py script.
El lun, 24-11-2008 a las 10:24 -0700, Tom Tromey escribiÃ:
> >>>>> "Thiago" == Thiago Jung Bauermann <bauerman@br.ibm.com> writes:
> Thiago> Also, the other scripts have an "import gdb" line. Is it
> Thiago> necessary when the script is loaded from the library dir? I
> Thiago> added it to this script, just in case.
>
> I believe it is needed if your script uses anything from the gdb
> module.
Doesn't GDB automatically imports the gdb module? I was using my script
without the import line, and it worked. Perhaps things are different
when using the python library infrastructure then.
> Then users would call:
>
> $in_scope ("a", "b", "c")
>
> IMO this is a bit more natural.
Agreed, will do that.
> Also, I got rid of the strip() from my functions, on the theory that
> users can just say what they mean :-)
Makes sense. :-)
--
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center