MultiFile object does not iterate

Discussion in 'Python' started by David Isaac, Aug 10, 2005.

  1. David Isaac

    David Isaac Guest

    Why is a MultiFile object not an iterator?
    For example if
    mfp = multifile.MultiFile(fp)I cannot dofor line in mfp: seems badly named.(Something like
    next_section would be better.)Is this just historical accident or am I
    missing the point?Thanks,Alan Isaac
    David Isaac, Aug 10, 2005
    1. Advertisements

  2. David Isaac

    Fuzzyman Guest

    It has no __iter__ method either. I guess 'next' is just a historical

    Should be easy enough to wrap it in your own class though and resolve
    this ?


    Fuzzyman, Aug 10, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.