Module Assign NameStore Str Assign NameStore Str FunctionDef arguments args defaults vararg body Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Num body Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Break Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad For NameStore NameLoad body If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Return Call NameLoad NameLoad BinOpAdd TupleLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Raise NameLoad decorator_list FunctionDef arguments args defaults vararg body Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Raise NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Break Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Raise NameLoad decorator_list
N/A N/A __revision__ src/engine/SCons/compat/_scons_itertools.py 3897 2009/01/13 06:45:54 scons N/A __doc__ 
Implementations of itertools functions for Python versions that don't
have iterators.

These implement the functions by creating the entire list, not returning
it element-by-element as the real itertools functions do.  This means
that early Python versions won't get the performance benefit of using
the itertools, but we can still use them so the later Python versions
do get the advantages of using iterators.

Because we return the entire list, we intentionally do not implement the
itertools functions that "return" infinitely-long lists: the count(),
cycle() and repeat() functions.  Other functions below have remained
unimplemented simply because they aren't being used (yet) and it wasn't
obvious how to do it.  Or, conversely, we only implemented those functions
that *were* easy to implement (mostly because the Python documentation
contained examples of equivalent code).

Note that these do not have independent unit tests, so it's possible
that there are bugs.
 chain N/A N/A N/A iterables N/A N/A result N/A N/A x iterables N/A N/A N/A N/A result extend N/A list x N/A result N/A count N/A N/A n N/A 0 N/A N/A NotImplementedError N/A cycle N/A N/A iterable N/A N/A N/A NotImplementedError N/A dropwhile N/A N/A predicate iterable N/A N/A N/A result N/A N/A x iterable N/A N/A N/A N/A predicate x N/A N/A N/A N/A result append x N/A N/A N/A N/A result extend iterable N/A result N/A groupby N/A N/A iterable N/A args N/A N/A NotImplementedError N/A ifilter N/A N/A predicate iterable N/A N/A N/A result N/A N/A N/A predicate None N/A N/A predicate bool N/A x iterable N/A N/A N/A predicate x N/A N/A N/A N/A result append x N/A result N/A ifilterfalse N/A N/A predicate iterable N/A N/A N/A result N/A N/A N/A predicate None N/A N/A predicate bool N/A x iterable N/A N/A N/A N/A predicate x N/A N/A N/A N/A result append x N/A result N/A imap N/A N/A function N/A iterables N/A N/A N/A apply map N/A N/A function N/A tuple iterables N/A islice N/A N/A N/A args kw N/A N/A NotImplementedError N/A izip N/A N/A N/A iterables N/A N/A N/A apply zip iterables N/A repeat N/A N/A N/A args kw N/A N/A NotImplementedError N/A starmap N/A N/A N/A args kw N/A N/A NotImplementedError N/A takewhile N/A N/A predicate iterable N/A N/A N/A result N/A N/A x iterable N/A N/A N/A predicate x N/A N/A N/A N/A result append x N/A N/A N/A result N/A tee N/A N/A N/A args kw N/A N/A NotImplementedError N/A