mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-30 23:47:58 +00:00
10 lines
185 B
Python
10 lines
185 B
Python
class Worker:
|
|
def target(self):
|
|
return 1
|
|
def other_member(self):
|
|
return 2
|
|
|
|
worker = Worker()
|
|
worker.target()
|
|
def dynamic(name):
|
|
return getattr(worker, name)
|