From 8e4636a4cc91ab400f10480b38919acd1e7112da 2020-07-23 23:13:06 From: Matthias Bussonnier Date: 2020-07-23 23:13:06 Subject: [PATCH] document --- diff --git a/docs/source/config/inputtransforms.rst b/docs/source/config/inputtransforms.rst index 9e41707..6b7943b 100644 --- a/docs/source/config/inputtransforms.rst +++ b/docs/source/config/inputtransforms.rst @@ -62,6 +62,14 @@ To start using this:: ip = get_ipython() ip.input_transformers_cleanup.append(reverse_line_chars) +.. versionadded:: 7.17 + + input_transformers can now have an attribute ``has_side_effects`` set to + `True`, which will prevent the transformers from being ran when IPython is + trying to guess whether the user input is complete. + + + AST transformations =================== diff --git a/docs/source/whatsnew/pr/side-effects-tr.rst b/docs/source/whatsnew/pr/side-effects-tr.rst new file mode 100644 index 0000000..439a665 --- /dev/null +++ b/docs/source/whatsnew/pr/side-effects-tr.rst @@ -0,0 +1,2 @@ +input_transformers can now have an attribute ``has_side_effects`` set to `True`, which will prevent the +transformers from being ran when IPython is trying to guess whether the user input is complete.