Python Programming 71 - Passing by Object Reference

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

Thanks for the video. However, with Python 3.8, the logical comparison book == book2 is False instead of True, the same as using function id and keyword is.

GuanglinDu
Автор

Excellent explanation, straight to the point and clear. Thanks.

onetech
Автор

@Caleb Curry
Thanks Caleb.. Just to be sure I got it right; at 4:40 you said "we run the risk that the function changes the data". Did you mean "change the object reference?". Because the data is changing in anyway, isn't it?.
Many thanks! Best teacher :)

alaanasser
Автор

usually when talking about this topic people are concern about how to pass a reference to an object that already created and not making a copy of that object in a function as is in my case..
in c++ you can use a trailing & operator after a class or struct name and then give it a name..how about python

footballCartoon
Автор

This is annoying source of error when I was starting out. Btw, just completed this entire playlist today. And now this video lol. Man, really appreciate your work

josephsebastian
Автор

Where did "Book" with a big "B" come from? This code will not run stand-alone.

angel_machariel
Автор

Hey man where u initilize Book
Also what is Book here, what's it class

abhisheksarkar
Автор

Do we always pass arguments by reference or by value as well?

bartekz