[issue46145] List reference not working properly

2021-12-21 Thread Antara
Antara added the comment: Not an issue -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46145> ___ ___ Pyth

[issue46145] List reference not working properly

2021-12-21 Thread Antara
New submission from Antara : o= [1,2,3,3] print('o:',id(o)) d= o print('d:',id(d)) d= [1,2,3,4] dd= o print('dd:',id(dd)) dd[3]= 5 print('o:',o) print('d:',d) print('dd:',dd) === Output: o: 1976210449032 d: 197621