Home | History | Annotate | Download | only in Lib

Lines Matching full:grouping

5988       grouping: grouping for thousands separators, in format
6036 # determine thousands separator, grouping, and decimal separator, and
6047 format_dict['grouping'] = _localeconv['grouping']
6052 format_dict['grouping'] = [3, 0]
6096 def _group_lengths(grouping):
6097 """Convert a localeconv-style grouping into a (possibly infinite)
6101 # The result from localeconv()['grouping'], and the input to this
6110 if not grouping:
6112 elif grouping[-1] == 0 and len(grouping) >= 2:
6113 return chain(grouping[:-1], repeat(grouping[-2]))
6114 elif grouping[-1] == _locale.CHAR_MAX:
6115 return grouping[:-1]
6117 raise ValueError('unrecognised format for grouping')
6123 'grouping'; typically it's the result of parsing the format
6137 grouping = spec['grouping']
6140 for l in _group_lengths(grouping):