Re: RFC: Extend psycopg2.connect to accept all valid parameters?

Поиск
Список
Период
Сортировка
От Federico Di Gregorio
Тема Re: RFC: Extend psycopg2.connect to accept all valid parameters?
Дата
Msg-id 4EC4F2EE.8040306@dndg.it
обсуждение исходный текст
Ответ на Re: RFC: Extend psycopg2.connect to accept all valid parameters?  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Ответы Re: RFC: Extend psycopg2.connect to accept all valid parameters?  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Список psycopg
On 17/11/11 12:39, Daniele Varrazzo wrote:
> On Thu, Nov 17, 2011 at 11:18 AM, Federico Di Gregorio <fog@dndg.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@initd.org> <jid:fog@jabber.linux.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.

В списке psycopg по дате отправления:

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: Re: RFC: Extend psycopg2.connect to accept all valid parameters?
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: RFC: Extend psycopg2.connect to accept all valid parameters?