inclusive-lower-bound, exclusive-upper-bound (was Re: Range Operation pre-PEP)

Greg Ewing see at my.signature
Tue May 15 05:44:56 CEST 2001


Gareth McCaughan wrote:
> 
> It's entertaining
> to think about what we'd have to do to ranges to
> enable the identity to be true for *all* x,y,z. :-)

I think we'd need range(y,z) where z<y to be
a sort of "anti-range" which would cancel out
part of another range when concatenated with
it. :-)

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list