[ python-Bugs-1180002 ] locale.format question

SourceForge.net noreply at sourceforge.net
Sun Apr 10 03:28:43 CEST 2005


Bugs item #1180002, was opened at 2005-04-10 01:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1180002&group_id=5470

Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Ma (andrewma)
Assigned to: Nobody/Anonymous (nobody)
Summary: locale.format question

Initial Comment:
locale.format is returning send("234,5") rather than send
("2,345") as I was expecting.  Is this a bug?
The example is modified from the Tutorial 11.1 Output 
Formatting 

--------------------------------------------------------------------------
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 
32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more 
information.
>>> import locale
>>> locale.setlocale(locale.LC_ALL, 'English_United 
States.1252')
'English_United States.1252'
>>> data=2345
>>> locale.format('send("%d")', data, grouping = True)
'send("234,5")'
>>> locale.format('%d', data, grouping = True)
'2,345'
>>>



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1180002&group_id=5470


More information about the Python-bugs-list mailing list