A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-March/043162.html below:

[Python-Dev] Changes to PEP 327: Decimal data type

[Python-Dev] Changes to PEP 327: Decimal data type [Python-Dev] Changes to PEP 327: Decimal data typeOren Tirosh oren-py-d at hishome.net
Tue Mar 16 06:05:55 EST 2004
On Mon, Mar 15, 2004 at 11:01:12PM -0300, Batista, Facundo wrote:
> People:
> 
> I'll post a reviewed version of the PEP.
> 
> The only differences with the previous one will be the treatmen to float in
> both explicit and implicit construction:
> 
> ------------
> 
> In Explicit construction:
> 
> You can not call Decimal with a float. Instead you must use a method:
> Decimal.fromFloat(). The syntax:
> 
>     Decimal.fromFloat(floatNumber, positions)

+1 on the behavior. One nitpick about the method name: this caseConvention 
is not consistent with the Python Style Guide (PEP 8)

  Oren

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