Lines Matching full:grouping
5968 grouping: grouping for thousands separators, in format
6016 # determine thousands separator, grouping, and decimal separator, and
6027 format_dict['grouping'] = _localeconv['grouping']
6032 format_dict['grouping'] = [3, 0]
6073 def _group_lengths(grouping):
6074 """Convert a localeconv-style grouping into a (possibly infinite)
6078 # The result from localeconv()['grouping'], and the input to this
6087 if not grouping:
6089 elif grouping[-1] == 0 and len(grouping) >= 2:
6090 return chain(grouping[:-1], repeat(grouping[-2]))
6091 elif grouping[-1] == _locale.CHAR_MAX:
6092 return grouping[:-1]
6094 raise ValueError('unrecognised format for grouping')
6100 'grouping'; typically it's the result of parsing the format
6114 grouping = spec['grouping']
6117 for l in _group_lengths(grouping):