Well, do it in memory. StringIO is the module I think
Also, you can use queue module.
An example:
Also, you can use queue module.
An example:
In [1]: import queue In [2]: fifo = queue.Queue() In [3]: d = {1: 'one'} In [4]: fifo.put(d) In [5]: fifo.put(14) In [6]: text = 'Post here if you are recruiting Python programmers, or are a Python programmer looking for work.' In [7]: fifo.put(text) In [8]: while fifo.not_empty: ...: print(fifo.get()) ...: {1: 'one'} 14 Post here if you are recruiting Python programmers, or are a Python programmer looking for work.