Python Forum
which would be easier to translate to Python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
which would be easier to translate to Python?
#1
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?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
Here's a github entry that looks a lot like your pike version: https://github.com/tebeka/pythonwise/blo...num2eng.py
Reply
#3
people are allowed to steal my code
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  another way to make Python easier Skaperen 1 856 Nov-27-2019, 11:24 PM
Last Post: Gribouillis
  tool/program/script to translate bash to python Skaperen 4 2,343 Aug-15-2018, 12:23 AM
Last Post: Skaperen
  how hard to translate this to python? Skaperen 4 2,514 Oct-18-2017, 07:37 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020