Re: shadows name from outer scope

2016-10-11 Thread Terry Reedy
On 10/11/2016 11:50 AM, Daiyue Weng wrote: Hi, I have the following code structure, def one_func(param1, param2, param3): process_outcome = {'dict': None} outcome = another_func(param1, process_outcome, db_host=param2, funcs_to_run=param3) PyCharm warns me Shadows name

shadows name from outer scope

2016-10-11 Thread Daiyue Weng
Hi, I have the following code structure, def one_func(param1, param2, param3): process_outcome = {'dict': None} outcome = another_func(param1, process_outcome, db_host=param2, funcs_to_run=param3) PyCharm warns me Shadows name from outer scope on every variable here,