[PyGreSQL] DECIMAL to float, alternatives?

D'Arcy J.M. Cain darcy at PyGreSQL.org
Wed Jan 31 08:49:55 EST 2007


On Wed, 31 Jan 2007 11:09:48 +0100
Christoph Zwerschke <cito at online.de> wrote:
> Maybe PyGreSQL should support the Decimal type? For DECIMAL (=NUMERIC)
> with a scale of 0, we could also use long ints.

Yes.  Money too should return Decimal.  I don't think that it is
unreasonable for current PyGreSQL to require current Python in this
case, especially since it is easy to add the Decimal module to older
versions.

The problem is getting the C code to return Decimal.  That's one reason
that I want to move that processing into pg.py and pgdb.py.

-- 
D'Arcy J.M. Cain
PyGreSQL Development Group
http://www.PyGreSQL.org


More information about the PyGreSQL mailing list