[issue44557] It's a bug? Dict

Karthikeyan Singaravelan report at bugs.python.org
Sat Jul 3 09:56:40 EDT 2021


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

This is not a bug since in this case assignment is referring to the same object and thus mutating one variable reflects change in other variable.

Relevant FAQ : https://docs.python.org/3/faq/programming.html#why-did-changing-list-y-also-change-list-x

----------
nosy: +xtreak

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44557>
_______________________________________


More information about the Python-bugs-list mailing list