[Tutor] Re: A simple RPN calculator

Prahlad Vaidyanathan slime@vsnl.net
Sun, 1 Sep 2002 15:20:19 +0530


Hi,

On Wed, 28 Aug 2002 Scot W. Stevenson spewed into the ether:
> Hello there, 
> 
> I had started a thread about Reverse Polish Notation calculators a while 
> ago, and Gregor actually wrote one, and I did that smart-ass thing of 
> coming back and saying, hey, really neat, Gregor, but how about the 
> following functions...So I guess I owe him some code =8). 

    Well, I just thought I'd implement one myself, using a couple
of stacks, so here it is :

    http://www.symonds.net/~prahladv/files/rpn_calc.py

This also requires this module :

    http://www.symonds.net/~prahladv/files/stack.py

    HTH,
    
pv.
-- 
Prahlad Vaidyanathan  <http://www.symonds.net/~prahladv/>

Ducks?  What ducks??