Py2.3: Feedback on Sets
Delaney, Timothy C (Timothy)
tdelaney at avaya.com
Wed Aug 13 19:35:24 EDT 2003
> From: Gary Feldman [mailto:gafStopSpamData at ziplink.stopallspam.net]
>
> Also, I'd like to see "iterable must be <some type spec>",
> though this is a general flaw in the Python doc and is perhaps
> biased by my C/C++ background where you'd never dream
> of doing a reference manual without explicitly indicating the
> types of every parameter.
"iterable" *is* <some type spec>. If something is "iterable" it has a well-defined interface - specifically:
iter(iterable)
returns an "iterator", which also has a well-defined interface - specifically that it implements:
next()
__iter__() returning self
Tim Delaney
More information about the Python-list
mailing list