Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gH573-00037u-Md for psycopg@arkaria.postgresql.org; Mon, 29 Oct 2018 10:49:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gH570-00062L-OL for psycopg@arkaria.postgresql.org; Mon, 29 Oct 2018 10:49:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gH570-00062D-FX for psycopg@lists.postgresql.org; Mon, 29 Oct 2018 10:49:34 +0000 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gH56t-0006i4-G5 for psycopg@lists.postgresql.org; Mon, 29 Oct 2018 10:49:33 +0000 Received: by mail-lj1-x22c.google.com with SMTP id f3-v6so7285307ljk.9 for ; Mon, 29 Oct 2018 03:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=azKr5QLe7ECB19HTSvTJ+gRG6Kp90Vd5BZARmTQfJ3Q=; b=aTbF9aNKn+145PXs5lxtNWQCyawa5N0Y83VVxRQTl7+j40kNxmUpLS0zhgNzM5H0M/ 2gvQ2DlKSH8v/RVRcNFvNSQRdSPJT19OjZV4YK0C2U3Yx0wgZ6DsD87mFFUIvAtAfmSE 7FO9HH4fTZRc9r6LFsG0WXoA1A85hIYyMWIs/rQHQJ9Dzfu+CJD+3JZrcxPN8bPEVETy 1RL87+svCL4P3bTMTJnnJ57MXMx77VbVKukim1rnZFHcFjIcTgbwwIp6kdu2RvhhDbUY fpDDkJdndFgYKCNAUjS8w7O5PLCB+9cE811/xp+/5mIQalYGu96DtNILnFmDZeqNsmQN D+6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=azKr5QLe7ECB19HTSvTJ+gRG6Kp90Vd5BZARmTQfJ3Q=; b=MsErA6/NJHQcwXBYBvFL24mSGvor0F2wklfFor3jkm6k010cD2mj2zjXA2xVIGWWHp UuTT88d+n8ou1RHoXzBbYL2eBIP/YdYAozkcSUG87G25UTsbPjhdHIwJ0WDeDnBql0as uQeyLC3ydXr0IlWPEdIPNpzhf+ToW3p07UDigeUfgtNPusmkzdSNjHLfM0uTT4RPsfnx 3+n2YznpPtcWT516wDf6dUEtxVBJ0ExgXZRid8KG+1dW6890j5mev+i/GZbnolo4TiyS jJyR7okz4xCdr5+s9mRx+QNHzyNPyuM2eXMZm+eSwZgcUcRU1vbg7pCgG0iZCUEVm9JE 5MHQ== X-Gm-Message-State: AGRZ1gKdUXEGr52ooLfHvg8PIl1RjjyN7r92J39QoKskOGAY6+YfnCg/ qmiC4w+FSisCaZKP3WhOgekN/Pfsx6EAHzqHflU= X-Google-Smtp-Source: AJdET5flAQXC0jjQMRSSCb6bM35dbyEoo58vK1rDI/jLLnRaKfUfLBFzlYNNhyTQRd+95HYkKeLDOhIZRo9gkUEzO1o= X-Received: by 2002:a2e:9e88:: with SMTP id f8-v6mr9029720ljk.142.1540810165708; Mon, 29 Oct 2018 03:49:25 -0700 (PDT) MIME-Version: 1.0 References: <1878453370.14916776.1539604797985@mail.yahoo.com> <62b46b76-ce7f-6b89-b5ad-d0f2c2533432@dndg.it> <1820701010.20861820.1540152265403@mail.yahoo.com> <1390677301.27162879.1540762541620@mail.yahoo.com> In-Reply-To: <1390677301.27162879.1540762541620@mail.yahoo.com> From: Daniele Varrazzo Date: Mon, 29 Oct 2018 10:49:14 +0000 Message-ID: Subject: Re: Feature branches merged to master for 2.8 release To: Christian Ferrari Cc: psycopg@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sun, Oct 28, 2018 at 9:35 PM Christian Ferrari wrote: > > Dear All, > today I have released LIXA 1.7.1 with Python/Psycopg2 support. > To avoid two different methods (get_native_connection() for PostgreSQL an= d _get_native_connection() for MySQL/MariaDB) I have created a fork of Psyc= opg2 https://github.com/tiian/psycopg2/tree/get-native-connection with the = code provided by Federico and method "get_native_connection" renamed. > For the sake of convenience I have created a pull request: https://github= .com/psycopg/psycopg2/pull/798 feel free to integrate it or to go on with t= he process you figured out in the past. > Kind Regards > Ch.F. I don't know what Federico had decided but I'd very much prefer the name without underscore. Methods with underscore don't belong to an object interface. There are always differences, in interfaces and in behaviour, between dbapi drivers. A private method, returning two objects which are different because they are very simply two database drivers, are not the place where to start trying to unify interfaces. What you do, if you want to deal with both drivers, is to write a wrapper unifying the interfaces. I would be ok to adapt other drivers choices, if I agreed with them, but I can't agree with an underscore method being documented as part of the API: that's internal stuff and totally not idiomatic Python. My vote goes to have this method name without underscore, but I'll leave the final decision to Federico. -- Daniele