----- Original Message -----
> From: Danny Yoo <[email protected]>
> To: Ken G. <[email protected]>
> Cc: Python Tutor Mailing List <[email protected]>
> Sent: Monday, December 15, 2014 10:45 PM
> Subject: Re: [Tutor] Is there an easily or shorter way?
> 
>>  As a side note: if we were to talk about how we'd do this in a
>>  professional context, I think we'd recommend a library such as
>>  "humanize", which has functions to go from numbers to 
> human-friendly
>>  string descriptions.
>> 
>>     https://pypi.python.org/pypi/humanize
> 
> 
> Whoops: wrong library.  Humanize is a good one, but not exactly the
> one I was supposed to cite.  I should have cited num2words, which is a
> cardinal number library:
> 
>     https://pypi.python.org/pypi/num2words

Nice, useful. Humanize seems a better choice because it uses gettext. It is 
probably easier to add another language (like my own, which is not part of the 
package).
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to