summaryrefslogtreecommitdiff
path: root/jq.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'jq.pyx')
-rw-r--r--jq.pyx3
1 files changed, 3 insertions, 0 deletions
diff --git a/jq.pyx b/jq.pyx
index a27e238..6d26470 100644
--- a/jq.pyx
+++ b/jq.pyx
@@ -131,6 +131,9 @@ cdef class _Program(object):
program_with_input._bytes_input = string_input.encode("utf8")
return program_with_input
+ def __repr__(self):
+ return "jq.compile({!r})".format(self._program_bytes.decode("utf8"))
+
cdef class _ProgramWithInput(object):
cdef object _program_bytes