[EMAIL PROTECTED] wrote: > I have encountered a very strange error and I'm hoping that some Python > hackers here could give me insight on this. > > searchview.py file contains two functions: > def mysearch(indexname, request, c, page = 0, searchdburl = INDEX_URL, > query_add = {}, queries = [], form = True, limit = DEFAULT_LIMIT, tags > = {}, order = ''): > and > def search(findquery, path = None, page=0, tags = {}, order='', limit = > DEFAULT_LIMIT, queries=[], searchdburl = INDEX_URL):
default values are evaluated once, when the function object is created. this is explained in the tutorial, in the language reference, and in the FAQ: http://pyfaq.infogami.com/why-are-default-values-shared-between-objects </F> -- http://mail.python.org/mailman/listinfo/python-list