Variables in Python vs C

preview_player
Показать описание
Learn the fundamental differences between variables in C and Python. Technically, Python has names rather than variables, but you can still use the term "variable." That's an important distinction when you're dealing with memory in Python.

Рекомендации по теме
Комментарии
Автор

Legit I was searching this everywhere in the world and only u made video about how memory is dealt with in python, thankyou sir

aneeshsagiraju
Автор

my god, if only this had been explained to me at the beginning of my course, many many hours of anguish have been silenced, thank you

alessandrogiovannone
Автор

I swear when Python was designed, their goal must have been to create a language that's as slow as possible! The simple increment operator creates a brand new object, redirects the pointer, then creates work for the garbage collector. How can anyone defend this as good language design

pharoah
Автор

Thank you for explaining this, I was having trouble understanding the under the hood mechanisms for memory management in Python and this helped me a lot.

alexsal
Автор

Doesn't the Python name include a memory slot containing the address of the PyObject? How are Python names stored and accessed? It's looks a whole lot more complex than C!

fburton
Автор

Thanks for this comparison.

Hopefully, you will make a video about Cython, etc...

SkyFly
Автор

Greate video! Simple and understandable :D Now I know the reason why the concept of "a variable does not have to be declared with a type" works (like lua)
Do you plan to make a video about mutable types too?

SirLasterOfDesaster
Автор

Is this why python is slow?
Cuz it creates a lot of PyObjects?

saminchowdhury
Автор

RK sir Question ku answer parkka vanthavanga like podunga fnds. 😁😁

tvnems
join shbcf.ru