From: | Federico Di Gregorio <fog(at)dndg(dot)it> |
---|---|
To: | "psycopg(at)postgresql(dot)org" <psycopg(at)postgresql(dot)org> |
Subject: | Re: RFC: Extend psycopg2.connect to accept all valid parameters? |
Date: | 2011-11-17 11:41:34 |
Message-ID: | 4EC4F2EE.8040306@dndg.it |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | psycopg |
On 17/11/11 12:39, Daniele Varrazzo wrote:
> On Thu, Nov 17, 2011 at 11:18 AM, Federico Di Gregorio <fog(at)dndg(dot)it> wrote:
>
>> > Never said doing it in Python is wrong. In fact anything that isn't
>> > time-critical (type conversions, etc.) at this point is OK in Python.
> I was also thinking that having the pair connect()/_connect() is
> perfect for regression testing: _connect() can be replaced with a stub
> to test the arguments conversion without really connecting.
Wunderful. But please don't rename the C function. Just "import as", to
avoid breaking API (not that I ever encountered Python code using
_psycopg.so directly but one never knows...)
--
Federico Di Gregorio <mailto:fog(at)initd(dot)org> <jid:fog(at)jabber(dot)linux(dot)it>
DISCLAIMER. If I receive a message from you, you are agreeing that:
1. I am by definition, "the intended recipient".
2. All information in the email is mine to do with as I see fit and
make such financial profit, political mileage, or good joke as it lends
itself to. In particular, I may quote it on USENET or the WWW.
3. I may take the contents as representing the views of your company.
4. This overrides any disclaimer or statement of confidentiality that
may be included on your message.
From | Date | Subject | |
---|---|---|---|
Next Message | Daniele Varrazzo | 2011-11-17 11:49:02 | Re: RFC: Extend psycopg2.connect to accept all valid parameters? |
Previous Message | Daniele Varrazzo | 2011-11-17 11:39:35 | Re: RFC: Extend psycopg2.connect to accept all valid parameters? |