pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: PL/Python: Remove use of simple slicing API
Date: Wed, 05 Sep 2018 14:34:12 +0000
Message-ID: <E1fxYsm-0005ib-G2@gemulon.postgresql.org> (raw)

PL/Python: Remove use of simple slicing API

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 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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f5a6509bb1ec5222a707205941a40f280f3e6e15

Modified Files
--------------
src/pl/plpython/plpy_resultobject.c | 24 ++----------------------
1 file changed, 2 insertions(+), 22 deletions(-)



Message-ID: <E1fxYsm-0005ib-G2@gemulon.postgresql.org>
Permalink:  ../E1fxYsm-0005ib-G2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fxYsm-0005ib-G2@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: PL/Python: Remove use of simple slicing API
  In-Reply-To: <E1fxYsm-0005ib-G2@gemulon.postgresql.org>
  References: <E1fxYsm-0005ib-G2@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox