On 6/23/2010 1:39 AM, Dennis Lee Bieber wrote:
On Tue, 22 Jun 2010 15:55:51 -0700, Stephen Hansen
<me+list/pyt...@ixokai.io> declaimed the following in
gmane.comp.python.general:
I second Forth. Learning and using that was -- slightly painful, but
Just pick up any advanced HP programmable calculator... RPL is a
close substitute<G>
Or study the current CPython rpn stack machine.
>>> from dis import dis
>>> def f(a,b,c): return (a+b)*c
>>> dis(f)
1 0 LOAD_FAST 0 (a)
3 LOAD_FAST 1 (b)
6 BINARY_ADD
7 LOAD_FAST 2 (c)
10 BINARY_MULTIPLY
11 RETURN_VALUE
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list