Boštjan Mejak <bostjan.me...@gmail.com> added the comment:
{'mon_decimal_point': '', 'int_frac_digits': 127, 'p_sep_by_space': 127,
'frac_digits': 127, 'thousands_sep': '', 'n_sign_posn': 127,
'decimal_point': '.', 'int_curr_symbol': '', 'n_cs_precedes': 127,
'p_sign_posn': 127, 'mon_thousands_sep': '', 'negative_sign': '',
'currency_symbol': '', 'n_sep_by_space': 127, 'mon_grouping': [],
'p_cs_precedes': 127, 'positive_sign': '', 'grouping': []}
'2.760'
And the output of locale.format() in this case should be
'2,760'
On Mon, Oct 18, 2010 at 2:00 PM, Eric Smith <rep...@bugs.python.org> wrote:
>
> Eric Smith <e...@trueblade.com> added the comment:
>
> Oops, I meant "locale.format('%.3f', 2.76)", although of course the number
> shouldn't matter.
>
> ----------
>
> _______________________________________
> Python tracker <rep...@bugs.python.org>
> <http://bugs.python.org/issue10135>
> _______________________________________
>
----------
Added file: http://bugs.python.org/file19265/unnamed
_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10135>
_______________________________________
<div>>>> import locale<br>>>> locale.localeconv()</div>
<div><div>{'mon_decimal_point': '', 'int_frac_digits':
127, 'p_sep_by_space': 127, 'frac_digits': 127,
'thousands_sep': '', 'n_sign_posn': 127,
'decimal_point': '.', 'int_curr_symbol': '',
'n_cs_precedes': 127, 'p_sign_posn': 127,
'mon_thousands_sep': '', 'negative_sign': '',
'currency_symbol': '', 'n_sep_by_space': 127,
'mon_grouping': [], 'p_cs_precedes': 127,
'positive_sign': '', 'grouping': []}</div>
</div>
<div>Â </div>
<div>It prints this:</div>
<div>>>> import locale<br>>>> locale.format('%.3f',
2.76)<br>'2.760'</div>
<div>Â </div>
<div>And the output of locale.format() in this case should be</div>
<div>'2,760'<br><br></div>
<div class="gmail_quote">On Mon, Oct 18, 2010 at 2:00 PM, Eric Smith <span
dir="ltr"><<a href="mailto:rep...@bugs.python.org"
target="_blank">rep...@bugs.python.org</a>></span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px
0.8ex;padding-left:1ex" class="gmail_quote">
<div><br>Eric Smith <<a href="mailto:e...@trueblade.com"
target="_blank">e...@trueblade.com</a>> added the
comment:<br><br></div>Oops, I meant "locale.format('%.3f',
2.76)", although of course the number shouldn't matter.<br>
<br>----------<br>
<div>
<div></div>
<div><br>_______________________________________<br>Python tracker <<a
href="mailto:rep...@bugs.python.org"
target="_blank">rep...@bugs.python.org</a>><br><<a
href="http://bugs.python.org/issue10135"
target="_blank">http://bugs.python.org/issue10135</a>><br>
_______________________________________<br></div></div></blockquote></div><br>
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com