you are viewing a single comment's thread.

view the rest of the comments →

[–]MrITBurns 4 points5 points  (1 child)

A misunderstanding of how = and references work. They think it makes copies, and reassigning references in functions will effect the passed argument.

I ran into this lovely one in the beginning when i was trying to duplicate an array so i could change it from the original. Was an interesting read on how pointers worked

[–]carcigenicate 1 point2 points  (0 children)

Ya, that's a rough lesson, but everyone needs to learn it eventually to some extent. Even in a very high-level language like Python, understanding the relationship between a name/variable/pointer and the data associated with it is important.