Python

Memory Allocation and Management in Python – simplified tutorial for beginners



This video depicts memory allocation, management, Garbage Collector mechanism in Python and compares with other languages like JAVA, C, etc. The beautiful animations will help you visualize the entire process.

Similar Posts

41 thoughts on “Memory Allocation and Management in Python – simplified tutorial for beginners
  1. Thank you for an informative video, but I should point out that making a distinction between mutable and immutable might have given a full picture because

    x = 10
    y=10

    # is true
    id(x)==id(y)

    x = [1,2,3]
    y=[1,2,3]

    # is false
    id(x)==id(y)

  2. Wow I became big fan of you . The way you organised all things in one place is really very mindful . But still having a small doubt…

    In the example we created instance of a function with same parameters
    C1 = car(4)
    C2 = car(4)

    So why in heap there will be two objects . As both the objects are same . Excuse me if this question is silly 😂.

  3. Great video and great explanation, thank you!
    You mentioned the garbage collector with its reference counter and that it can slow down the process.
    Is it possible to tell the computer that a variable is garbage now and can be collected in order to relief the garbage collector?

  4. Loved thr explanation! One question I have is, frames getting deleted as soon as it exits the function holds true for instance methods calling other instance methods also?

  5. If object already exists with the same value so another variable is given the reference to that object
    Like x= 10
    y = 10
    So x and y point to same object
    So c1 refers to car(4)
    and c2 refers to car(4)
    But they are different object and both these variables point to different object. Why?

Leave a Reply

Your email address will not be published. Required fields are marked *