Module xalt_stack :: Class Stack
[hide private]
[frames] | no frames]

Class Stack

source code

object --+
         |
        Stack

Basic stack class

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
push(self, item)
method for pushing an item on a stack
source code
 
pop(self)
method for popping an item from a stack
source code
 
isEmpty(self)
method to check whether the stack is empty or not
source code
 
contents(self)
return the contents of the stack as a single text block.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)