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

Greg Ewing greg@cosc.canterbury.ac.nz
Fri, 04 Oct 2002 13:22:38 +1200 (NZST)


Guido:

> I think the slice notation e.g. x[1:4] kills that idea.

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

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	   +--------------------------------------+