Python Forum
want better option name for a conversion function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
want better option name for a conversion function
#1
i have a function that converts ints to strings, given the int value, the sequence of digits to convert with, the minimum width of the result, the prefix to pad the result with if it is shorter than the minimum width. the name "digits" for the sequence of digits to convert with, just doesn't seem quite right to me. is there a better name i can use? the len() of this string will be the default base, and the maximum base if the caller specifies a base.
Tradition is peer pressure from dead people

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


Messages In This Thread
want better option name for a conversion function - by Skaperen - Jul-31-2019, 09:59 PM

Forum Jump:

User Panel Messages

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