Python Forum
quick question about deleting an object from memory
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
quick question about deleting an object from memory
#1
Hi. So when you create an instance(I may be spelling this wrong) of a class you can add it to a list. You can also remove it from the list if you need to ,but my question is. When you do 
list.remove(object)
does that also delete the instance from the memory or is the instance of the class still callable? If so How can you delete the instance from the memory if you no longer need it? For example: you create a game, enter level 1, the level gets created and enemies spawn in, you finish the level so now you no longer need any of the objects that were created for level 1.
Reply


Messages In This Thread
quick question about deleting an object from memory - by LavaCreeperKing - Nov-10-2016, 09:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Quick question/help regarding my variable Extra 5 1,576 May-06-2022, 12:01 AM
Last Post: Extra
  Quick Question about Dictionaries Extra 6 1,859 Apr-29-2022, 08:34 PM
Last Post: Extra
  Memory Location, Object Attributes and how to use them Meld51 1 1,666 Aug-22-2021, 01:22 PM
Last Post: Yoriz
  finding and deleting json object GrahamL 1 4,866 Dec-10-2020, 04:11 PM
Last Post: bowlofred
  quick question/excel+python zarize 1 2,281 Dec-06-2019, 05:38 PM
Last Post: Larz60+
  opencv memory question djf123 1 4,659 May-26-2019, 11:03 AM
Last Post: heiner55
  A quick question teczone 4 3,104 Sep-06-2018, 03:44 PM
Last Post: snippsat
  Completely new to coding - quick question Oster22 1 2,717 Jun-19-2018, 08:42 PM
Last Post: Larz60+
  Quick help! Ellisrb 2 2,780 May-02-2018, 11:21 AM
Last Post: ThiefOfTime
  groups attribute of a groupby object question smw10c 2 4,334 Apr-27-2017, 03:18 PM
Last Post: smw10c

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020