On Wed, Mar 2, 2011 at 11:19 PM, Eric Snow <esnow(at)verio(dot)net> wrote:
> If my StringIO object gets a MemoryError, will the cursor's copy_expert
> handle that, or is that the SystemError I am seeing? Thanks.
I assume you are writing into the StringIO. Yes, it should be handled
(https://github.com/dvarrazzo/psycopg/blob/2_3_2/psycopg/pqpath.c#L1162)
if write() returns a MemoryError the function bails out with the
exception set by write() itself.
-- Daniele