Patches item #1710352, was opened at 2007-05-01 01:04
Message generated for change (Comment added) made by gbrandl
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: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Humberto Diogenes (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. :)


----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2007-05-01 06:08

Message:
Logged In: YES 
user_id=849994
Originator: NO

Thanks for the patch, fixed in rev. 55038, 55039 (2.5).

----------------------------------------------------------------------

Comment By: Humberto Diogenes (virtualspirit)
Date: 2007-05-01 01:04

Message:
Logged In: YES 
user_id=736405
Originator: YES

File Added: locale-2.5-currency-format_string.patch

----------------------------------------------------------------------

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

Reply via email to