[PATCH] Add bp_location to Python interface

Kevin Pouget kevin.pouget@gmail.com
Wed May 9 07:18:00 GMT 2012


On Wed, Apr 4, 2012 at 10:35 AM, Kevin Pouget <kevin.pouget@gmail.com> wrote:
>
> On Tue, Apr 3, 2012 at 4:42 PM,  <Paul_Koning@dell.com> wrote:
> >>...
> >>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.
> >
>
>
> Hello,
>
> On Tue, Apr 3, 2012 at 4:42 PM,  <Paul_Koning@dell.com> wrote:
> > 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.
>
> the sequence size is not "known in advance", although it can be
> computed to instantiate the tuple before populating it;
>
> On Tue, Apr 3, 2012 at 2:15 PM, Phil Muldoon <pmuldoon@redhat.com> wrote:
> > though with very large lists, the conversion to a tuple might be expensive
>
> here [I think that] the list size is limited by the number of program
> spaces, which is usually the number of inferiors, so this conversion
> can't really be that expensive
>
>
> I'll wait for Tom's point of view before updating the code.
>
> (I'll also add the missing space in the doc in the next patch
> >> the following attributes (all read only). Breakpoint location ...
> )
>
>
> thanks for your advises,
>
> Kevin

gentle remainder


thanks;

Kevin



More information about the Gdb-patches mailing list