11 lines
145 B
Python
11 lines
145 B
Python
registry = {}
|
|
|
|
|
|
def register(func):
|
|
registry[func.__name__] = func
|
|
return func
|
|
|
|
|
|
def execture(name):
|
|
return registry.get(name, None)
|