parameters: (self, other_path)
docstring: Return whether other_path is the same or not as this file
          (as returned by os.path.samefile()).
docstring_summary: Return whether other_path is the same or not as this file
          (as returned by os.path.samefile()).
docstring_tokens: Return whether other_path is the same or not as this file ( as returned by os . path . samefile () ) .
function: def samefile(self, other_path):
          """Return whether other_path is the same or not as this file
          (as returned by os.path.samefile()).
          """
          if hasattr(os.path, "samestat"):
              st = self.stat()
              try:
                  other_st = other_path.stat()
              except AttributeError:
                  other_st = os.stat(other_path)
              return os.path.samestat(st, other_st)
          else:
              filename1 = six.text_type(self)
              filename2 = six.text_type(other_path)
              st1 = _win32_get_unique_path_id(filename1)
              st2 = _win32_get_unique_path_id(filename2)
              return st1 == st2
function_tokens: def samefile ( self , other_path ) : if hasattr ( os . path , "samestat" ) : st = self . stat ( ) try : other_st = other_path . stat ( ) except AttributeError : other_st = os . stat ( other_path ) return os . path . samestat ( st , other_st ) else : filename1 = six . text_type ( self ) filename2 = six . text_type ( other_path ) st1 = _win32_get_unique_path_id ( filename1 ) st2 = _win32_get_unique_path_id ( filename2 ) return st1 == st2