Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
type checking
#5
the function just needs an int and a string. it takes them as 2 arguments or as a 2-list or as a 2-tuple. it also accepts them in the order int,string or string,int. i should probably add set and frozenset to what it accepts. how is making it a class any better? how does requiring a named tuple help call this function?
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
type checking - by Skaperen - Aug-09-2019, 02:37 AM
RE: type checking - by DeaD_EyE - Aug-09-2019, 10:47 AM
RE: type checking - by Skaperen - Aug-09-2019, 05:38 PM
RE: type checking - by ndc85430 - Aug-09-2019, 06:40 PM
RE: type checking - by Skaperen - Aug-09-2019, 07:21 PM

Forum Jump:

User Panel Messages

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