04-19-2018 01:03 AM - edited 03-01-2019 04:08 AM
In ncs_pycli to get the I use the following code which returns half of the key is there any better way to do
$ ncs_pycli package_name
In [1]: root.kicker__kickers.data_kicker.keys()
Out[1]:
[Key values = [<_ncs.Value type=C_BUF(5) value='test_action_k'...>],
Key values = [<_ncs.Value type=C_BUF(5) value='ncs-internal-si'...>]]
Here the full name is test_action_kicker.
and is there any better way to print object values like pprint(object) in python.
Solved! Go to Solution.
04-20-2018 05:04 AM
Hi Kiran,
You can use a for loop.
n [5]: for i in root.kicker__kickers.data_kicker.keys():
...: print ( i )
Regards,
Shameer
04-27-2018 11:28 AM
Hi Shameer,
I found a better way to get the complete string.
In [10]: list(root.kicker__kickers.data_kicker)
Thanks & Regards,
Kiran Kumar
04-20-2018 05:04 AM
Hi Kiran,
You can use a for loop.
n [5]: for i in root.kicker__kickers.data_kicker.keys():
...: print ( i )
Regards,
Shameer
04-27-2018 11:28 AM
Hi Shameer,
I found a better way to get the complete string.
In [10]: list(root.kicker__kickers.data_kicker)
Thanks & Regards,
Kiran Kumar
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide