How about adding rational fraction to Python?

D'Arcy J.M. Cain darcy at druid.net
Thu Feb 28 15:58:31 EST 2008


On 28 Feb 2008 12:25:14 -0800
Paul Rubin <"http://phr.cx"@NOSPAM.invalid> wrote:
> "D'Arcy J.M. Cain" <darcy at druid.net> writes:
> > > I'd like to point out that now you are talking about int OP int
> > > returning a tuple, not an int.
> > 
> > Which would be stupid.  Good thing I don't think that "obvious" should
> > be the criteria.
> 
> We already have that function (divmod) and it is very useful.

Yes it is and has nothing to do with this discussion.  I don't think
that anyone here has suggested that methods should return the type of
their arguments although there have been a few suggestions that the
suggestions were made.

-- 
D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



More information about the Python-list mailing list