Range Operation pre-PEP

Tim Peters tim.one at home.com
Fri May 11 14:54:38 EDT 2001

[Rainer Deyke]
> I can't think of a single function in the standard library which
> takes an unbounded number of heterogenous arguments.  I can think
> of several which take an unbounded number of homogeneous arguments.
> 'min' and 'max' for example.


>>> import sys
>>> min(1, 1.0, [1], "one", {1 :1}, sys.stdin)

I suppose those are homogeneous arguments in the sense that they're all
objects, but if that's the degenerate sense we're using then I don't know
what heterogeneous could mean.

More information about the Python-list mailing list