This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add bp_location to Python interface


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]