Mercurial > jpath
changeset 24:64328843ba3b
one more slice test
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Fri, 16 Aug 2013 10:46:38 +0200 |
| parents | 4703a3021427 |
| children | 28dc252c2300 |
| files | jpath.py |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/jpath.py Fri Aug 16 10:21:19 2013 +0200 +++ b/jpath.py Fri Aug 16 10:46:38 2013 +0200 @@ -387,6 +387,8 @@ [1, 2] >>> get_all('[::2]', [1, 2, 3, 4]) [1, 3] + >>> get_all('[::2][0]', [[1, 2], [3, 4], [5, 6]]) + [1, 5] >>> get_all('(x=1).y', [{'x':1, 'y':2}, {'x':0, 'y':3}, {'x':1, 'y':4}]) [2, 4] >>> get_all('(x>0).y', [{'x':1, 'y':2}, {'x':0, 'y':3}, {'x':1, 'y':4}])
