> GR> len is actually a field in the underlying C object so len() is a
> GR> constant (O(1)) and as-fast-as-it-can-be operation.
>
TP> ...n integers), but (ignoring the range() complication) there's no
TP> difference in O() behavior between the two.

OK, The timbot's word is good enough for me, I won't bother
looking at the code, I'll revert to my previous assumption! :-)

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to