discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem extracting individual elements from pmt list and pmt dictionary


From: George Edwards
Subject: Problem extracting individual elements from pmt list and pmt dictionary messages
Date: Fri, 29 Jul 2022 09:12:32 -0500

Hello GNURadio Community, 

I am creating a Python OOT block to send/receive pmt list and pmt dictionary messages. In both cases, I am having problems extracting the elements in the message. Let's assume (some trivial values):
P_list = pmt.to_pmt([1, 2, 3.45, 'eggs'])
P_dict = pmt.to_pmt({'spam': 20, 'eggs': 40})

How do I extract individual elements from P_list and P_dict? Nothing I tried worked.

I appreciate any help.

Regards,
George

reply via email to

[Prev in Thread] Current Thread [Next in Thread]