parameters: (self, instance)
docstring: Move all tokens to a specific instance.
docstring_summary: Move all tokens to a specific instance.
docstring_tokens: Move all tokens to a specific instance .
function: def change_instance(self, instance):
          """Move all tokens to a specific instance."""
          self._instance = instance
          new_events = {}
          for event_name, event in self._new_events.items():
              name = Name.from_event_token_name(event_name)
              name.instance = instance
              new_events[name.get_event_token_name()] = event
          self._new_events = new_events
function_tokens: def change_instance ( self , instance ) : self . _instance = instance new_events = { } for event_name , event in self . _new_events . items ( ) : name = Name . from_event_token_name ( event_name ) name . instance = instance new_events [ name . get_event_token_name ( ) ] = event self . _new_events = new_events