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:
Morten Enemark Lund 2016-08-07 21:04:10 +02:00 committed by GitHub
commit 51e2c272c3

View file

@ -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