(self)
return self.command("getlasterror")
**DEPRECATED**: Get status information from the last operation.

        This method is obsolete: all MongoDB write operations (insert, update,
        remove, and so on) use the write concern ``w=1`` and report their
        errors by default.

        Returns a SON object with status information.

        .. versionchanged:: 2.8
           Deprecated.
**DEPRECATED**: Get status information from the last operation.
** DEPRECATED ** : Get status information from the last operation .
def last_status(self):
        """**DEPRECATED**: Get status information from the last operation.

        This method is obsolete: all MongoDB write operations (insert, update,
        remove, and so on) use the write concern ``w=1`` and report their
        errors by default.

        Returns a SON object with status information.

        .. versionchanged:: 2.8
           Deprecated.
        """
        warnings.warn("last_status() is deprecated",
                      DeprecationWarning, stacklevel=2)

        return self.command("getlasterror")
def last_status ( self ) : warnings . warn ( "last_status() is deprecated" , DeprecationWarning , stacklevel = 2 ) return self . command ( "getlasterror" )