﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
8,Turn IExporter.process() into a generator,olivier,yomguy,"Please make the process() method a [http://docs.python.org/tut/node11.html#SECTION00111000000000000000000 generator] (or return an [http://docs.python.org/tut/node11.html#SECTION0011900000000000000000 iterator] object), for enabling real-time operations. The source file should be encoded in real time, using an internal buffer, and a chunk of encoded data returned each time <iterator>.next() is called (remark: next() is called transparently by ""for"" loops and others).

Example usage:
{{{
stream = exporter.process(1234, 'foobar.wav', {}, {})
for chunk in stream:
    send_chunk_to_user(chunk)
    etc...
}}}

You might transparently cache the returned data to avoid encoding each time process() is called with identical parameters.
",enhancement,closed,major,Version 0.3,Export,,fixed,,
