Guido van Rossum wrote: > > > Tests still failing under Irix: > > > > python Lib/test/test_locale.py > > '%f' % 1024 =? '1,024.000000' ... > > Traceback (most recent call last): > > File "Lib/test/test_locale.py", line 29, in ? > > testformat("%f", 1024, grouping=1, output='1,024.000000') > > File "Lib/test/test_locale.py", line 18, in testformat > > result = locale.format(formatstr, value, grouping = grouping) > > File "/var/tmp/mark/src/Lib/locale.py", line 137, in format > > fields[0],seps=_group(fields[0]) > > ValueError: unpack sequence of wrong size > > Can you find out what at this point the value of > localeconv()['grouping'] is? The only way this can happen, I think, > is for that to be a false value -- then _group() returns a single > string value instead of a tuple. This seems to be a bug in _group() > -- the only place that uses it (format()) always assumes it returns a > tuple of two elements. localeconv()['grouping'] is "[]" at this point... -- Mark Favas - m.favas@per.dem.csiro.au CSIRO, Private Bag No 5, Wembley, Western Australia 6913, AUSTRALIA
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4