[Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues (original) (raw)

Greg Ewing greg@cosc.canterbury.ac.nz
Mon, 07 Oct 2002 11:15:07 +1300 (NZDT)


Greg> Maybe if ":" were a sliceobject-creating operator usable anwyere,
Greg> not just in [...], and you added arithmetic methods to
Greg> sliceobjects so you could use them as rationals...

Skip> Does x[1:4] return a slice out of x or x[rational(1,4)]?

If rationals and slice objects were the same thing, it wouldn't matter!

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+