Message44454
Logged In: YES
user_id=74031
Sorry, but I'm going to throw darts at this. You need to have
glossary entries for both 'iterable' and 'iterator', and you're
current definition of 'iterable' is actually the definition
of 'iterator' not of 'iterable'.
Try something like this:
\index{iterable{
\item[iterable] Any object which supports enumeration of a
set of values by calling its \method{__iter__} which returns
an iterator over those values. Examples include \class{file},
\class{list} and \class{dict} objects. In the case of \class
{dict} objects, iteration is over the keys in the object.
\index{iterator}
\item[iterator] An object which supports enumeration of a
set of values by calling its \method{next} method and which
contains an \method{__iter__} method which returns the
object itself. Examples: \class{file} is a iterable which is its
own iterator. \class{list} and \class{dict} are iterables which
create iterators of types which are not otherwise visible.
|
|
Date |
User |
Action |
Args |
2007-08-23 15:28:41 | admin | link | issue788509 messages |
2007-08-23 15:28:41 | admin | create | |
|