From: Carlos R. <car...@gm...> - 2004-12-06 18:17:10
|
On Mon, 06 Dec 2004 12:04:21 -0600, Ian Bicking <ia...@co...> wrote: > Carlos Ribeiro wrote: > > I remember posting a comment about the state of the DB API on c.l.py a > > couple of months ago (soon after the famous AMK blog post on the std > > library), and being quickly flamed by some well know DB-SIG members. > > So that's *really* hard. > > It won't be hard for the decimal type -- the decimal type is an issue of > correctness. It might be hard to make it actually *happen* given the > development process for any particular driver, but everyone knows > returning a Python decimal for a DB decimal column is the Right Thing. > All you have to ask is, "how do I do it?" and if there's not a way, "how > can we change the driver to allow me to do it?" Well, you're probably right. But that's realy not for a short timeframe though. I think I'll be using floats for now -- they did just fine up to this point, if used with proper care at the right locations, and I should not be in a hurry to replace it. I may be able to come up with a Decimals patch in the next few weeks (surely it's not going to be my top priority). I'll follow yours (Ian and Oleg) feedback, and subscribe to the DB-SIG, to check how do they feel about it. I'm lucky enough (I guess) to have three platforms installed & working here: PostgreSQL, MySQL and sqlite, so I think I can test with these. Let's see what I can bake here... Thanks for the info and for the encouragement :-) -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: car...@gm... mail: car...@ya... |