Memory Diagrams with Lists in Python
21:48
Python Function Call Semantics
34:13
3 жыл бұрын
Пікірлер
@matematleta492
@matematleta492 Күн бұрын
Kris gives the clearest explanations of this material anywhere, hands down. Thank you!
@forheuristiclifeksh7836
@forheuristiclifeksh7836 6 күн бұрын
6:00
@matematleta492
@matematleta492 9 күн бұрын
Best explanations of these topics anywhere. Thank you.
@briancleary6751
@briancleary6751 10 күн бұрын
What video precedes this? Is there a playlist on grammar/parsing/compiling?
@kelvinmirhan9866
@kelvinmirhan9866 18 күн бұрын
thank you kris
@wonderfulworld1128
@wonderfulworld1128 25 күн бұрын
Sir please make a video on closures and lexical scoping in python. If like these videos you'll put on your platform with well diagramatic approach that you actually do, this actually makes your content valuable... and makes us visualisation better to excites us to learn more. Lot's of love and hat's off appreciation to your work...
@wonderfulworld1128
@wonderfulworld1128 25 күн бұрын
I'm not understanding why we need to store function definition in heap, when all of work has to be done in stack memory???
@KrisJordan
@KrisJordan 25 күн бұрын
@@wonderfulworld1128 functions can be passed as arguments to other functions and references to their heap definitions are what get passed around (in Python). There's nothing special about the main function in Python, you can write it to return values of you'd like.
@wonderfulworld1128
@wonderfulworld1128 25 күн бұрын
@@KrisJordan sir your mean to say that whenever a function def encounterd in python script python holds the name in global stack frame and it's reference is hold in the heap memory... Whenever a function is called in script a new call stake frame initialzed in stake memory and all its variables and values stores in that particular frame. My question is that when this function returning a value let say 4(immutable type) or any function inside (not been called yet), the value has to be gone to the the caller end.. and reference has been hold by the any variable let say num_result... but the return value where gone in the stack memory or heap memory?? And also the function we'd returned the definition of insided , where it gone?? Because I know whenever return statement encountered call stacks is removed and the reference it hold in heap it's all gonna be removed..sir please give me some examples to understand what's going in memory when all of this kind stuffs happens in code?? As you shared in this video like that, I would be very happy to learn something in detail???
@akhilareddy4098
@akhilareddy4098 27 күн бұрын
Temporary breakpoint 1, main () at debug1.c:6 6 { (gdb) step 8 i=0; (gdb) s 9 h=100; (gdb) s 10 if(max(i,h)!=h) (gdb) s max (a=21845, b=1431654973) at debug1.c:20 20 { (gdb) s 22 uint32_t res=0; (gdb) s why it is getting max (a=21845, b=1431654973) while debugging.plzz rly this query
@gedtoon6451
@gedtoon6451 27 күн бұрын
Strictly speaking the __new__ dunder method is the constructor and __init__ is an initialiser. Most people, including myself tend to gloss over the details and think of __init__ as the constructor.
@CaseySmith-d5v
@CaseySmith-d5v Ай бұрын
What if I want to keep the first column as a string and convert the following columns to floats?
@ashanhimself6350
@ashanhimself6350 2 ай бұрын
thank you for making this video
@avixx
@avixx 2 ай бұрын
You're doin' good job!
@storybozo
@storybozo 2 ай бұрын
This was very helpful
@leksikon
@leksikon 2 ай бұрын
I recently started learning Python - this video was incredibly useful in understanding ranges. Thank you so much for sharing this!
@GCAGATGAGTTAGCAAGA
@GCAGATGAGTTAGCAAGA 2 ай бұрын
Great tutorials! But, I've got really stupid question: 33:00 - if we increment *words pointer it would have the same effect as incrementing **word_ptr, right? It does "switch" to the next address or will it become just garbage?
@manoharsagunthalla9215
@manoharsagunthalla9215 2 ай бұрын
Dear Jordon will you please put a separate video for how to get multiple inputs from user using split () and populate the dictionary. 2. One of the dictionary key is having list suppose I need to update the value in the list how to do that? How to add another key-value list in that dictionary?
@Ggwpleohar
@Ggwpleohar 2 ай бұрын
We need more, or at least I would have needed for the rest of this semester
@EmilyPalm
@EmilyPalm 2 ай бұрын
really well explained !
@johnjoyce
@johnjoyce 3 ай бұрын
Module is the wrong term here and may be confusing.
@martijnb3381
@martijnb3381 5 күн бұрын
It think it is called a "Unit of compilation" the linker will connect all public (non static) symbols.
@landix537
@landix537 3 ай бұрын
What is the font you are using ?
@pattyspanker8955
@pattyspanker8955 3 ай бұрын
"And that would overlap with the pointer where we would store the pointer for two pairs if this were a pair node. _And that's okay_ !" Perfect moment to cue in the "this is fine" meme from one of the earlier lectures. 😆
@cc_snipergirl
@cc_snipergirl 3 ай бұрын
For some reason I thought it would be more complicated than this. Thank you!
@user-bd5mg2wi9p
@user-bd5mg2wi9p 3 ай бұрын
Very clear explanation. Thanks!
@ducksavage
@ducksavage 3 ай бұрын
Underrated, thank you so much
@anasqb607
@anasqb607 3 ай бұрын
thanks for your effort
@robertleechford4250
@robertleechford4250 3 ай бұрын
Thank you
@lattehour
@lattehour 3 ай бұрын
it`s the same as with pointers to arrays you have to use parenthesis around the *name because * has lower precedence than ( ) ... how else would the compiler even know that you ain`t actually declaring a ptr return type , ps when you want to use a function as a parameter in a function implemention you dont even need the pointer just write the function in the declaration and when you call that function it`s generalized by default you can simply call it with any function as the type you used in declaration e.g void euler_method( double generic_F(int, int) , dbl a , dbl b ) you can have as many as you want in the param list thne you simply use your euler_method( sqrt , 5.5, 3.3) the main ideea behind all pointer types is based on 3 reasons 1. type checking, interpretation and arithmetics without encapsulating the type of the object inside the Pointer Metadata this can`t be done as the compiler has absolutely no means of understanding the memory layout to do the arithmetics , it has no way to interpret the bits is it a double or a long int ? and it can`t understand the intent because dividing a char string by 3 has no purpose or meaning it`s absurd
@lattehour
@lattehour 3 ай бұрын
ps in assembly you can only have 6 in the param list dont know in C only ever used 3
@AshraRai
@AshraRai 3 ай бұрын
I found many videos on youtube about capturing group but this one is the best.
@dsvhs93
@dsvhs93 3 ай бұрын
Thank you so much!
@bobsprite6711
@bobsprite6711 4 ай бұрын
Excellent! Very clear and didactic!
@joshuarose3186
@joshuarose3186 3 ай бұрын
how is it didactic
@bigfoot1861
@bigfoot1861 4 ай бұрын
that initialized = { x, y} variable will be gone after the function returns since it's on stack. You definitely need to malloc Point structure on heap
@RussTanner
@RussTanner 4 ай бұрын
This is the best presentation I have found on this subject anywhere. I finally understand how this actually works. Fantastic! Thank you.
@Inte8ranD
@Inte8ranD 4 ай бұрын
Hey Kris, my name is Radai. And I'm learning Python and so far, I've created my very own customer database and a simple calculator as well. My question is this, can you make a video using real life examples? Say for example voters for this coming election, people who believe in climate change, voters who want a new political party or fans that follow their favorite team in football, basketball or baseball. Using While Loop with if, elif, else statements and try and except blocks. So could you make a video on any of these subjects so that i can prepare for a job interview? @Kris Jordan
@gyanarihant7113
@gyanarihant7113 4 ай бұрын
Awesome videos, sorry to see such quality content not get deserved attention! Thank you tho!
@davidoconnor8224
@davidoconnor8224 5 ай бұрын
Excellent explaination, thanks!
@tuckerwebb5336
@tuckerwebb5336 5 ай бұрын
The end of this video is too overcomplicated to explain functions to beginners. Use simpler examples for beginner videos.
@shekharchaurasiya5236
@shekharchaurasiya5236 5 ай бұрын
You explained Shell Expansions very well. Thank you very much Kris! 😀