Skip to content

Commit d974942

Browse files
committed
-
1 parent 5cc7c70 commit d974942

File tree

1 file changed

+8
-8
lines changed
  • source_py3/python_toolbox/combi/perming

1 file changed

+8
-8
lines changed

source_py3/python_toolbox/combi/perming/perm.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __call__(cls, item, perm_space=None):
7272
class Perm(sequence_tools.CuteSequenceMixin, collections.Sequence,
7373
metaclass=PermType):
7474
'''
75-
A permutation of items from a `PermSpace`
75+
A permutation of items from a `PermSpace`.
7676
7777
In combinatorics, a permutation is a sequence of items taken from the
7878
original sequence.
@@ -283,13 +283,13 @@ def apply(self, sequence, result_type=None):
283283
284284
This can also be used as `sequence * perm`. Example:
285285
286-
>>> perm = PermSpace(5)[10]
287-
>>> perm
288-
<Perm: (0, 2, 4, 1, 3)>
289-
>>> perm.apply('growl')
290-
'golrw'
291-
>>> 'growl' * perm
292-
'golrw'
286+
>>> perm = PermSpace(5)[10]
287+
>>> perm
288+
<Perm: (0, 2, 4, 1, 3)>
289+
>>> perm.apply('growl')
290+
'golrw'
291+
>>> 'growl' * perm
292+
'golrw'
293293
294294
Specify `result_type` to determine the type of the result returned. If
295295
`result_type=None`, will use `tuple`, except when `other` is a `str` or

0 commit comments

Comments
 (0)