parameters: (self)
return_statement: return bestCase[1]
docstring: Returns the name of the chosen case.
docstring_summary: Returns the name of the chosen case.
docstring_tokens: Returns the name of the chosen case .
function: def _chooseCase(self):
          """Returns the name of the chosen case."""
          cases = self.parameterNames_()
          bestCase = None
          for case in cases:
              (enabled, priority) = self._caseFunctionDict[case]()
              if enabled and (bestCase is None or bestCase[0] < priority):
                  bestCase = (priority, case)
          if bestCase is None:
              raise RuntimeError("All cases '%s' were disabled" % (str(cases)))
          return bestCase[1]
function_tokens: def _chooseCase ( self ) : cases = self . parameterNames_ ( ) bestCase = None for case in cases : ( enabled , priority ) = self . _caseFunctionDict [ case ] ( ) if enabled and ( bestCase is None or bestCase [ 0 ] < priority ) : bestCase = ( priority , case ) if bestCase is None : raise RuntimeError ( "All cases '%s' were disabled" % ( str ( cases ) ) ) return bestCase [ 1 ]