Use generic attribute management in PL/Python
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 25 Aug 2009 08:14:42 +0000 (08:14 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 25 Aug 2009 08:14:42 +0000 (08:14 +0000)
commit983d10833e62d8f6e79e09a060e4e539b3a916c5
tree88018e735867851a6dff102d067867430b17df21
parent5dff93638c4443d3afba017f64c9ade69e0fbd3b
Use generic attribute management in PL/Python

Switch the implementation of the plan and result types to generic attribute
management, as described at <http://docs.python.org/extending/newtypes.html>.
This modernizes and simplifies the code a bit and prepares for Python 3.1,
where the old way doesn't work anymore.
src/pl/plpython/expected/plpython_spi.out
src/pl/plpython/plpython.c
src/pl/plpython/sql/plpython_spi.sql