This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: add ability to "source" Python code
- From: Doug Evans <dje at google dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 8 Feb 2009 17:35:13 -0800
- Subject: Re: RFC: add ability to "source" Python code
- References: <m3hc3520f9.fsf@fleche.redhat.com>
On Sat, Feb 7, 2009 at 5:16 PM, Tom Tromey <elpa@tromey.com> wrote:
> With this patch, a file ending in ".py" is automatically treated as
> Python. Also, other files can be interpreted as Python code by using
> the "-p" switch. I made other switches into errors, on the theory
> that maybe we'd want to take more later ... I'm not sure if this is a
> good idea or not.
It's easier to relax restrictions than it is to impose them after the fact.
IOW, I think it's a good idea.