##// END OF EJS Templates
Merge pull request #11564 from techtonik/patch-3...
Matthias Bussonnier -
r24914:82b515da merge
parent child Browse files
Show More
@@ -186,13 +186,13 b' First, capture output of "hg status"::'
186
186
187 Now we can just remove these files by doing 'rm $junk.s'.
187 Now we can just remove these files by doing 'rm $junk.s'.
188
188
189 The .s, .n, .p properties
189 The .n, .s, .p properties
190 -------------------------
190 -------------------------
191
191
192 The ``.s`` property returns one string where lines are separated by
192 Properties of `SList <https://ipython.readthedocs.io/en/stable/api/generated/IPython.utils.text.html?highlight=SList#IPython.utils.text.SList>`_ wrapper
193 single space (for convenient passing to system commands). The ``.n``
193 provide a convenient ways to use contained text in different formats:
194 property return one string where the lines are separated by a newline
195 (i.e. the original output of the function). If the items in string
196 list are file names, ``.p`` can be used to get a list of "path" objects
197 for convenient file manipulation.
198
194
195 * ``.n`` returns (original) string with lines separated by a newline
196 * ``.s`` returns string with lines separated by single space (for
197 convenient passing to system commands)
198 * ``.p`` returns list of "path" objects from detected file names
General Comments 0
You need to be logged in to leave comments. Login now