Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic return ?
#1
I receive in a function two parameters (Class and Method) with dynamic values that serve to reference a certain class and access the method on the return of the function. Working with dynamic data I imagined something like this :

v_return = v_class + "." + v_method + "()"
return v_return
The problem is that I need to execute the return to call the class method retrieved in the parameter and not print the string on the screen :

Main.index()
Reply


Messages In This Thread
Dynamic return ? - by JohnnyCoffee - Mar-30-2020, 07:47 PM
RE: Dynamic return ? - by stullis - Mar-30-2020, 10:28 PM
RE: Dynamic return ? - by JohnnyCoffee - Apr-01-2020, 05:34 AM

Forum Jump:

User Panel Messages

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