2

Is there a way to use StringIO buffer like pipe with lazy write? Is there a way to hook a function to be called when End Of File/String occurs on the StringIO object to append next lines that can be read? Already read lines should by disposed.

Or is available another object/library like StringIO? I don't want to use the operating system pipes and forking. I need to foist a file-like buffer to psycopg2.copy_from() but with behaviour like pipe.

Something like Efficient FIFO queue for arbitrarily sized chunks of bytes in Python and deque but line oriented.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.