mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
Merge pull request #1529 from ericmharris/master
s.strip needs to be method call, 's.strip()', for the example to work
This commit is contained in:
commit
51e2c272c3
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ result is automatically converted to a string. For example,
|
|||
4
|
||||
>>> echo @([42, 'yo'])
|
||||
42 yo
|
||||
>>> echo "hello" | @(lambda a, s=None: s.strip + " world")
|
||||
>>> echo "hello" | @(lambda a, s=None: s.strip() + " world\n")
|
||||
hello world
|
||||
|
||||
This syntax can be used inside of a captured or uncaptured subprocess, and can
|
||||
|
|
Loading…
Add table
Reference in a new issue