cross platform use of set locale

Facundo Batista facundobatista at gmail.com
Thu Mar 24 17:45:52 EST 2005


On Wed, 23 Mar 2005 20:52:06 +1000, Timothy Smith
<timothy at open-networks.net> wrote:

> Serge Orlov wrote:
> 
> >Are you trying to format money? Then you need a special class so that
> >you can say:
>
> thats exactly what i'm trying to do, only having to do that for all my

If you're dealing with money, two things:

a) Use Decimal
b) Format it with Raymond's recipe at
http://docs.python.org/lib/decimal-recipes.html


.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://pyar.decode.com.ar/



More information about the Python-list mailing list