Re: cdecimal.Decimal v. decimal.Decimal

2017-06-20 Thread Skip Montanaro
Shouldn't these beasts compare equal? It seems like it, although I don't think they were ever intended to be used side-by-side. cdecimal isn't part of the standard library and is supposed to be a drop-in replacement. As of CPython 3.3, the decimal module *is* cdecimal. Got it, thanks. I have a f

Re: cdecimal.Decimal v. decimal.Decimal

2017-06-20 Thread Ian Kelly
On Tue, Jun 20, 2017 at 2:49 PM, Skip Montanaro wrote: > I'd not used the Decimal classes before, but some data I was receiving > from a database via pyodbc came that way. In writing some test cases, > I had a hard time making things work out. I eventually figure out what > was going on: > im