verdict.py
def split_by_key_slice( self, sl, str_to_match=None ):
        '''Break the smart dictionary into smaller smart dictionaries according
        to a subset of the key.

        Args:
            sl (slice) :
                Part of the key to use to make subsets.

            str_to_match (str) :
                If True, split into broad categories that match this string
                in the given slice or don't.
        '''

        results = {}

        if str_to_match is not None:
            results[True] = Dict( {} )
            results[False] = Dict( {} )

        for key, item in self.items():

            key_slice = key[sl]

            if str_to_match is not None:
                str_matches = key_slice == str_to_match
                results[str_matches][key] = item

            else:
                try:
                    results[key_slice][key] = item
                except KeyError:
                    results[key_slice] = Dict( {} )
                    results[key_slice][key] = item

        return results
Break the smart dictionary into smaller smart dictionaries according
        to a subset of the key.

        Args:
            sl (slice) :
                Part of the key to use to make subsets.

            str_to_match (str) :
                If True, split into broad categories that match this string
                in the given slice or don't.
        
Break the smart dictionary into smaller smart dictionaries according
to a subset of the key.
Break the smart dictionary into smaller smart dictionaries according to a subset of the key .
def split_by_key_slice( self, sl, str_to_match=None ):
        results = {}
        if str_to_match is not None:
            results[True] = Dict( {} )
            results[False] = Dict( {} )
        for key, item in self.items():
            key_slice = key[sl]
            if str_to_match is not None:
                str_matches = key_slice == str_to_match
                results[str_matches][key] = item
            else:
                try:
                    results[key_slice][key] = item
                except KeyError:
                    results[key_slice] = Dict( {} )
                    results[key_slice][key] = item
        return results
def split_by_key_slice ( self , sl , str_to_match = None ) : results = { } if str_to_match is not None : results [ True ] = Dict ( { } ) results [ False ] = Dict ( { } ) for key , item in self . items ( ) : key_slice = key [ sl ] if str_to_match is not None : str_matches = key_slice == str_to_match results [ str_matches ] [ key ] = item else : try : results [ key_slice ] [ key ] = item except KeyError : results [ key_slice ] = Dict ( { } ) results [ key_slice ] [ key ] = item return results
Break the smart dictionary into smaller smart dictionaries according
to a subset of the key.
Break the smart dictionary into smaller smart dictionaries according to a subset of the key .
'''Break the smart dictionary into smaller smart dictionaries according
        to a subset of the key.

        Args:
            sl (slice) :
                Part of the key to use to make subsets.

            str_to_match (str) :
                If True, split into broad categories that match this string
                in the given slice or don't.
        '''
self
sl
Part of the key to use to make subsets.
Part of the key to use to make subsets .
str_to_match
If True, split into broad categories that match this string
in the given slice or don't.
If True split into broad categories that match this string in the given slice or don ' t .