Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
You are passing a reference to the list so changes in Flash are made to the actual variable. Using cards.copy() instead of cards passes a copy of the list and hence modifications inside the function won't affect the original list. This is not a bug in CPython and it's more suited python-tutor mailing list. Also in future bug reports please paste the program and output than images. Thanks ---------- nosy: +xtreak _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36741> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com