Issue 1710352: Update locale.all - Python tracker (original) (raw)
jager:~ humberto$ python2.5
import locale locale.currency <function currency at 0x80ef0>
Here's the problem
from locale import * currency Traceback (most recent call last): File "", line 1, in NameError: name 'currency' is not defined
I'm sending two similar patches:
- One that adds only the two new functions in Python 2.5 (currency and format_string)
- Other that adds every public function defined inside locale.py (I checked and they're all properly documented):
- currency, format_string, getdefaultlocale, getlocale, getpreferredencoding, normalize and resetlocale.
I did a simple test only to assure all names are right and it worked: for f in locale.all: getattr(locale, f)
Now you choose which patch is better. :)