[issue43206] Optional parameter got passed even when not in the call

2021-02-12 Thread Abhilash Jindal
Abhilash Jindal added the comment: Aah TIL. Thanks. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue43206] Optional parameter got passed even when not in the call

2021-02-12 Thread Eric V. Smith
Eric V. Smith added the comment: It's hard to tell because you didn't show the whole program, but this looks like a mutable default argument problem. Basically you're changing the default value in a different call to Row(). https://docs.python.org/3/faq/programming.html#why-are-default-value

[issue43206] Optional parameter got passed even when not in the call

2021-02-12 Thread Abhilash Jindal
New submission from Abhilash Jindal : Seeing a very unexpected behavior. A call to __init__ method is receiving extra arguments not present in the caller. Following is a debugger session to demonstrate. Notice that "data_dict" is not being passed in the caller, yet the callee is receiving it!