• Peter Eisentraut's avatar
    PL/Python: Fix slicing support for result objects for Python 3 · a97207b6
    Peter Eisentraut authored
    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
    a97207b6
plpy_resultobject.c 6.55 KB