General question about Python design goals
Aahz
aahz at pythoncraft.com
Fri Dec 2 20:37:06 EST 2005
In article <861x0vouap.fsf at bhuda.mired.org>, Mike Meyer <mwm at mired.org> wrote:
>Donn Cave <donn at u.washington.edu> writes:
>>
>> For me, conceptually, if an object can't be accessed
>> sequentially, then it can't be mapped to a sequence.
>
>So you're saying that for should implicitly invoke list (or maybe
>iter) on any object that it's passed that's not a list or iterator?
for does in fact implicitly invoke iter() on its loop expression.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"Don't listen to schmucks on USENET when making legal decisions. Hire
yourself a competent schmuck." --USENET schmuck (aka Robert Kern)
More information about the Python-list
mailing list