From 6876bc12a161175ff5039f618ffb4d74942cc822 2017-08-28 07:23:39 From: Thomas Kluyver Date: 2017-08-28 07:23:39 Subject: [PATCH] Merge pull request #10760 from erenhalici/patch-1 Small fix: Bang should be after the assignment operator --- diff --git a/docs/source/interactive/python-ipython-diff.rst b/docs/source/interactive/python-ipython-diff.rst index 9ae08f5..569aebf 100644 --- a/docs/source/interactive/python-ipython-diff.rst +++ b/docs/source/interactive/python-ipython-diff.rst @@ -45,7 +45,7 @@ All the following construct are valid IPython syntax: .. code-block:: ipython - In [1]: my_files =! ls ~/ + In [1]: my_files = !ls ~/ In [1]: for i,file in enumerate(my_file): ...: raw = !echo $file ...: !echo {files[0].upper()} $raw @@ -185,14 +185,14 @@ This allow you for example to put the list of files of the current working direc .. code-block:: ipython - In[1]: my_files != ls + In[1]: my_files = !ls You can combine the different possibilities in for loops, condition, functions...: .. code-block:: ipython - my_files =! ls ~/ + my_files = !ls ~/ b = "backup file" for i,file in enumerate(my_file): raw = !echo $backup $file