Memory Diagrams with Lists in Python
21:48
Python Function Call Semantics
34:13
3 жыл бұрын
Пікірлер
@LuciaKatsumbe
@LuciaKatsumbe 48 минут бұрын
Thank you. This is super helpful.
@LoveMurzynski
@LoveMurzynski 3 сағат бұрын
Appreciate the detailed breakdown! 🧐 Just a small off-topic question: 😅 I have a set of words 🤷‍♂️. (behave today finger ski upon boy assault summer exhaust beauty stereo over). What is this? 🤔
@daveyutz3942
@daveyutz3942 2 күн бұрын
Go heels! Literally sitting in Davis right now and came upon this video haha
@fwily2580
@fwily2580 4 күн бұрын
Tecnology for the sake of technology.
@KarinGonzalez-y5h
@KarinGonzalez-y5h 5 күн бұрын
Perez Brian Robinson Christopher Lewis Patricia
@matematleta492
@matematleta492 18 күн бұрын
Best explanations anywhere, hands down. I wish Kris had an advanced Python (or any other language) series on offer.
@binaykumar8292
@binaykumar8292 Ай бұрын
One way to solve recursive problem is "wishful thinking"
@matematleta492
@matematleta492 Ай бұрын
Kris gives the clearest explanations of this material anywhere, hands down. Thank you!
@forheuristiclifeksh7836
@forheuristiclifeksh7836 Ай бұрын
6:00
@matematleta492
@matematleta492 Ай бұрын
Best explanations of these topics anywhere. Thank you.
@briancleary6751
@briancleary6751 Ай бұрын
What video precedes this? Is there a playlist on grammar/parsing/compiling?
@kelvinmirhan9866
@kelvinmirhan9866 2 ай бұрын
thank you kris
@wonderfulworld1128
@wonderfulworld1128 2 ай бұрын
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 2 ай бұрын
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 2 ай бұрын
@@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 2 ай бұрын
@@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 2 ай бұрын
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 2 ай бұрын
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 2 ай бұрын
What if I want to keep the first column as a string and convert the following columns to floats?
@ashanhimself6350
@ashanhimself6350 3 ай бұрын
thank you for making this video
@avixx
@avixx 3 ай бұрын
You're doin' good job!
@storybozo
@storybozo 3 ай бұрын
This was very helpful
@leksikon
@leksikon 4 ай бұрын
I recently started learning Python - this video was incredibly useful in understanding ranges. Thank you so much for sharing this!
@GCAGATGAGTTAGCAAGA
@GCAGATGAGTTAGCAAGA 4 ай бұрын
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 4 ай бұрын
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 4 ай бұрын
We need more, or at least I would have needed for the rest of this semester
@EmilyPalm
@EmilyPalm 4 ай бұрын
really well explained !
@johnjoyce
@johnjoyce 4 ай бұрын
Module is the wrong term here and may be confusing.
@martijnb3381
@martijnb3381 Ай бұрын
It think it is called a "Unit of compilation" the linker will connect all public (non static) symbols.
@landix537
@landix537 4 ай бұрын
What is the font you are using ?
@pattyspanker8955
@pattyspanker8955 4 ай бұрын
"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 4 ай бұрын
For some reason I thought it would be more complicated than this. Thank you!
@ValErie-m3n
@ValErie-m3n 4 ай бұрын
Very clear explanation. Thanks!
@ducksavage
@ducksavage 5 ай бұрын
Underrated, thank you so much
@anasqb607
@anasqb607 5 ай бұрын
thanks for your effort
@robertleechford4250
@robertleechford4250 5 ай бұрын
Thank you
@lattehour
@lattehour 5 ай бұрын
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 5 ай бұрын
ps in assembly you can only have 6 in the param list dont know in C only ever used 3
@AshraRai
@AshraRai 5 ай бұрын
I found many videos on youtube about capturing group but this one is the best.
@dsvhs93
@dsvhs93 5 ай бұрын
Thank you so much!
@bobsprite6711
@bobsprite6711 5 ай бұрын
Excellent! Very clear and didactic!
@joshuarose3186
@joshuarose3186 4 ай бұрын
how is it didactic
@bigfoot1861
@bigfoot1861 6 ай бұрын
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