timr at probo.com
Mon Feb 2 23:29:01 EST 2009
Mike Kent <mrmakent at cox.net> wrote:
>On Feb 2, 6:40 pm, Baris Demir <demirba... at gmail.com> wrote:
>> def simpleCut(d=dict()):
>> for i in temp.keys():
>> if (temp[i] == .......) :
>> return temp
>You have been bitten by the shared default parameter noobie trap:
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, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list