Range Operation pre-PEP
Douglas Alan
nessus at mit.edu
Fri May 11 17:16:13 EDT 2001
"Tim Peters" <tim.one at home.com> writes:
> >>> 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.
"Homogeneous" means that all the elements respond to a common
protocol that you will be using on them. In this case the protocol is
the "min" protocol. The function call
sum(3, 4.5, 8l)
would be homogenious as numbers that can be added together.
|>oug
More information about the Python-list
mailing list