Package dlinklist :: Module linklist :: Class SrchDir
[hide private]
[frames] | no frames]

Class SrchDir

source code


Provides an enumeration of the search direction values.

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
(str or int, str)
getMessage(self, num)
Return a tuple consisting of the text name of the search direction value and the description of the status.
source code
Class Variables [hide private]
  DIRECTION_DEFAULT = 0
  DOWN = 1
  UP = 2
  __MESSAGES = {0: 'Use current direction setting', 1: 'Set dire...
  _DIRS = {0: 'DIRECTION_DEFAULT', 1: 'DOWN', 2: 'UP', <classmet...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getMessage(self, num)
Class Method

source code 

Return a tuple consisting of the text name of the search direction value and the description of the status. If the search direction value is invalid the number of the value is returned and the phrase 'Unknown error'.

Parameters:
  • num (int) - The numeric value from the SrchDir class.
Returns: (str or int, str)
A tuple consisting of the text SrchDir value and the description.

Class Variable Details [hide private]

__MESSAGES

Value:
{0: 'Use current direction setting',
 1: 'Set direction to down',
 2: 'Set direction to up'}

_DIRS

Value:
{0: 'DIRECTION_DEFAULT',
 1: 'DOWN',
 2: 'UP',
 <classmethod object at 0x8cb48b4>: 'getMessage'}