code: def _reset_attributes(self):
          
          # Record-keeping.
          self.channels = {}
          self.users = {}
  
          # Low-level data stuff.
          self._receive_buffer = b''
          self._pending = {}
          self._handler_top_level = False
          self._ping_checker_handle = None
  
          # Misc.
          self.logger = logging.getLogger(__name__)
  
          # Public connection attributes.
          self.nickname = DEFAULT_NICKNAME
          self.network = None
docs: Reset attributes.