[Tutor] Python and memory allocation

Joel Goldstick joel.goldstick at gmail.com
Thu Oct 24 18:49:41 CEST 2013


On Thu, Oct 24, 2013 at 12:38 PM, #PATHANGI JANARDHANAN JATINSHRAVAN#
<JATINSHR001 at e.ntu.edu.sg> wrote:
> Hello All,
>
>     Before starting to learn python, I first learnt C and C++ for a couple
> of years. In C/C++, the choice to assign memory during compile time or
> during execution time, i.e. assigning memory from the stack or the heap lay
> with the programmer right? But in Python, I have only seen examples of using
> heap memory in programs. Like list.append(x) and so on. So, is there a
> concept of heap and stack in python or is it abstracted? And does python
> being an interpreted language have to do anything with this?
>

Python takes care of memory allocation, so you generally don't need to
worry about it.  It does its own garbage collection.

Also, please use text messages when you post here.  HTML style mess up
a lot of people experience, so you will get fewer people to help you
>
>
> Thanks and sorry for the newbie doubt :)
>
>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>



-- 
Joel Goldstick
http://joelgoldstick.com


More information about the Tutor mailing list