[stdlib-sig] poss. naming inconsistency: fractions

Brett Cannon brett at python.org
Mon Mar 3 20:34:48 CET 2008


On Mon, Mar 3, 2008 at 6:41 AM, Jeffrey Yasskin <jyasskin at gmail.com> wrote:
> Guido suggested fractions in http://bugs.python.org/msg62254.
>
>
>
>  On Mon, Mar 3, 2008 at 2:46 AM, Mark Summerfield <mark at qtrac.eu> wrote:
>  > Hi,
>  >
>  >  In Py30a3 the rational module seems to have been renamed 'fractions'.
>  >  This module provides an additional numeric data type
>  >  "fractions.Fraction".
>  >  But there is an existing module that provides a numeric data type:
>  >  "decimal.Decimal".
>  >  Wouldn't it be more consistent to have
>  >  "fraction.Fraction"
>  >  to match?

I agree with Guido. 'decimals' just sounds weird. But 'fractions' is fine.

-Brett


More information about the stdlib-sig mailing list