From: Tom Tromey <tromey@redhat.com>
To: Oguz Kayral <oguzkayral@gmail.com>
Cc: archer@sourceware.org
Subject: Re: [RFC][2/5] Event and event registry
Date: Wed, 10 Feb 2010 22:45:00 -0000 [thread overview]
Message-ID: <m3hbpovhfo.fsf@fleche.redhat.com> (raw)
In-Reply-To: <36a35d481002050312q4fb943fdifbfe872b128a3af5@mail.gmail.com> (Oguz Kayral's message of "Fri, 5 Feb 2010 13:12:44 +0200")
>>>>> "Oguz" == Oguz Kayral <oguzkayral@gmail.com> writes:
Tom> It seems to me that we could just define that an event is a dictionary,
Tom> rather than introducing a new type. Is there a drawback to doing this?
Oguz> One thing I tried to achieve was to minimize the use of brackets,
Oguz> quotation marks etc. Assuming we defined an event as a dictionary, if
Oguz> a user wants to reach the stop_reason he will have to use
Oguz> stop_event["stop_reason"]. But in our case he uses
Oguz> stop_event.stop_reason, which I think is more pythonic.
Ok, I see. That does make sense.
Oguz> What do you guys think on this? Maybe we can use a dictionary and find
Oguz> some way to generate proper getters.,
It has been a while since I looked at the patches, but basically what I
would like to avoid is having to make a whole new class every time we
want to add an event.
Tom
prev parent reply other threads:[~2010-02-10 22:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-23 15:35 Oguz Kayral
2009-09-21 21:55 ` Tom Tromey
2009-09-23 23:28 ` Richard Ward
2009-09-25 18:37 ` Tom Tromey
2010-02-05 11:12 ` Oguz Kayral
2010-02-05 11:31 ` [Archer] " Joel Brobecker
2010-02-10 22:45 ` Tom Tromey [this message]
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=m3hbpovhfo.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=archer@sourceware.org \
--cc=oguzkayral@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).