diff options
| author | Michael Williamson <mike@zwobble.org> | 2020-04-18 18:48:30 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2020-04-18 18:48:30 +0100 |
| commit | 764c8333faf3c630cbff5e562bf8c22a1676265e (patch) | |
| tree | 67f781dabbd9e2805a0561d50271e615f3b8dfbb /jq.pyx | |
| parent | 3a0af29c615555c584214bffa1fd995d851d00ee (diff) | |
Add __repr__ to program
Diffstat (limited to 'jq.pyx')
| -rw-r--r-- | jq.pyx | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
