Patches item #1180296, was opened at 2005-04-10 18:00 Message generated for change (Comment added) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1180296&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Library (Lib) Group: Python 2.5 >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Georg Brandl (gbrandl) >Assigned to: Georg Brandl (gbrandl) Summary: great improvement for locale.py formatting functions Initial Comment: This is a patch that adds two new functions to the locale module. The first, format_string(), can be used like str % values, but takes the locale into account. format() cannot be used for this since its grouping feature currently does not work for arbitrary format strings. At the same time, this patch enhances format() so that the user is notified by an exception that she should only give one '%char' specification and nothing else. The docs are also corrected. The second function, currency(), formats a number according to current currency locale settings. The patch is complete with doc and test changes. Please, test and comment! Also corrects minor mistakes in doc. ---------------------------------------------------------------------- >Comment By: Georg Brandl (gbrandl) Date: 2006-05-17 15:51 Message: Logged In: YES user_id=849994 Slightly revised version committed as rev. 46030. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1180296&group_id=5470 _______________________________________________ Patches mailing list [email protected] http://mail.python.org/mailman/listinfo/patches
