Formatting a numerical string w/commas

bjorn bjorn at roguewave.com
Mon Feb 21 18:06:49 EST 2000


Hmmm.... this is actually interesting ;-)

_locale seems to be built in on my windows box, but not on my linux or hp boxes...

I'm cc'ing Martin and the list, in case anyone else knows more about this.

-- bjorn

steven moy wrote:

> >import locale
> >locale.setlocale(locale.LC_ALL, 'us')
>
> Hi Bjorn,
>
> Thanks for the reply.  I'm fairly new to Python so I'm still trying to
> get a feel for how things work.  The "import locale" is looking for
> an "_locale" module which doesn't seem to exist on either of the systems
> I'm working on.  Where can I get that or is it something I'm supposed to build
> on my own?
>
> Thanks again for your time,
>
> -$





More information about the Python-list mailing list