Some cosmetic fixes.

This commit is contained in:
Andrey Popp 2010-07-15 10:43:49 +04:00
parent ac08b7f910
commit 7a0ac7be77

View File

@ -6,13 +6,14 @@ import inspect
from generic.registry import Registry
from generic.registry import TypeAxis
__all__ = []
__all__ = ["Dispatcher", "multimethod", "reset"]
# function name -> dispatcher
dispatchers = {}
def multimethod(*arg_types):
""" Declare function as multimethod."""
global dispatchers
def register_rule(func):
if func.__name__ in dispatchers: