Eduardo "EdCrypt" O. Padoan a écrit :
>> def myFunc(listA):
>>     listB = listA
>>     work on & modify listB
>>     return(listB)
> 
> def my_func(listA):
>   listB = listA[:]
>   #work on & modify listB
>   return listB


Won't do for the OP's needs - he wants to modify the objects contained 
in listB without impacting the ones in listA (or at least that's what I 
understand).

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to