PL/Python: Remove use of simple slicing API - Mailing list pgsql-hackers

From Peter Eisentraut
Subject PL/Python: Remove use of simple slicing API
Date
Msg-id 068bba33-f986-1ac3-c84e-5736950646ae@2ndquadrant.com
Whole thread Raw
Responses Re: PL/Python: Remove use of simple slicing API
List pgsql-hackers
I have found some dying code in PL/Python.

The simple slicing API (sq_slice, sq_ass_slice) has been deprecated
since Python 2.0 and has been removed altogether in Python 3, so we can
remove those functions from the PLyResult class.  Instead, the non-slice
mapping functions mp_subscript and mp_ass_subscript can take slice
objects as an index.  Since we just pass the index through to the
underlying list object, we already support that.  Test coverage was
already in place.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Yugo Nagata
Date:
Subject: Re: pg_verify_checksums failure with hash indexes
Next
From: Etsuro Fujita
Date:
Subject: Re: Expression errors with "FOR UPDATE" and postgres_fdw with partitionwise join enabled.