Skip to content

Commit 3bba42a

Browse files
committed
-
1 parent 58652f1 commit 3bba42a

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

source_py3/python_toolbox/combi/perming/_fixed_map_managing_mixin.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@
99

1010

1111
class _FixedMapManagingMixin:
12+
'''
13+
Mixin for `PermSpace` to manage the `fixed_map`. (For fixed perm spaces.)
14+
'''
1215

1316
@caching.CachedProperty
1417
def fixed_indices(self):
15-
'''The indices of any fixed items in this `PermSpace`.'''
18+
'''
19+
The indices of any fixed items in this `PermSpace`.
20+
21+
This'll be different from `self.fixed_map.keys()` for dapplied perm
22+
spaces.
23+
'''
1624
if not self.fixed_map:
1725
return ()
1826
return tuple(map(self.domain.index, self.fixed_map))

source_py3/python_toolbox/combi/perming/variations.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ class Variation(nifty_collections.CuteEnum):
3232

3333

3434
class UnallowedVariationSelectionException(exceptions.CuteException):
35-
'''An unallowed selection of variations was attempted.'''
35+
'''
36+
An unallowed selection of variations was attempted.
37+
38+
For example, you can't make dapplied combination spaces, and if you'll try,
39+
you'll get an earful of this here exception.
40+
'''
3641
def __init__(self, variation_clash):
3742
self.variation_clash = variation_clash
3843
assert variation_clash in variation_clashes

0 commit comments

Comments
 (0)