From 330ed4ac6c55294c62bfd975d6e1aafda274e096 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 3 Feb 2013 00:31:01 -0500 Subject: PL/Python: Add result object str handler This is intended so that say plpy.debug(rv) prints something useful for debugging query execution results. reviewed by Steve Singer --- doc/src/sgml/plpython.sgml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/plpython.sgml b/doc/src/sgml/plpython.sgml index dd50c4475da..aaf758d4959 100644 --- a/doc/src/sgml/plpython.sgml +++ b/doc/src/sgml/plpython.sgml @@ -956,6 +956,17 @@ foo = rv[i]["my_column"] + + + __str__() + + + The standard __str__ method is defined so that it + is possible for example to debug query execution results + using plpy.debug(rv). + + + -- cgit v1.2.3