X. Yan <xg...@yorku.ca> added the comment:

Hi Serhiy,

Thanks for your reply. However, the issue I reported was not about sharing the 
default value. I understand that the parameter L would keep its value [1] from 
function f's first run, and used it in the second run to get [1, 2].

My point is that the variable v1 only got involved in f's first run. It should 
keep the result [1] since then. The second calling v2=f(2) is irrelevant to v1, 
therefore, v1's content shouldn't be changed. v1 should be independent from f's 
later activities. Please let me know if this makes sense.

----------
status: closed -> open

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33835>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to