Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How is memory managed in python?

Answers were Sorted based on User's Feedback



How is memory managed in python?..

Answer / chaitanya

Memory management in Python involves a private heap containing all Python objects and data structures. Interpreter takes care of Python heap and that the programmer has no access to it.

The allocation of heap space for Python objects is done by Python memory manager. The core API of Python provides some tools for the programmer to code reliable and more robust program.

Python also has a build-in garbage collector which recycles all the unused memory. When an object is no longer referenced by the program, the heap space it occupies can be freed. The garbage collector determines objects which are no longer referenced by the sprogram frees the occupied memory and make it available to the heap space.

The gc module defines functions to enable /disable garbage collector:

gc.enable() -Enables automatic garbage collection.

gc.disable() - Disables automatic garbage collection.

Is This Answer Correct ?    0 Yes 0 No

How is memory managed in python?..

Answer / nashiinformaticssolutions

All of the objects in Python are stored in a private heap region. This heap's sharing, caching, segmentation, and allocation are all controlled by the Python memory manager. Only the Python interpreter has access to the heap; the user does not.

Is This Answer Correct ?    0 Yes 0 No

How is memory managed in python?..

Answer / nashiinformaticssolutions

Python memory management consists of a private heap that holds all data structures and objects. The interpreter controls the heap, and the programmer has no access to it. All memory allocation is handled by the Python memory management. Additionally, a built-in trash collector recycles and frees up heap space memory.

Is This Answer Correct ?    0 Yes 0 No

How is memory managed in python?..

Answer / glibwaresoftsolutions

All of the objects in Python are stored in a private heap region. This heap's sharing, caching, segmentation, and allocation are all controlled by the Python memory manager. Only the Python interpreter has access to the heap; the user does not.

Is This Answer Correct ?    0 Yes 0 No

How is memory managed in python?..

Answer / glibwaresoftsolutions

Python memory management consists of a private heap that holds all data structures and objects. The interpreter controls the heap, and the programmer has no access to it. All memory allocation is handled by the Python memory management. Additionally, a built-in trash collector recycles and frees up heap space memory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is a 4 tuple?

0 Answers  


What is Flask and explain its benefits?

2 Answers  


What are functions in python?

0 Answers  


Do you know what is the key difference between a list and the tuple?

0 Answers  


Tell me is there a switch or case statement in python?

0 Answers  


What is memory management in python?

0 Answers  


Explain how can you access a module written in python from c?

0 Answers  


Do you need classes in python?

0 Answers  


which statement is used to take a decision based on the comparison?

0 Answers  


How memory is managed in python?

0 Answers  


What is raw string in python?

0 Answers  


You are having multiple memcache servers running python, in which one of the memcacher server fails, and it has your data, will it ever try to get key data from that one failed server?

0 Answers  


Categories