index & value (was Re: inclusive-lower-bound, exclusive-upper-bound (was Re: Range Operation pre-PEP))
Greg Ewing
see at my.signature
Wed May 16 23:50:51 EDT 2001
Alex Martelli wrote:
>
> it's gotta be first if it's the only argument:-)
It's also gotta be *last* if it's the only argument. :-)
Nevertheless, putting the index first feels better
to me, at least in Python, probably because it's
more consistent with [] indexing syntax:
x.set(i,v)
x[i] = v
--
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