parameters: (self, other)
return_statement: return vercmp
docstring: Compare alpha/beta/rc/final.
docstring_summary: Compare alpha/beta/rc/final.
docstring_tokens: Compare alpha / beta / rc / final .
function: def _compare_pre_release(self, other):
          """Compare alpha/beta/rc/final."""
          if self.pre_release == other.pre_release:
              vercmp = 0
          elif self.pre_release == 'final':
              vercmp = 1
          elif other.pre_release == 'final':
              vercmp = -1
          elif self.pre_release > other.pre_release:
              vercmp = 1
          else:
              vercmp = -1
  
          return vercmp
function_tokens: def _compare_pre_release ( self , other ) : if self . pre_release == other . pre_release : vercmp = 0 elif self . pre_release == 'final' : vercmp = 1 elif other . pre_release == 'final' : vercmp = - 1 elif self . pre_release > other . pre_release : vercmp = 1 else : vercmp = - 1 return vercmp