Created
December 18, 2016 13:53
-
-
Save yunho0130/0ab0fcefa703d3892923e38406a951d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reflection Example | |
class MyClass: | |
def Hello(self, sText): | |
return 'Hello ' + sText | |
MyClass().Hello('Peter') | |
getattr(globals()['MyClass'](), 'Hello')('Peter') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment