[CentralOH] cStringIO

jep200404 at columbus.rr.com jep200404 at columbus.rr.com
Wed Nov 6 04:19:35 CET 2013

The code below is ugly, very ugly. 
There has to be a better way. 
What is it? 

    file = cStringIO.StringIO(s)
    while True:
        t = file.read(chunk_size)
        if not t:
        print len(t), repr(t)

For the full context, see the attached ipython notebook.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cohpy-20131105.ipynb
Type: application/octet-stream
Size: 6658 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/centraloh/attachments/20131105/15638a1f/attachment.obj>

More information about the CentralOH mailing list