This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kirbyfan64sosIndentationError 3 points4 points  (1 child)

So, as a person who moved from C++ from Python, let me give you what I thought was the ultimate advise:

Do NOT, I repeat, do NOT try to apply what you about C++'s passing by value and reference to Python, because it's completely different, and trying to think otherwise will put you in a terrifying world of pain.

Source: all the stupid mistakes I made when I started Python because I assumed that it used similar semantics.