Module Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpPow Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad Call NameLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Raise NameLoad If CompareLtELtE UnaryOpUSub AttributeLoad NameLoad attr NameLoad Num body AugAssignAdd NameStore AttributeLoad NameLoad attr If UnaryOpNot CompareLtELt Num NameLoad AttributeLoad NameLoad attr body Raise NameLoad Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr Return Call NameLoad GeneratorExp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad Lambda arguments args NameParam defaults TupleLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults Call NameLoad AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults Call NameLoad AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam NameParam defaults BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise NameLoad Assign NameStore Call NameLoad NameLoad If UnaryOpNot CompareLtE NameLoad AttributeLoad NameLoad attr body Raise NameLoad Return Call NameLoad GeneratorExp BinOpPow Num NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr CompareIn NameLoad NameLoad decorator_list decorator_list
N/A N/A collections combi._python_toolbox sequence_tools SelectionSpace N/A N/A sequence_tools CuteSequenceMixin N/A collections Sequence N/A N/A 
    Space of possible selections of any number of items from `sequence`.
    
    For example:
    
        >>> tuple(SelectionSpace(range(2)))
        (set(), {1}, {0}, {0, 1})
        
    The selections (which are sets) can be for any number of items, from zero
    to the length of the sequence.

    Of course, this is a smart object that doesn't really create all these sets
    in advance, but rather on demand. So you can create a `SelectionSpace` like
    this:
    
        >>> selection_space = SelectionSpace(range(10**4))
        
    And take a random selection from it:
    
        >>> selection_space.take_random()
        {0, 3, 4, ..., 9996, 9997}
        
    Even though the length of this space is around 10 ** 3010, which is much
    bigger than the number of particles in the universe.
     __init__ N/A N/A self sequence N/A N/A N/A N/A self sequence N/A N/A sequence_tools ensure_iterable_is_immutable_sequence sequence N/A N/A self sequence_length N/A len N/A self sequence N/A N/A self _sequence_set N/A set N/A self sequence N/A N/A self length N/A 2 N/A self sequence_length N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s: %s> N/A N/A N/A type self __name__ N/A self sequence N/A __getitem__ N/A N/A self i N/A N/A N/A N/A isinstance i slice N/A N/A NotImplementedError N/A N/A N/A N/A self length i -1 N/A N/A i N/A self length N/A N/A N/A 0 i N/A self length N/A N/A IndexError N/A pattern N/A {0:0%sb} N/A self sequence_length N/A binary_i N/A N/A pattern format i N/A N/A N/A len binary_i N/A self sequence_length N/A N/A set N/A item N/A N/A is_included item N/A zip N/A map int binary_i N/A self sequence is_included N/A N/A _reduced N/A property N/A N/A N/A self N/A N/A N/A type self N/A self sequence N/A __hash__ N/A N/A N/A self N/A N/A hash N/A self _reduced N/A __bool__ N/A N/A N/A self N/A N/A bool N/A self length N/A __eq__ N/A N/A N/A self other N/A N/A N/A isinstance other SelectionSpace N/A N/A self _reduced N/A other _reduced index N/A N/A self selection N/A N/A N/A Find the index number of `selection` in this `SelectionSpace`. N/A N/A N/A isinstance selection N/A collections Iterable N/A N/A ValueError N/A selection_set N/A set selection N/A N/A N/A selection_set N/A self _sequence_set N/A N/A ValueError N/A N/A sum N/A N/A 2 i N/A N/A i item N/A enumerate N/A reversed N/A self sequence N/A item selection_set N/A N/A