From: Paul Koning <Paul_Koning@dell.com>
To: tromey@redhat.com
Cc: jimb@red-bean.com, bauerman@br.ibm.com, gdb@sourceware.org
Subject: Re: repo to work on python scripting support
Date: Wed, 26 Mar 2008 20:04:00 -0000 [thread overview]
Message-ID: <18410.39001.610982.862010@gargle.gargle.HOWL> (raw)
In-Reply-To: <m3abkljt0v.fsf@fleche.redhat.com>
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Paul> The goal of supporting Python scripting should be to provide an
Paul> environment that is familiar to Python programmers. That means
Paul> passing arguments in the way Python normally does.
Tom> I think we're misunderstanding each other somehow. This
Tom> particular sub-discussion is just about how to parse arguments
Tom> passed from the gdb CLI into Python.
I interpreted it that way. My point is that I'd say "a call is a
call" -- this case is no different from any other Python call. And
that fits the Python model, where interactions with the interpreter
(at the >>> prompt) look just like program code. In particular, there
is no difference in the way call arguments are handled.
Tom> The Python code people write and plug into gdb will just be
Tom> plain old Python. Fetching data from gdb will look Pythonic.
Tom> Longer term, I'd like to be able to fully control gdb from
Tom> Python.
Sounds good.
On the earlier note:
Daniel> print $(py "this is a python \"program\"")
Tom> I was thinking some functions could ask for an uninterpreted
Tom> string.
Tom> print $(py do something in python)
I like that. Quoting in strings would be a major hassle, especially
if the Python code contains raw strings or block (triple quote)
strings. Parentheses should work fine given that those have to
match. The only difficulty is that you have to know at least some of
Python's syntax to find the matching close paren. (Basically, the
scanner would have to know about comments and about the various
flavors of Python strings.)
paul
next prev parent reply other threads:[~2008-03-26 18:41 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-16 0:42 Thiago Jung Bauermann
2008-03-16 2:55 ` Tom Tromey
2008-03-24 17:16 ` Thiago Jung Bauermann
2008-03-25 11:45 ` Tom Tromey
2008-03-25 13:53 ` Daniel Jacobowitz
2008-03-25 18:37 ` Jim Blandy
2008-03-25 18:52 ` Daniel Jacobowitz
2008-03-25 18:53 ` Jim Blandy
2008-03-25 19:18 ` Tom Tromey
2008-03-27 6:41 ` Jim Blandy
2008-03-27 17:57 ` Paul Koning
2008-03-25 19:31 ` Paul Koning
2008-03-25 20:18 ` Tom Tromey
2008-03-25 20:31 ` Paul Koning
2008-03-26 3:23 ` Tom Tromey
2008-03-26 12:55 ` Jim Blandy
2008-03-26 17:29 ` Paul Koning
2008-03-26 17:58 ` Daniel Jacobowitz
2008-03-26 18:41 ` Tom Tromey
2008-03-26 20:04 ` Paul Koning [this message]
2008-03-26 22:45 ` Jim Blandy
2008-03-26 18:05 ` Doug Evans
2008-03-26 18:13 ` Daniel Jacobowitz
2008-03-26 18:25 ` Tom Tromey
2008-03-26 18:41 ` Daniel Jacobowitz
2008-03-26 18:55 ` Tom Tromey
2008-03-26 20:57 ` Daniel Jacobowitz
2008-03-26 21:01 ` Thiago Jung Bauermann
2008-03-27 14:11 ` Jim Blandy
2008-03-27 16:49 ` Paul Koning
2008-03-26 18:23 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18410.39001.610982.862010@gargle.gargle.HOWL \
--to=paul_koning@dell.com \
--cc=bauerman@br.ibm.com \
--cc=gdb@sourceware.org \
--cc=jimb@red-bean.com \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox