Return to Coding in Python with artEoz – exercises

Python objects

  1. Make sure you have the grec resourceIf necessary, see the Resources import webpage.
  2. Enter the following python code:
  1. An unreferenced object is a class instance which is no more referenced by a variable or a class attribute. This object becomes unusable.
    Select the Unreferenced objects item with options menu.
    Run step-by-step mod  to display the instantiation and the loss of these objects.
    Add one or more statements in the code to cause the presence of other unreferenced objects.
    Display the new memory diagram and play with the stepping mode.
  2. End enter the following python code: