Message354560
Hi Devor,
This is not a bug in Python but indeed documented behavior. When you do
p=l
you are creating a new reference to the same list ([2,3,4]), so changing one changes the other. If you want to make a copy you can do
p = l.copy() |
|
Date |
User |
Action |
Args |
2019-10-13 00:41:09 | pablogsal | set | recipients:
+ pablogsal, dev40573 |
2019-10-13 00:41:09 | pablogsal | set | messageid: <1570927269.34.0.35998456506.issue38458@roundup.psfhosted.org> |
2019-10-13 00:41:09 | pablogsal | link | issue38458 messages |
2019-10-13 00:41:09 | pablogsal | create | |
|