From 1880574f2d2c0831c4e8f0d473434f1c32d18f84 2018-06-22 09:45:00 From: Thomas Kluyver Date: 2018-06-22 09:45:00 Subject: [PATCH] Add description of priority system --- diff --git a/IPython/core/inputtransformer2.py b/IPython/core/inputtransformer2.py index c8a76ee..f697399 100644 --- a/IPython/core/inputtransformer2.py +++ b/IPython/core/inputtransformer2.py @@ -153,6 +153,10 @@ class TokenTransformBase: Subclasses need to implement one class method (find) and one regular method (transform). + + The priority attribute can select which transformation to apply if multiple + transformers match in the same place. Lower numbers have higher priority. + This allows "%magic?" to be turned into a help call rather than a magic call. """ # Lower numbers -> higher priority (for matches in the same location) priority = 10