[issue38808] weird bug while using a for loop and array

2019-11-15 Thread Zach kuunka
Zach kuunka added the comment: I will check that out, Thank you -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue38808] weird bug while using a for loop and array

2019-11-15 Thread Mark Dickinson
Mark Dickinson added the comment: This isn't a bug: it's the way that Python's assignment model works. This is explained in various places (including the official Python documentation), but you may find this excellent presentation by Ned Batchelder useful: https://nedbatchelder.com/text/name

[issue38808] weird bug while using a for loop and array

2019-11-14 Thread Zach kuunka
Zach kuunka added the comment: I found out it just happens when you set an array to an array they behave as the same thing, which if its not a bug it sure is counter-intuitive. if you do x = 1 then y = x then add one to y you have y = 2 and x = 1 if you do it for an array arr1 = [1] then se

[issue38808] weird bug while using a for loop and array

2019-11-14 Thread Zach kuunka
New submission from Zach kuunka : I haven't used this bug reporting thing before so sorry if I mess something up. Anyway i'm not sure exactly what is causing the issue but the issue appears when you have a for loop looping through an array and you make a variable and set it to that array and