[orm-devel] The NUMERIC problem float-ing around (no more!)
Sat, 07 Dec 2002 12:41:14 -0800
Diedrich Vorberg wrote:
>>Is FixedPoint now a requirement of orm?
> No it isn't. The import statement in orm.adapters.pgsql.datasource is
> in a try: block and the except: will define a minimal class
> FixedPoint which is a wraper around a Python string, really.
> If you only want the NUMERIC data as a string and simply use float()
> on it you can skip installing FixedPoint and use it this way. You
> might want to take a look, though, doesn't seem too bad.
This sounds like a good solution, thanks!
> Perhaps I should have integrated the simple string functionality in
> CustomType as a default behaviour.
I guess I'm not clear on when one would use CustomType. Is it meant to
be extended by a class the user writes?