[Python-Dev] Re: Decimal data type issues

Michael Chermside mcherm at mcherm.com
Thu Apr 22 11:50:18 EDT 2004

Facundo writes:
> > #-     c.using_context(input)
> You mean adding a method to the context, to create a Decimal
> using itself as
> context and not the one from the thread?
> If yes, what about c.create_decimal(number) ?
> And with floats? c.create_decimal_from_float(number)? Or the
> same method
> that before?

+1 on Context.create_decimal(float) and Context.create_decimal(string)
   (okay, so it's really just one method that takes two input

The name just fits my brain. The fact that it uses the context is
obvious from the fact that it's Context method.

-- Michael Chermside

More information about the Python-Dev mailing list