the float type coming from Numeric etc. is straight from the DBAPI, in this case psycopg2. If youd like to make your own Decimal type which translates this value back and forth from whatever float value psycopg2 is giving you, simply subclass TypeDecorator, specify Numeric as the 'impl', and implement the appropriate convert_bind_param(), convert_result_value() methods.
instructions are here: http://www.sqlalchemy.org/docs/types.myt#types_custom if you get that done, theres no reason it cant be stuck into the types module, just wouldnt be available if youre on 2.3. On Jun 2, 2006, at 10:13 PM, Yuan HOng wrote: > Does that mean Python2.4 is not officially supported by SA, in things > such like Decimal support? > > On 6/2/06, Rick Morrison <[EMAIL PROTECTED]> wrote: >> Last I heard, SA was requiring only Python 2.3, so in-library >> support for >> Decimal would be ruled out. >> >> Rick >> > > > -- > Hong Yuan > > 大管家网上建材超市 > 装修装潢建材一站式购物 > http://www.homemaster.cn > _______________________________________________ > Sqlalchemy-users mailing list > Sqlalchemy-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users