Re: NULL dereference when memory is tight - Mailing list psycopg

From Federico Di Gregorio
Subject Re: NULL dereference when memory is tight
Date
Msg-id 4D662A74.9020300@dndg.it
Whole thread Raw
In response to Re: NULL dereference when memory is tight  (Brian Sutherland <brian@vanguardistas.net>)
Responses Re: NULL dereference when memory is tight  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
On 24/02/11 10:39, Brian Sutherland wrote:
> Attached is a patch for another issue, though I'm not sure if calling
> PyErr_NoMemory within libpq is sane.

I won't call any Py* function without holding the GIL. That's why
conn_notice_callback() uses its own data structure instead of a simple
Python list.

federico

--
Federico Di Gregorio                         federico.digregorio@dndg.it
Studio Associato Di Nunzio e Di Gregorio                  http://dndg.it
          The reverse side also has a reverse side.  -- Japanese proverb

psycopg by date:

Previous
From: Brian Sutherland
Date:
Subject: Re: NULL dereference when memory is tight
Next
From: Daniele Varrazzo
Date:
Subject: Re: NULL dereference when memory is tight