iterators instead of callbacks.

A

Antoon Pardon

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?
 
M

Michael Hoffman

Antoon said:
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?

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.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top