Added a "get" function with a dictionary get-by-key semantics.
Differs from dictionary attribution ("dict.key") because allows dynamic key generation ("dict.get(part1+part2)").
This commit is contained in:
2
setup.py
2
setup.py
@@ -15,7 +15,7 @@
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(name='yaql',
|
||||
version='0.2.2',
|
||||
version='0.2.3',
|
||||
description="Yet Another Query Language",
|
||||
author='Mirantis, Inc.',
|
||||
author_email='info@mirantis.com',
|
||||
|
||||
@@ -16,7 +16,7 @@ import parser
|
||||
import context
|
||||
from yaql.functions import builtin, extended
|
||||
|
||||
__versioninfo__ = (0, 2, 2)
|
||||
__versioninfo__ = (0, 2, 3)
|
||||
__version__ = '.'.join(map(str, __versioninfo__))
|
||||
|
||||
|
||||
|
||||
@@ -204,6 +204,7 @@ def add_to_context(context):
|
||||
# collection filtering
|
||||
context.register_function(get_by_index, "where")
|
||||
context.register_function(filter_by_predicate, "where")
|
||||
context.register_function(dict_attribution, "get")
|
||||
|
||||
# comparison operations
|
||||
context.register_function(greater_then, '#operator_>')
|
||||
|
||||
Reference in New Issue
Block a user