Re: Search in list of dictionaries

2009-02-19 Thread Alex Gusarov
gt;>break >>else: >>os.popen(input) >> >> But it's a brute-force method and I think there is another way in >> searching items through a list by dictionary key. Please give me advice how >> can I implement fast searc

Re: Search in list of dictionaries

2009-02-19 Thread MRAB
: if cmd['shortcut'] == input: os.popen(cmd['command']) break else: os.popen(input) But it's a brute-force method and I think there is another way in searching items through a list by dictionary key. Please giv

Search in list of dictionaries

2009-02-19 Thread Alex Gusarov
if cmd['shortcut'] == input: os.popen(cmd['command']) break else: os.popen(input) But it's a brute-force method and I think there is another way in searching items through a list by dictionary key. Please give me advice how can I implement