This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: source command for python scripts (was Re: Python pretty-printers and non-ASCII strings do not play well together :-()


On Wed, Nov 5, 2008 at 9:56 AM, Thiago Jung Bauermann
<bauerman@br.ibm.com> wrote:
> El mar, 04-11-2008 a las 11:28 -0800, Paul Pluzhnikov escribió:
>>   (gdb) python execfile('simple.py')
>
> I was wondering if it would be useful to have a command in GDB to source
> Python scripts, something like "source -p foo.py".

To tell the truth, I've just been using 'source foo.py', where the
first line of 'foo.py' is

  python

I think it might be nice for "plain" 'source' to auto-deduce that
this is python source either by looking at ".py" extension, or
by scanning file contents for "obvious" python-ness.


-- 
Paul Pluzhnikov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]