Range Operation pre-PEP

Rainer Deyke root at rainerdeyke.com
Fri May 11 19:47:49 EDT 2001


"Tim Peters" <tim.one at home.com> wrote in message
news:mailman.989607330.30318.python-list at python.org...
> [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)
> 1
> >>>
>
> 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.

I thought we had already agreed that in this context "homogeneous" does not
refer to concrete type but to usage.  These arguments to 'min' are all
homogeneous because they are treated identically; you can even change their
order and still get the same result.


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list