Changing the name of an object in realtime

Ok , to make it clear. An instance of the object can be recorded in a global variable (or a dictionnary when many instance ) and not in a new game object.

So , for each instance, create a global variable “my_variable” in a “whatever_name.py” file , give him any value, and import it in the python controller by writing “import whatever_name” after “import bge”

   whatever_name.my_variable = scene.addObject(   **3 parameters**  )

whatever_name.my_variable can receive proprieties too

whatever_name.my_variable[‘name’] = “John”
whatever_name.my_variable[‘age’] = 102