#NEWLINE# def modify( self , fileobj , events , data = None ) : #NEWLINE# #INDENT# 'Change a registered file object monitored events or attached data.\n\n        Parameters:\n        fileobj -- file object or file descriptor\n        events  -- events to monitor (bitwise mask of EVENT_READ|EVENT_WRITE)\n        data    -- attached data\n\n        Returns:\n        SelectorKey instance\n\n        Raises:\n        Anything that unregister() or register() raises\n        ' #NEWLINE# self . unregister ( fileobj ) #NEWLINE# return self . register ( fileobj , self , data )