This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [PATCH] Add bp_location to Python interface
- From: <Paul_Koning at Dell dot com>
- To: <pmuldoon at redhat dot com>, <kevin dot pouget at gmail dot com>
- Cc: <tromey at redhat dot com>, <gdb-patches at sourceware dot org>, <eliz at gnu dot org>
- Date: Tue, 3 Apr 2012 09:42:52 -0500
- Subject: RE: [PATCH] Add bp_location to Python interface
- References: <CAPftXUL7Gag8pOzh6NF2t=nowBgSYa_Je3CkMQHgxexrNz+OHg@mail.gmail.com> <m3liqn9lym.fsf@redhat.com> <CAPftXULeNBNLT=9EixD3sEdtxcLkRuUFY6ny=2k9NSUQqHf+Bg@mail.gmail.com> <m3k4656dkx.fsf@redhat.com> <CAPftXU+NjNead1ZHEc8_P84py3esmOnAKVa2Y1KpxKX_augKsw@mail.gmail.com> <CAPftXUL6KTe-WEFnWR38pVnGUJhmEQgZ0J7R7heeR3GHtmrf5g@mail.gmail.com> <83r4z8eqoa.fsf@gnu.org> <CAPftXULwT9pTagJOzVsDjtdFkcoFwTWm3gs0=a=EYzMbZYHPgA@mail.gmail.com> <CADPb22Sj1SmW0u+usg6FfmrteOuv7inQWgd8YqxdMCuaH=KHdg@mail.gmail.com> <CAPftXU+R6kZqwF0ZFhc_dBQW54z__581rgLgbift3DcGLcCLhA@mail.gmail.com> <CADPb22RTZmwQ3VsrYYw--o=qUp+3_FOT6Sx6BU5dkcP9uGKmkw@mail.gmail.com> <CAPftXUJuT+m1G+9UGkzPpzo=rps2RMxXZkDVnUh17i9-G3YYgw@mail.gmail.com> <87zkaxn9zf.fsf@fleche.redhat.com> <CAPftXUJ4VqDsadmWYZ39qpyGd7UAV1G3iHkDkWkVKqyxGnSCqg@mail.gmail.com> <4F7AE9C6.7050708@redhat.com>
>...
>Though I suspect it does not really matter -- the user can quite easily turn a tuple into a list. As for returning a tuple versus a list, again, I guess it does not really matter; the tuple idiom was just my convention (though with very large lists, the conversion to a tuple might be expensive).
If you know the number of items, the API lets you create the tuple with that size and fill it in item by item, so there isn't necessary a conversion from list to tuple involved.
paul