iterators instead of callbacks.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Antoon Pardon

    #1

    iterators instead of callbacks.

    My current understanding is that callbacks are used in a number
    of places because they predate iterator. But now that we have
    iterators these would be better suited. I'm thinking about the
    FTP-lib now where iterator equivallents of retrbinary and retrlines
    methods may be more easily usable then the current versions with a
    callback.

    So I was wondering, are such transformations in the pipeline
    somewhere?

    --
    Antoon Pardon
  • Michael Hoffman

    #2
    Re: iterators instead of callbacks.

    Antoon Pardon wrote:
    [color=blue]
    > I'm thinking about the FTP-lib now where iterator equivallents of
    > retrbinary and retrlines methods may be more easily usable then the
    > current versions with a callback.
    >
    > So I was wondering, are such transformations in the pipeline
    > somewhere?[/color]

    Maybe that should be a Python 3.0 idea. I'm sure it would happen a lot sooner
    if you submitted a patch implementing the behavior you want.
    --
    Michael Hoffman

    Comment

    Working...