How about adding rational fraction to Python?

J. Cliff Dyer jcd at sdf.lonestar.org
Mon Feb 25 19:21:04 CET 2008


On Mon, 2008-02-25 at 16:27 +0000, Grant Edwards wrote:
> On 2008-02-25, Carl Banks <pavlovevidence at gmail.com> wrote:
> 
> > In other words, 3/4 in Python rightly yields a float
> 
> Unless you're in the camp that believes 3/4 should yield the
> integer 0. ;)

I'm in the camp that believes that 3/4 does indeed yield the integer 0,
but should be spelled 3//4 when that is the intention.

Cheers,
Cliff





More information about the Python-list mailing list