Skip to content

Commit 1c0d4b0

Browse files
committed
-
1 parent ae47923 commit 1c0d4b0

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Copyright 2009-2015 Ram Rachum.
22
# This program is distributed under the MIT license.
33

4-
import math
5-
from python_toolbox.math_tools import binomial # Making it easy to find
4+
5+
6+
from python_toolbox.math_tools import binomial
67

78
from python_toolbox.nifty_collections import (Bag, OrderedBag, FrozenBag,
89
FrozenOrderedBag)
@@ -12,4 +13,5 @@
1213
from .map_space import MapSpace
1314
from .selection_space import SelectionSpace
1415

15-
from .perming import *
16+
from .perming import (PermSpace, CombSpace, Perm, UnrecurrentedPerm, Comb,
17+
UnrecurrentedComb, UnallowedVariationSelectionException)

source_py3/python_toolbox/combi/selection_space.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class SelectionSpace(sequence_tools.CuteSequenceMixin,
1313
1414
For example:
1515
16-
>>> tuple(combi.SelectionSpace(range(2)))
16+
>>> tuple(SelectionSpace(range(2)))
1717
(set(), {1}, {0}, {0, 1})
1818
1919
The selections (which are sets) can be for any number of items, from zero
@@ -23,7 +23,7 @@ class SelectionSpace(sequence_tools.CuteSequenceMixin,
2323
in advance, but rather on demand. So you can create a `SelectionSpace` like
2424
this:
2525
26-
>>> selection_space = combi.SelectionSpace(range(10**4))
26+
>>> selection_space = SelectionSpace(range(10**4))
2727
2828
And take a random selection from it:
2929

0 commit comments

Comments
 (0)