Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions jq.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -409,23 +409,23 @@ cdef class _ResultIterator(object):
raise StopIteration()


def all(program, value=_NO_VALUE, text=_NO_VALUE):
return compile(program).input(value, text=text).all()
def all(program, value=_NO_VALUE, text=_NO_VALUE, args=None):
return compile(program, args=args).input(value, text=text).all()


def first(program, value=_NO_VALUE, text=_NO_VALUE):
return compile(program).input(value, text=text).first()
def first(program, value=_NO_VALUE, text=_NO_VALUE, args=None):
return compile(program, args=args).input(value, text=text).first()


_iter = iter


def iter(program, value=_NO_VALUE, text=_NO_VALUE):
return _iter(compile(program).input(value, text=text))
def iter(program, value=_NO_VALUE, text=_NO_VALUE, args=None):
return _iter(compile(program, args=args).input(value, text=text))


def text(program, value=_NO_VALUE, text=_NO_VALUE):
return compile(program).input(value, text=text).text()
def text(program, value=_NO_VALUE, text=_NO_VALUE, args=None):
return compile(program, args=args).input(value, text=text).text()


# Support the 0.1.x API for backwards compatibility
Expand Down