cstringio Questions

3

Solved

How do I solve an ImportError: No module named 'cStringIO' under Python 3.x?
Agitato asked 28/1, 2015 at 19:5

1

I am attempting to write files directly to S3 without creating a local file which is then uploaded. I am using cStringIO to generate a file in memory, but I am having trouble figuring out the prop...
Stealing asked 14/11, 2017 at 17:16

1

Solved

How do I replace a string with another inside a StringIO? - I've heard it's possible if they're the same length. Attempt: from cStringIO import StringIO c = 'can\nhaz\nfoo' sio = StringIO(c) f...
Gascon asked 27/11, 2016 at 9:8

1

Solved

I have googled and also search on SO for the difference between these buffer modules. However, I still don't understand very well and I think some of the posts I read are out of date. In Python 2....
Aliquant asked 26/5, 2016 at 13:20

1

Solved

I've written a little benchmark where i compare different string concatenating methods for ZOCache. So it looks here like tempfile.TemporaryFile is faster than anything else: $ python src/ZOCache...
Bidentate asked 8/2, 2016 at 20:16

3

Solved

I'm looking through the source of StringIO where it says says some notes: Using a real file is often faster (but less convenient). There's also a much faster implementation in C, called cStringIO...
Herrmann asked 30/8, 2014 at 9:28

1

Solved

StringIO has the following notes in its code: Notes: - Using a real file is often faster (but less convenient). - There's also a much faster implementation in C, called cStringIO, but it's not sub...
Bagasse asked 3/2, 2016 at 18:37

1

Solved

In my way to profile string methods in python so that I can use the fastest one. I have this code to test string concatenation in files, StringIO, StringIO and normal string. #!/usr/bin/env python...
Barnsley asked 19/11, 2014 at 7:7

1

Solved

I'm using pandas to manage a large array of 8-byte integers. These integers are included as space-delimited elements of a column in a comma-delimited CSV file, and the array size is about 10000x100...
Besom asked 3/7, 2014 at 20:33
1

© 2022 - 2024 — McMap. All rights reserved.