[Tutor] __getitem__() and for loops

Erik Price erikprice at mac.com
Fri Oct 10 16:39:46 EDT 2003


Quick question:

Is a for loop actually calling __getitem__() behind the scenes, and passing in the current index of the range of the for loop?


Thanks,

Erik



More information about the Tutor mailing list