Re: Problem extracting individual elements from pmt list and pmt dictionary messages

2022-08-02 Thread George Edwards
Hi Jeff, Thanks again for your recent response to my posted questions, but it was not explicit enough to help me extract the values I wanted from the pmt list and dictionary. Based on the following pmt definitions for a list and dictionary. How do I extract the 1st element in the list and the valu

Re: Problem extracting individual elements from pmt list and pmt dictionary messages

2022-07-29 Thread George Edwards
Hi Jeff, Thank you very much! Please make references directly to my pmt objects P_list and P_dict, so I can learn how to get elements from them? Thank you! Regards, George On Fri, Jul 29, 2022 at 2:58 PM Jeff Long wrote: > k = pmt.intern('spam') > nil = pmt.get_PMT_NIL() > v = pmt.dict_ref(d

Re: Problem extracting individual elements from pmt list and pmt dictionary messages

2022-07-29 Thread Jeff Long
k = pmt.intern('spam') nil = pmt.get_PMT_NIL() v = pmt.dict_ref(d, k, nil) The last argument to dict_ref is what gets returned if the key is not found. On Fri, Jul 29, 2022 at 11:13 AM George Edwards wrote: > Hello GNURadio Community, > > I am creating a Python OOT block to send/receive pmt lis