Antoine Pitrou added the comment:

Here is a patch. It is fairly big and I'm sorry about it, here is why:
1. it reworks the test suite using unittest, and makes it more comprehensive
2. it adds a feature in locale.py which allows overriding the localeconv
dictionary (this is necessary for proper testing)
3. it fixes the present bug, and also fixes integer formatting with
grouping and padding (which was broken, as well as untested)

Point 2 above may be controversial, it is just a dictionary (by default
empty) named _override_localeconv, if you prefer we can make it a real
API, e.g. _set_localeconv().

Added file: http://bugs.python.org/file9341/1222.patch

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1222>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to