searching in list

vino19 vinograd19 at gmail.com
Mon May 30 08:58:31 EDT 2011


I want to make a function that is called only once per one argument. I mean I want to store data of function calling to prevent calling it again if there is no need.
How to make it? For example I can make a global list that just consist of tuples 
[(arg1, res1), (arg2, res2), ...]. Ok, how to search if an arg135 in that list?

Thanks for answering



More information about the Python-list mailing list