Computer Science question (python list is slow with my cruddy algorithm )

Greg Ewing see_reply_address at something.invalid
Tue Aug 27 04:22:14 CEST 2002


Mr. Neutron wrote:

> On Fri, 23 Aug 2002 10:49:42 -0400, Duncan Booth wrote:

>
>>You can drop a lot of the parentheses from that expression.
>>    world[x, y]
>>
> Actually I really do prefer the parentheses. It immediately tells me I am
> looking at a tuple.


On the other hand, if you leave the parentheses off
it's easier to pretend that you're indexing a 2-d
array.

It depends on which way you prefer to think of it,
I suppose.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list