Package pyarabic :: Module stack :: Class Stack
[hide private]
[frames] | no frames]

Class Stack

source code

Stack class

Instance Methods [hide private]
 
__init__(self, text='')
create a stack
source code
None
push(self, item)
puch an item into the stack
source code
mixed
pop(self)
pop an item from the stack
source code
boolean
is_empty(self)
test if the stack is empty
source code
Method Details [hide private]

push(self, item)

source code 

puch an item into the stack

Parameters:
  • item (mixed @return : None) - pushed item
Returns: None

pop(self)

source code 

pop an item from the stack

Returns: mixed
poped item

is_empty(self)

source code 

test if the stack is empty

Returns: boolean
True or False