Python Forum
which would be easier to translate to Python? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: which would be easier to translate to Python? (/thread-5895.html)



which would be easier to translate to Python? - Skaperen - Oct-27-2017

i was looking at these older implementations of a function to convert an integer number to English words.  which of these two do you believe would be easier to translate to Python?

in Pike

in C

note that i actually made four functions in C, unsigned long (32 bit), signed long (32 bit), unsigned long long (64 bit), and signed long long (64 bit).  the URLs in those sources are no longer valid.

what name do you think i should give to the function and module for the Python versions?


RE: which would be easier to translate to Python? - Larz60+ - Oct-27-2017

Here's a github entry that looks a lot like your pike version: https://github.com/tebeka/pythonwise/blob/master/num2eng.py


RE: which would be easier to translate to Python? - Skaperen - Oct-28-2017

people are allowed to steal my code