all: deprecate core module
[mdis.git] / README.md
index 7284b66815fb7185cfad01197cd00f9fa2dec5fb..b38f8fad13deca54a44efff8e2c4cc0fba888194 100644 (file)
--- a/README.md
+++ b/README.md
@@ -21,11 +21,11 @@ A walker is just a particular example of dispatcher, where the call yields some
 The default `mdis.Walker` already incorporates the logic to walk over some builtin Python objects.
 The example below shows how to override the way the dicts are traversed so that keys and values are swapped.
 
-    import mdis.core
+    import mdis.dispatcher
     import mdis.walker
 
     class CustomWalker(mdis.walker.Walker):
-        @mdis.core.hook(dict)
+        @mdis.dispatcher.hook(dict)
         def dispatch_dict(self, instance):
             for (key, value) in instance.items():
                 yield (value, key)
@@ -54,25 +54,25 @@ The example below shows how to execute some arbitrary code upon visiting an obje
 
     import contextlib
 
-    import mdis.core
+    import mdis.dispatcher
     import mdis.visitor
 
     class CustomVisitor(mdis.visitor.Visitor):
-        @mdis.core.hook(int)
+        @mdis.dispatcher.hook(int)
         @contextlib.contextmanager
         def dispatch_int(self, instance):
             print("entering int")
             yield (instance + 42)
             print("leaving int")
 
-        @mdis.core.hook(str)
+        @mdis.dispatcher.hook(str)
         @contextlib.contextmanager
         def dispatch_str(self, instance):
             print("entering str")
             yield f"!!!{instance}!!!"
             print("leaving str")
 
-        @mdis.core.hook(object)
+        @mdis.dispatcher.hook(object)
         @contextlib.contextmanager
         def dispatch_object(self, instance):
             print("entering object")