Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def rpn::STACK::__init__ (   self  ) 

Initialize stack and registers 

Definition at line 20 of file rpn.py.

00020                       :
        ''' Initialize stack and registers '''
        # init stack T, Z, Y, X , top of stack is at the right side
        self._emptyStack = [0.0, 0.0, 0.0, 0.0]
        self._stackData = self._emptyStack
        # new_data_flag is set when the first new character is entered for a value
        self.clr_flag()  
        # create a list for all 10 Storage Registers, initialize to 0
        self._mem = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
        
    def display(self):


Generated by  Doxygen 1.6.0   Back to index