Standard Forth versus Python: a case study

Terry Reedy tjreedy at
Thu Oct 12 05:20:04 CEST 2006

<idknow at> wrote in message 
news:1160619958.438049.53390 at
> bearophileHUGS at wrote:
> no sort() is needed to calculate the median of a list.
> you just need one temp var.

Of course.  But for a short enough list, the builtin sort() method may be 
faster than an O(n) algorithm coded in Python.  And .sort() is already 


More information about the Python-list mailing list