Python Forum
pass value to function with * and/or **
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pass value to function with * and/or **
#2
The code in the function needs to be able to handle the type of what you give it, but that code can include a type check and act accordingly. As for converting types as appropriate, that's not automatic, you will have to write that code.

I don't really know the specifics of it all but this page seem to explain it all better than I can: geeksforgeeks_DOT_org/type-isinstance-python/
Reply


Messages In This Thread
RE: pass value to function with * and/or ** - by michael1789 - Jan-10-2020, 05:13 AM

Forum Jump:

User Panel Messages

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