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)
commit82cb6d2b756fc841a903812b73d72936a227c645
tree3b5e4304c7692d94e59d8a01d66104e2c3fc8981
parentf68ed9629d6cb99fd845a42ff24df9c539812047
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