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 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com