-
- Downloads
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
Showing
- src/pl/plpython/expected/plpython_spi.out 55 additions, 20 deletionssrc/pl/plpython/expected/plpython_spi.out
- src/pl/plpython/plpy_resultobject.c 25 additions, 1 deletionsrc/pl/plpython/plpy_resultobject.c
- src/pl/plpython/sql/plpython_spi.sql 36 additions, 15 deletionssrc/pl/plpython/sql/plpython_spi.sql
Loading
Please register or sign in to comment