performance of tuple-less Python?

Greg Ewing greg.ewing at compaq.com
Thu Dec 2 08:12:26 EST 1999


Hans Nowak wrote:
> 
> I haven't seen
> any features from stack-based languages yet, though.

I was thinking about what a Forth/Python hybrid
might look like a while ago. Maybe something like

   def a b c quadroot :
      b dup * 4 a c * * - -> d
      d 0 >= if :
         ( b neg d sqrt + 2 a * /
           b neg d sqrt - 2 a * / )
      else :
         ( )

Yuck, sorry, that looks gross.
Greg




More information about the Python-list mailing list