Lines Matching full:grouping
6224 grouping: grouping for thousands separators, in format
6271 # determine thousands separator, grouping, and decimal separator, and
6282 format_dict['grouping'] = _localeconv['grouping']
6287 format_dict['grouping'] = [3, 0]
6319 def _group_lengths(grouping):
6320 """Convert a localeconv-style grouping into a (possibly infinite)
6324 # The result from localeconv()['grouping'], and the input to this
6333 if not grouping:
6335 elif grouping[-1] == 0 and len(grouping) >= 2:
6336 return chain(grouping[:-1], repeat(grouping[-2]))
6337 elif grouping[-1] == _locale.CHAR_MAX:
6338 return grouping[:-1]
6340 raise ValueError('unrecognised format for grouping')
6346 'grouping'; typically it's the result of parsing the format
6360 grouping = spec['grouping']
6363 for l in _group_lengths(grouping):