From: | Federico Di Gregorio <fog(at)dndg(dot)it> |
---|---|
To: | Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com> |
Cc: | psycopg(at)postgresql(dot)org |
Subject: | Re: Problem with the default registration of the JSON adapter |
Date: | 2013-07-22 09:04:09 |
Message-ID: | 51ECF589.8080103@dndg.it |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | psycopg |
On 19/07/2013 20:41, Daniele Varrazzo wrote:
> I've taken in consideration the idea of dropping the automatic
> registration of the json adapter after giving a few months of warning,
> but thinking about that more coolly I think it would be a bad reaction.
> The feature was legitimately added on a major release (2.5) and if
> somebody finds it broken he can still install the last 2.4 available
> (pip install "psycopg2<2.5"). The right moment to think about a
> different behaviour (e.g. require register_json() to be called) is the
> next major release.
IMO, dropping authomatic registration in the next minor release and
having users explicitly calling register_json() is better. Having to
explicitly register a type caster always was the psycopg's way while
having to deregister it is counter-intuitive. I don't think there is a
whole legion of programmers out there already depending on the json
type-caster so it is much better to introduce the change now.
federico
From | Date | Subject | |
---|---|---|---|
Next Message | Hefferon, James S. | 2013-07-22 10:07:51 | Re: Getting adaped output from unicode text, without a connection |
Previous Message | Christophe Pettus | 2013-07-21 23:29:32 | Re: Getting adaped output from unicode text, without a connection |