[Patches] [ python-Patches-1180296 ] great improvement for
locale.py formatting functions
SourceForge.net
noreply at sourceforge.net
Sun Apr 10 20:00:04 CEST 2005
Patches item #1180296, was opened at 2005-04-10 18:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1180296&group_id=5470
Category: Library (Lib)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Georg Brandl (gbrandl)
Assigned to: Nobody/Anonymous (nobody)
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1180296&group_id=5470
More information about the Patches
mailing list