discuss-gnuradio
[Top][All Lists]
Advanced

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

How do I extract individual values from pmt list and dict


From: George Edwards
Subject: How do I extract individual values from pmt list and dict
Date: Wed, 3 Aug 2022 06:19:04 -0500

Hello GNURadio Community, 

Let's assume the following pmt definitions for a list and and dictionary in an OOT block: 
P_list = pmt.to_pmt([1, 2, 3.45, 'eggs'])
P_dict = pmt.to_pmt({'spam': 20, 'eggs': 40})

How do I explicitly extract the first element in P_list and the value for 'spam' from P_dict?

Thank you!

George

reply via email to

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