def __init__( self, depths=None, ): if depths is not None: depths = depths or () assert mathtools.all_are_nonnegative_integers(depths), repr(depths) self._depths = depths
def __init__(self, hash_mark_counts=None, pattern=None): if hash_mark_counts is not None: hash_mark_counts = tuple(hash_mark_counts) assert mathtools.all_are_nonnegative_integers(hash_mark_counts) self._hash_mark_counts = hash_mark_counts if pattern is not None: prototype = (patterntools.Pattern, patterntools.CompoundPattern) assert isinstance(pattern, prototype), repr(pattern) self._pattern = pattern
def __init__(self, hash_mark_counts=None): if hash_mark_counts is not None: hash_mark_counts = tuple(hash_mark_counts) assert mathtools.all_are_nonnegative_integers(hash_mark_counts) self._hash_mark_counts = hash_mark_counts