Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Str ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Lambda arguments args NameParam defaults BinOpMod Str TupleLoad AttributeLoad Call NameLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If BoolOpAnd CompareEq NameLoad NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If BoolOpAnd Call NameLoad NameLoad NameLoad CompareIsNot NameLoad NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad orelse Return Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore IfExp CompareIs NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assert Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr UnaryOpNot BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Lambda arguments args NameParam defaults TupleLoad Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return BoolOpAnd CompareEq Call NameLoad NameLoad Call NameLoad NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore Lambda arguments args NameParam NameParam defaults UnaryOpNot CompareEq NameLoad NameLoad 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 NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return CompareIn NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad Call NameLoad NameLoad attr IfExp AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Str IfExp AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad Str attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad IfExp CompareEq AttributeLoad NameLoad attr Num Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return IfExp AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str If AttributeLoad NameLoad attr body Return BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore BinOpMult ListLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return Call Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call Call NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assert UnaryOpNot AttributeLoad NameLoad attr Return NameLoad decorator_list AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Raise NameLoad orelse Assign NameStore NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore GeneratorExp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad If CompareIsNot NameLoad NameLoad body If CompareIs NameLoad NameLoad body Return Call AttributeLoad Str attr NameLoad orelse Return Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Return Call Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad Str attr NameLoad orelse Return Call NameLoad NameLoad decorator_list Assign NameStore NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareLtE NameLoad Num body Return BinOpPow AttributeLoad NameLoad attr UnaryOpUSub NameLoad orelse If CompareEq NameLoad Num body Return SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assert CompareGtE NameLoad Num Return Call AttributeLoad NameLoad attr BinOpMult TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return NameLoad orelse Return BinOpSub Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return NameLoad If AttributeLoad NameLoad attr body Return AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Return AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad Assign NameStore Num While NameLoad body Assign NameStore NameStore Call NameLoad Call NameLoad NameLoad While CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad NameLoad body AugAssignAdd NameStore Num Return NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad Num NameLoad body Expr Str ImportFrom alias If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr GeneratorExp Call NameLoad NameLoad comprehension NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad CompareIn Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return NameLoad decorator_list Assign NameStore Lambda arguments args NameParam defaults Call Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad SubscriptLoad Call NameLoad Call NameLoad Call AttributeLoad Call NameLoad NameLoad NameLoad attr Index Num decorator_list Assign NameStore Lambda arguments args NameParam NameParam defaults SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Call NameLoad GeneratorExp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Num NameLoad Expr Str decorator_list ClassDef bases NameLoad NameLoad body Expr Str decorator_list ImportFrom alias ImportFrom alias ImportFrom alias
N/A N/A abc N/A collections N/A numbers python_toolbox.third_party functools python_toolbox misc_tools python_toolbox nifty_collections python_toolbox caching python_toolbox sequence_tools python_toolbox cute_iter_tools N/A misc N/A infinity N/A float inf _BasePermView N/A object N/A N/A 
    Abstract base class for viewers on Perm.
     N/A __metaclass__ N/A abc ABCMeta __init__ N/A N/A self perm N/A N/A N/A N/A self perm perm N/A N/A __repr__ N/A N/A N/A self N/A N/A <%s: %s> N/A N/A N/A type self __name__ N/A self perm __getitem__ N/A N/A self i N/A N/A N/A N/A N/A abc abstractmethod N/A PermItems N/A N/A sequence_tools CuteSequenceMixin _BasePermView N/A collections Sequence N/A N/A 
    A viewer of a perm's items, similar to `dict.items()`.
    
    This is useful for dapplied perms; it lets you view the perm (both index
    access and iteration) as a sequence where each item is a 2-tuple, where the
    first item is from the domain and the second item is its corresponding item
    from the sequence.
     __getitem__ N/A N/A self i N/A N/A N/A N/A N/A N/A N/A self perm domain N/A i N/A N/A self perm N/A N/A N/A N/A self perm domain N/A i N/A N/A PermAsDictoid N/A N/A sequence_tools CuteSequenceMixin _BasePermView N/A collections Mapping N/A N/A A dict-like interface to a `Perm`. __getitem__ N/A N/A self key N/A N/A N/A N/A N/A self perm N/A key N/A __iter__ N/A N/A self N/A N/A N/A N/A iter N/A N/A self perm domain N/A N/A PermType N/A N/A abc ABCMeta N/A N/A 
    Metaclass for `Perm` and `Comb`.
    
    The functionality provided is: If someone tries to create a `Perm` with a
    `CombSpace`, we automatically use `Comb`.
     __call__ N/A N/A cls item perm_space N/A None N/A N/A N/A N/A cls Perm N/A isinstance perm_space CombSpace N/A N/A cls Comb N/A N/A N/A N/A super PermType cls __call__ item perm_space N/A N/A Perm N/A N/A sequence_tools CuteSequenceMixin N/A collections Sequence N/A N/A 
    A permutation of items from a `PermSpace`.
    
    In combinatorics, a permutation is a sequence of items taken from the
    original sequence.
    
    Example:
    
        >>> perm_space = PermSpace('abcd')
        >>> perm = Perm('dcba', perm_space)
        >>> perm
        <Perm: ('d', 'c', 'b', 'a')>
        >>> perm_space.index(perm)
        23
    
     N/A __metaclass__ PermType coerce N/A N/A cls item perm_space N/A None N/A N/A Coerce item into a perm, optionally of a specified `PermSpace`. N/A N/A N/A isinstance item Perm N/A perm_space None N/A N/A item nominal_perm_space N/A perm_space _nominal_perm_space_of_perms N/A N/A item N/A N/A N/A cls item perm_space N/A classmethod __init__ N/A N/A self perm_sequence perm_space N/A None N/A N/A 
        Create the `Perm`.
        
        If `perm_space` is not supplied, we assume that this is a pure
        permutation, i.e. a permutation on `range(len(perm_sequence))`.
         N/A perm_space N/A N/A perm_space None None N/A N/A PermSpace coerce perm_space N/A N/A isinstance perm_sequence N/A collections Iterable N/A perm_sequence N/A N/A sequence_tools ensure_iterable_is_immutable_sequence perm_sequence N/A N/A perm_space None N/A N/A N/A isinstance perm_sequence Perm N/A N/A N/A self nominal_perm_space N/A perm_sequence nominal_perm_space N/A N/A N/A self nominal_perm_space N/A PermSpace N/A len perm_sequence N/A N/A N/A self nominal_perm_space N/A N/A N/A perm_space unsliced undegreed unfixed N/A N/A self is_rapplied N/A N/A self nominal_perm_space is_rapplied N/A N/A self is_recurrent N/A N/A self nominal_perm_space is_recurrent N/A N/A self is_partial N/A N/A self nominal_perm_space is_partial N/A N/A self is_combination N/A N/A self nominal_perm_space is_combination N/A N/A self is_dapplied N/A N/A self nominal_perm_space is_dapplied N/A N/A self is_pure N/A N/A N/A self is_rapplied N/A self is_dapplied N/A self is_partial N/A self is_combination N/A N/A N/A self is_rapplied N/A N/A N/A self unrapplied self N/A N/A N/A self is_dapplied N/A N/A N/A self undapplied self N/A N/A N/A self is_combination N/A N/A N/A self uncombinationed self N/A N/A self _perm_sequence N/A N/A sequence_tools ensure_iterable_is_immutable_sequence perm_sequence N/A N/A N/A self is_combination N/A isinstance self Comb 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 _perm_sequence N/A self nominal_perm_space N/A __iter__ N/A N/A N/A self N/A N/A iter N/A self _perm_sequence __eq__ N/A N/A self other N/A N/A N/A N/A N/A N/A type self N/A type other N/A N/A self nominal_perm_space N/A other nominal_perm_space N/A N/A cute_iter_tools are_equal N/A self _perm_sequence N/A other _perm_sequence N/A N/A __ne__ N/A N/A N/A self other N/A N/A N/A self other 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 _perm_sequence N/A __nonzero__ __bool__ __contains__ N/A N/A self item N/A N/A N/A N/A N/A N/A item N/A self _perm_sequence N/A N/A N/A TypeError N/A N/A False N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s%s: %s(%s%s)> N/A N/A N/A type self __name__ N/A N/A self is_partial N/A , n_elements=%s N/A len self N/A N/A self is_dapplied N/A (%s) =>  N/A N/A ,  join N/A map repr N/A self domain N/A N/A ,  join N/A N/A repr item N/A item self N/A N/A N/A self length 1 , N/A index N/A N/A self member N/A N/A N/A 
        Get the index number of `member` in the permutation.
        
        Example:
        
            >>> perm = PermSpace(5)[10]
            >>> perm
            <Perm: (0, 2, 4, 1, 3)>
            >>> perm.index(3)
            4
        
         N/A numerical_index N/A N/A N/A self _perm_sequence index member N/A N/A N/A self is_dapplied N/A N/A N/A self nominal_perm_space domain N/A numerical_index numerical_index N/A inverse N/A N/A self N/A N/A N/A 
        The inverse of this permutation.
        
        i.e. the permutation that we need to multiply this permutation by to
        get the identity permutation.
        
        This is also accessible as `~perm`.
        
        Example:
        
            >>> perm = PermSpace(5)[10]
            >>> perm
            <Perm: (0, 2, 4, 1, 3)>
            >>> ~perm
            <Perm: (0, 3, 1, 4, 2)>
            >>> perm * ~perm
            <Perm: (0, 1, 2, 3, 4)>
           
         N/A N/A self is_partial N/A N/A N/A TypeError Partial perms don't have an inverse. N/A N/A self is_rapplied N/A N/A N/A TypeError Rapplied perms don't have an inverse. N/A N/A self is_dapplied N/A N/A N/A TypeError Dapplied perms don't have an inverse. N/A N/A self is_rapplied N/A N/A N/A N/A N/A self nominal_perm_space N/A 0 N/A N/A self unrapplied inverse N/A N/A _perm N/A N/A None N/A N/A self nominal_perm_space sequence_length N/A N/A i item N/A enumerate self N/A N/A N/A _perm N/A item i N/A N/A N/A type self _perm N/A self nominal_perm_space N/A N/A caching CachedProperty N/A __invert__ N/A N/A N/A self N/A N/A self inverse N/A domain N/A N/A caching CachedProperty N/A N/A N/A self N/A N/A N/A self nominal_perm_space domain The permutation's domain. unrapplied N/A N/A self N/A N/A N/A An unrapplied version of this permutation. N/A rapplied_sequence N/A list N/A N/A self nominal_perm_space sequence N/A new_perm_sequence N/A N/A i N/A self _perm_sequence N/A N/A i_index N/A N/A rapplied_sequence index i N/A N/A rapplied_sequence N/A i_index N/A misc MISSING_ELEMENT N/A N/A N/A new_perm_sequence append i_index N/A unrapplied N/A N/A type self new_perm_sequence N/A N/A self nominal_perm_space unrapplied N/A N/A N/A unrapplied is_rapplied N/A unrapplied N/A N/A caching CachedProperty N/A undapplied N/A N/A caching CachedProperty N/A N/A N/A self N/A N/A N/A type self N/A self _perm_sequence N/A N/A self nominal_perm_space undapplied An undapplied version of this permutation. N/A uncombinationed N/A N/A caching CachedProperty N/A N/A N/A self N/A N/A Perm N/A self _perm_sequence N/A N/A self nominal_perm_space uncombinationed A non-combination version of this permutation. __getitem__ N/A N/A self i N/A N/A N/A N/A self is_dapplied N/A N/A N/A N/A i_to_use N/A N/A N/A self domain index i N/A N/A N/A TypeError N/A N/A IndexError N/A N/A i_to_use i N/A N/A N/A self _perm_sequence N/A i_to_use N/A N/A length N/A property N/A N/A N/A self N/A N/A N/A self nominal_perm_space n_elements apply N/A N/A self sequence result_type N/A None N/A N/A 
        Apply the perm to a sequence, choosing items from it.
        
        This can also be used as `sequence * perm`. Example:
        
        >>> perm = PermSpace(5)[10]
        >>> perm
        <Perm: (0, 2, 4, 1, 3)>
        >>> perm.apply('growl')
        'golrw'
        >>> 'growl' * perm
        'golrw'
        
        Specify `result_type` to determine the type of the result returned. If
        `result_type=None`, will use `tuple`, except when `other` is a `str` or
        `Perm`, in which case that same type would be used.
         N/A sequence N/A N/A sequence_tools ensure_iterable_is_immutable_sequence sequence N/A N/A N/A N/A sequence_tools get_length sequence N/A N/A sequence_tools get_length self N/A N/A N/A Exception Can't apply permutation on sequence of shorter length. N/A permed_generator N/A N/A sequence N/A i N/A i self N/A N/A result_type None N/A N/A N/A result_type str N/A N/A N/A N/A join permed_generator N/A N/A N/A result_type permed_generator N/A N/A N/A isinstance sequence Perm N/A N/A N/A N/A type self permed_generator N/A sequence nominal_perm_space N/A N/A N/A isinstance sequence str N/A N/A N/A N/A join permed_generator N/A N/A N/A tuple permed_generator N/A N/A __rmul__ apply N/A __mul__ N/A N/A N/A self other N/A N/A N/A other __rmul__ self __pow__ N/A N/A self exponent N/A N/A N/A Raise the perm by the power of `exponent`. N/A N/A isinstance exponent N/A numbers Integral N/A N/A exponent -1 N/A N/A N/A N/A self inverse N/A exponent N/A N/A N/A exponent 0 N/A N/A N/A N/A self nominal_perm_space N/A 0 N/A N/A N/A exponent 1 N/A N/A N/A misc_tools general_product N/A N/A self exponent N/A degree N/A N/A self N/A N/A N/A 
        The permutation's degree.
        
        You can think of a permutation's degree like this: Imagine that you're
        starting with the identity permutation, and you want to make this
        permutation, by switching two items with each other over and over again
        until you get this permutation. The degree is the number of such
        switches you'll have to make.
         N/A N/A self is_partial N/A N/A NotImplemented N/A N/A N/A N/A len self N/A self n_cycles N/A N/A caching CachedProperty n_cycles N/A N/A self N/A N/A N/A 
        The number of cycles in this permutation.
        
        If item 1 points at item 7, and item 7 points at item 3, and item 3
        points at item 1 again, then that's one cycle. `n_cycles` is the total
        number of cycles in this permutation.
         N/A N/A self is_partial N/A N/A NotImplemented N/A N/A self is_rapplied N/A N/A N/A N/A self unrapplied n_cycles N/A N/A self is_dapplied N/A N/A N/A N/A self undapplied n_cycles N/A unvisited_items N/A set self N/A n_cycles 0 N/A unvisited_items N/A N/A starting_item current_item N/A next N/A iter unvisited_items N/A N/A current_item unvisited_items N/A N/A N/A N/A unvisited_items remove current_item N/A current_item N/A self N/A current_item N/A N/A current_item starting_item N/A N/A n_cycles 1 N/A n_cycles N/A N/A caching CachedProperty get_neighbors N/A N/A self degrees perm_space N/A N/A 1 None N/A N/A 
        Get the neighbor permutations of this permutation.
        
        This means, get the permutations that are close to this permutation. By
        default, this means permutations that are one transformation (switching
        a pair of items) away from this permutation. You can specify a custom
        sequence of integers to the `degrees` argument to get different degrees
        of relation. (e.g. specify `degrees=(1, 2)` to get both the closest
        neighbors and the second-closest neighbors.)
         map_space MapSpace N/A N/A N/A self is_combination N/A self is_recurrent N/A self is_partial N/A N/A NotImplementedError N/A N/A perm_space None N/A N/A perm_space N/A self nominal_perm_space N/A N/A MapSpace N/A perm_space coerce_perm N/A N/A nifty_collections LazyTuple N/A N/A tuple perm N/A perm N/A PermSpace N/A self _perm_sequence degrees degrees N/A N/A tuple perm perm_space N/A N/A N/A misc_tools limit_positional_arguments 1 __lt__ N/A N/A self other N/A N/A N/A N/A N/A isinstance other Perm N/A N/A self nominal_perm_space N/A other nominal_perm_space N/A N/A N/A N/A self _perm_sequence N/A other _perm_sequence N/A N/A NotImplemented N/A N/A __reversed__ N/A N/A N/A self N/A N/A N/A type self N/A reversed N/A self _perm_sequence N/A self nominal_perm_space N/A items N/A N/A caching CachedProperty PermItems N/A as_dictoid N/A N/A caching CachedProperty PermAsDictoid N/A N/A functools total_ordering UnrecurrentedMixin N/A object N/A N/A Mixin for a permutation in a space that's been unrecurrented. __getitem__ N/A N/A self i N/A N/A N/A N/A N/A N/A N/A super UnrecurrentedMixin self __getitem__ i N/A 1 N/A __iter__ N/A N/A self N/A N/A N/A N/A iter N/A N/A tuple N/A zip N/A N/A N/A super UnrecurrentedMixin self __iter__ N/A 1 N/A N/A index N/A N/A N/A self item N/A N/A N/A N/A self nominal_perm_space domain N/A N/A next N/A j N/A N/A j pair N/A enumerate N/A self _perm_sequence N/A N/A pair N/A 1 item N/A Get the index number of `member` in the permutation. N/A UnrecurrentedPerm N/A UnrecurrentedMixin Perm N/A N/A A permutation in a space that's been unrecurrented. N/A perm_space PermSpace comb_space CombSpace comb Comb