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....
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...
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...
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...
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...
1
© 2022 - 2024 — McMap. All rights reserved.