PL/Python: Fix slicing support for result objects for Python 3 The old way of implementing slicing support by implementing PySequenceMethods.sq_slice no longer works in Python 3. You now have to implement PyMappingMethods.mp_subscript. Do this by simply proxying the call to the wrapped list of result dictionaries. Consolidate some of the subscripting regression tests.
Jan UrbaĆski Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/a97207b6908f1d4a7d19b37b818367bb0171039f Modified Files -------------- src/pl/plpython/expected/plpython_spi.out | 75 +++++++++++++++++++++-------- src/pl/plpython/plpy_resultobject.c | 26 ++++++++++- src/pl/plpython/sql/plpython_spi.sql | 51 ++++++++++++++------ 3 files changed, 116 insertions(+), 36 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers