[issue36393] python user define function is replacing variable value

2019-03-21 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue36393] python user define function is replacing variable value

2019-03-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is expected behavior. Please read : https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects . Default values are defined when function is created and not for every function call and you are having a referen

[issue36393] python user define function is replacing variable value

2019-03-21 Thread Hardik
New submission from Hardik : I have created function "listappend():"with two arguments.Function can append list value with each function call and return updated value. I am trying to store this updated value into variable which I can but when I call listappend() to update it changes the store