Skip site navigation (1) Skip section navigation (2)

PL/Python result set slicing broken in Python 3

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: PL/Python result set slicing broken in Python 3
Date: 2012-05-02 18:18:23
Message-ID: 1335982703.29903.9.camel@vanquo.pezone.net (view raw or flat)
Thread:
Lists: pgsql-hackers
This doesn't work anymore with Python 3:

rv = plpy.execute(...)
do_something(rv[0:1])

Apparently, they changed the C API for doing slicing, or rather made one
of the two APIs for it silently do nothing.  Details are difficult to
find, but this email message seems to contain something:
<http://mail.python.org/pipermail/python-3000/2007-August/009851.html>.

I'll try to sort this out sometime, but if someone wants to take a shot
at it, go ahead.


Responses

pgsql-hackers by date

Next:From: Merlin MoncureDate: 2012-05-02 19:32:10
Subject: Re: How hard would it be to support LIKE in return declaration of generic record function calls ?
Previous:From: Bruce MomjianDate: 2012-05-02 18:17:38
Subject: Beta time?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group