(self, value=None)
Get or set process niceness (priority).
Get or set process niceness (priority).
Get or set process niceness ( priority ) .
def nice(self, value=None):
        """Get or set process niceness (priority)."""
        if value is None:
            return self._proc.nice_get()
        else:
            if not self.is_running():
                raise NoSuchProcess(self.pid, self._name)
            self._proc.nice_set(value)
def nice ( self , value = None ) : if value is None : return self . _proc . nice_get ( ) else : if not self . is_running ( ) : raise NoSuchProcess ( self . pid , self . _name ) self . _proc . nice_set ( value )