Mike Kent <mrmak...@cox.net> wrote: > >On Feb 2, 6:40 pm, Baris Demir <demirba...@gmail.com> wrote: > >> def simpleCut(d=dict()): >> temp=d >> for i in temp.keys(): >> if (temp[i] == .......) : >> temp[i]=new_value >> return temp > >You have been bitten by the shared default parameter noobie trap: >http://www.python.org/doc/faq/general/#why-are-default-values-shared-between-objects
Actually, he hasn't. His problem is more fundamental. However, this is still a good thing for you to point out now and then. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list