Can't Iterate

Victor Subervi victorsubervi at gmail.com
Thu Dec 17 02:26:46 EST 2009


Hi;
I have this line of code:

for store in ourStores():

which is called from the statement:

from particulars import ourStores

The latter file has the following:

def ourStores():
  return ['prescriptions', 'products']

Yet, the above iteration only iterates the last of these items ('products').
Why?
TIA,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091217/c5604587/attachment.html>


More information about the Python-list mailing list