Patches item #1710352, was opened at 2007-04-30 22:04 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=1710352&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: Open Resolution: None Priority: 5 Private: No Submitted By: Humberto Di�genes (virtualspirit) Assigned to: Nobody/Anonymous (nobody) Summary: Update locale.__all__ Initial Comment: 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 "<stdin>", line 1, in <module> 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. :) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1710352&group_id=5470
_______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches