Thank you all, babel works just fine. I also tried ccy, which isn't bad
either - except that it returns non-unicode currency letters for countries
in the Eurozone.
On Mon, May 5, 2014 at 10:10 AM, Peter Otten <__pete...@web.de> wrote:
> Sithembewena Lloyd Dube wrote:
>
> > Thanks, i was actually
Sithembewena Lloyd Dube wrote:
> Thanks, i was actually getting the error information to update the post.
> Apoligies to waste your time posting here - I could not find an
> appropriate PyCountry discussion list and my next best bet seemed to be a
> Python users' list.
>
> For those who care to l
On 04/05/14 21:25, Sithembewena Lloyd Dube wrote:
currency = pycountry.currencies.get(numeric=country.numeric)
Have you tried using locales?
import locale as loc
loc.setlocale(loc.LC_ALL,'') # selects default - do this at start
...
print(loc.currency(myNum_here))
I don't know the module yo
Thanks for this response, this is exactly what I needed to know.
On Mon, May 5, 2014 at 6:26 AM, Marc Tompkins wrote:
> On Sun, May 4, 2014 at 1:55 PM, Sithembewena Lloyd Dube > wrote:
>
>> Thanks, i was actually getting the error information to update the post.
>> Apoligies to waste your time
On Sun, May 4, 2014 at 1:55 PM, Sithembewena Lloyd Dube
wrote:
> Thanks, i was actually getting the error information to update the post.
> Apoligies to waste your time posting here - I could not find an appropriate
> PyCountry discussion list and my next best bet seemed to be a Python users'
> li
Thanks, i was actually getting the error information to update the post.
Apoligies to waste your time posting here - I could not find an appropriate
PyCountry discussion list and my next best bet seemed to be a Python users'
list.
For those who care to look, the error is as follows (a concise exam
On 04/05/2014 21:25, Sithembewena Lloyd Dube wrote:
Hi everyone,
I have a function which accepts an alpha2 country code and a price
string, where the aim is to get the country's currency and use the
currency.letter property of that currency to format the supplied price
string.
The above works f
Hi everyone,
I have a function which accepts an alpha2 country code and a price string,
where the aim is to get the country's currency and use the currency.letter
property of that currency to format the supplied price string.
The above works fine so far - yet it falls over when called with German