View Single Post
  #2  
Old 05-06-2019, 10:47 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hi slouw,

This seems more like a Python question than a SecureCRT question:

https://docs.python.org/2.7/library/...ing-types-dict

(I personally think there are better resources than the above "official" documentation, but you would need to search those out yourself.)

But what do you mean by "This does not work"?
Quote:
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# This does not work
What error do you get? What results do you get? How does that differ from the expected results?

You need to add the key+item into the dictionary as a pair and I am not sure any of your code is doing that. Instead it looks like you are replacing key with item.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote