A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-April/044533.html below:

[Python-Dev] Re: Decimal data type issues

[Python-Dev] Re: Decimal data type issues [Python-Dev] Re: Decimal data type issuesMichael 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
   types).

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4