Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:

You're referencing to the same list 3 times in B. So modifying it once means 
all the elements referring to same object reflect the change. Make a copy of 
the list during append to ensure modification of one doesn't affect other. This 
is not a python bug.

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

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

Reply via email to